New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IGNITE-21568 Java thin: Pass client time zone to server #3737
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall.
if (timeZoneId != null) { | ||
builder.set(QueryProperty.TIME_ZONE_ID, ZoneId.of(timeZoneId)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are we going to specify or reference the timezone format in other clients? Just give a reference to java.time.ZoneId
javadocs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the javadoc explains it in detail: ZoneId#of
It supports standard IANA region-based zone IDs, so I expect every client to have something suitable in the standard library or a popular package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the patch looks good in general. I left minor comment regarding styles
@@ -31,14 +31,20 @@ public class ClientStatement implements Statement { | |||
private final String query; | |||
|
|||
/** Default schema. */ | |||
@Nullable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to our coding guidelines, type-use annotations appear immediately before the annotated type. Please fix it in other places too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
I've used javax.annotation.Nullable
instead of org.jetbrains.annotations.Nullable
by mistake, and the IDE displays a warning about incorrect order in that case.
No description provided.