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

[client-v2] Fix reading arrays #1800

Merged
merged 3 commits into from
Aug 31, 2024
Merged

[client-v2] Fix reading arrays #1800

merged 3 commits into from
Aug 31, 2024

Conversation

chernser
Copy link
Contributor

@chernser chernser commented Aug 30, 2024

Summary

  • Fixes getting arrays as list
  • Removes need to use iterator for reading thru columns
  • Fix reading Ipv4 addresses

Checklist

Delete items not relevant to your PR:

  • Unit and integration tests covering the common scenarios were added
  • A human-readable description of the changes was provided to include in CHANGELOG
  • For significant changes, documentation in https://github.com/ClickHouse/clickhouse-docs was updated with further explanations or tutorials

@chernser chernser added this to the 0.6.5 milestone Aug 30, 2024
@@ -146,8 +148,10 @@ private <T> T readValueImpl(ClickHouseColumn column) throws IOException {
case IntervalNanosecond:
return (T) readBigIntegerLE(input, 8, true);
case IPv4:
return (T) Inet4Address.getByAddress(readNBytes(input, 4));
https://clickhouse.com/docs/en/sql-reference/data-types/ipv4
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be a comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! yes :-)

@chernser chernser merged commit 584e4ed into main Aug 31, 2024
57 of 59 checks passed
@chernser chernser deleted the clientv2_small_fixes_0.6.5 branch August 31, 2024 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants