Skip to content
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

Merged
merged 19 commits into from May 13, 2024

Conversation

ptupitsyn
Copy link
Contributor

No description provided.

@ptupitsyn ptupitsyn self-assigned this May 10, 2024
Copy link
Contributor

@isapego isapego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall.

Comment on lines +78 to +80
if (timeZoneId != null) {
builder.set(QueryProperty.TIME_ZONE_ID, ZoneId.of(timeZoneId));
}
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@korlov42 korlov42 left a 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
Copy link
Contributor

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

Copy link
Contributor Author

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.

@ptupitsyn ptupitsyn merged commit 6871bba into apache:main May 13, 2024
1 check passed
@ptupitsyn ptupitsyn deleted the ignite-21568 branch May 13, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants