Skip to content

Conversation

zvonand
Copy link
Collaborator

@zvonand zvonand commented Aug 13, 2025

Closes #874.

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Expose IcebergS3 partition_key and sorting_key in system.tables

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Performance tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All with Aarch64
  • All Regression
  • Disable CI Cache

Copy link

github-actions bot commented Aug 13, 2025

Workflow [PR], commit [4980ec2]

@zvonand zvonand changed the title process partition key and sorting key from IcebergS3 Antalya 25.6.5: Expose IcebergS3 partition_key and sorting_key in system.tables Aug 13, 2025
@zvonand zvonand force-pushed the improvement/antalya/874 branch 2 times, most recently from 099c984 to f55dd06 Compare August 13, 2025 18:45
Copy link

@ianton-ru ianton-ru left a 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?

if (!schemas)
return map;

for (size_t i = 0; i < schemas->size(); ++i)

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

Copy link
Collaborator Author

@zvonand zvonand Aug 19, 2025

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")

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?

Copy link
Collaborator Author

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

@zvonand zvonand force-pushed the improvement/antalya/874 branch from 1d3f892 to 4980ec2 Compare August 19, 2025 15:34
@zvonand zvonand requested a review from ianton-ru August 21, 2025 12:20
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