-
Notifications
You must be signed in to change notification settings - Fork 8
Antalya 25.6.5: Expose IcebergS3 partition_key and sorting_key in system.tables #959
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.6.5
Are you sure you want to change the base?
Conversation
099c984
to
f55dd06
Compare
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.
Is it possible to add some test?
src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergMetadata.cpp
Outdated
Show resolved
Hide resolved
if (!schemas) | ||
return map; | ||
|
||
for (size_t i = 0; i < schemas->size(); ++i) |
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.
for (const auto & schema : *schemas)
{
if (!schema->has("schema-id"))
....
and the same way in other cycles over JSON::Array
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.
Does not look any better: in range-based loop, type will be wrong and will need to be converted explicitly later. This will not be better than it is already:
for (const auto & v : *schemas)
{
const auto & schema = v.extract<Poco::JSON::Object::Ptr>();
String result; | ||
if (base == "identity") | ||
result = col; | ||
else if (base == "year" || base == "month" || base == "day" || base == "hour") |
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.
Am I right that these types can't have param
?
If it true, than next block base != "void"
make the same.
If it false, than we lost param
, is it correct?
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.
Am I right that these types can't have
param
?
Yes, correct
1d3f892
to
4980ec2
Compare
Closes #874.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Expose IcebergS3
partition_key
andsorting_key
insystem.tables
Exclude tests: