-
Notifications
You must be signed in to change notification settings - Fork 16
[WIP] Support for 'time' type in Iceberg, reading only #1546
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
base: antalya-25.8
Are you sure you want to change the base?
Changes from all commits
38a7629
b516685
ddd34ac
e485a91
68a487f
d88f5e4
7138d5c
94a1346
0c56e3c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -117,6 +117,8 @@ bool canDumpIcebergStats(const Field & field, DataTypePtr type) | |
| case TypeIndex::Date32: | ||
| case TypeIndex::Int64: | ||
| case TypeIndex::DateTime64: | ||
| case TypeIndex::Time: | ||
| case TypeIndex::Time64: | ||
| case TypeIndex::String: | ||
| return true; | ||
| default: | ||
|
|
@@ -143,7 +145,9 @@ std::vector<uint8_t> dumpFieldToBytes(const Field & field, DataTypePtr type) | |
| case TypeIndex::Date32: | ||
| return dumpValue(field.safeGet<Int32>()); | ||
| case TypeIndex::Int64: | ||
| case TypeIndex::Time: | ||
| return dumpValue(field.safeGet<Int64>()); | ||
| case TypeIndex::Time64: | ||
| case TypeIndex::DateTime64: | ||
| return dumpValue(field.safeGet<Decimal64>().getValue().value); | ||
|
Comment on lines
+148
to
152
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Useful? React with 👍 / 👎.
Comment on lines
+148
to
152
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Useful? React with 👍 / 👎. |
||
| case TypeIndex::String: | ||
|
|
||
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.
TypeIndex::Time64values are stored as decimal fields, but this branch reads them withfield.safeGet<Int64>(). SincecanDumpIcebergStats()now explicitly allowsTime64, any Iceberg write that emits stats for aTime64column can fail at runtime with a field type mismatch when building lower/upper bounds. This should use the same decimal extraction path asDateTime64(or an equivalent conversion) instead of the integer accessor.Useful? React with 👍 / 👎.