-
Notifications
You must be signed in to change notification settings - Fork 543
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
ClientV2 ignoring schema inference hints and infer integer settings #1884
Comments
@alxhill thank you for reporting! |
Okay, looks like the culprit is that ClientV1 appends all QuerySettings to the URI, while ClientV2 only appends server settings to the URI. ClientV1Lines 164 to 170 in d9cbaba
ClientV2clickhouse-java/client-v2/src/main/java/com/clickhouse/client/api/internal/HttpAPIClientHelper.java Lines 511 to 515 in d9cbaba
Changing from |
@alxhill Is the issue resolved and only documentation should be changed? Thanks! |
We are unblocked, but this does seem like a break in the client & not something I would expect to see upgrading between minor versions |
@alxhill sorry about that - my bad. This is consequences of using two different clients under the hood (old and new) . |
Describe your feedback
We run the following query through the clickhouse java client:
With the following QuerySettings:
In ClientV1, the created table would have
Nullable(Float64)
for thetimestamp
column. ClientV2 seems to ignore the inference hints (and the "input_format_try_infer_integers=0" setting), as the column isNullable(Int64)
instead:The text was updated successfully, but these errors were encountered: