Skip to content

Add icebergTruncate function and support it in partition pruning for Iceberg#77403

Merged
alesapin merged 31 commits intomasterfrom
add_iceberg_truncate
Mar 17, 2025
Merged

Add icebergTruncate function and support it in partition pruning for Iceberg#77403
alesapin merged 31 commits intomasterfrom
add_iceberg_truncate

Conversation

@alesapin
Copy link
Member

@alesapin alesapin commented Mar 10, 2025

Changelog category (leave one):

  • New Feature

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

Add 3 new functions. icebergTruncate according to specification. https://iceberg.apache.org/spec/#truncate-transform-details, toYearNumSinceEpoch and toMonthNumSinceEpoch. Support truncate transform in partition pruning for Iceberg engine.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@clickhouse-gh
Copy link
Contributor

clickhouse-gh bot commented Mar 10, 2025

Workflow [PR], commit [e50b3f7]

@clickhouse-gh clickhouse-gh bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Mar 10, 2025
@bharatnc bharatnc self-assigned this Mar 10, 2025

REGISTER_FUNCTION(icebergTruncate)
{
factory.registerFunction<FunctionIcebergTruncate>();
Copy link
Contributor

Choose a reason for hiding this comment

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

We would need to register new functions with documentation - related CI failures.

@bharatnc
Copy link
Contributor

Wondering if this PR should be a feature category with a changelog?

@divanik divanik self-assigned this Mar 11, 2025
@alesapin alesapin changed the title Add icebergTruncate function Add icebergTruncate function and support partition pruning for Iceberg Mar 12, 2025
@alesapin alesapin changed the title Add icebergTruncate function and support partition pruning for Iceberg Add icebergTruncate function and support it in partition pruning for Iceberg Mar 12, 2025
@alesapin alesapin marked this pull request as draft March 12, 2025 12:40
@alesapin alesapin marked this pull request as ready for review March 12, 2025 13:24
@clickhouse-gh clickhouse-gh bot added pr-feature Pull request with new product feature and removed pr-not-for-changelog This PR should not be mentioned in the changelog labels Mar 12, 2025
Copy link
Member

@divanik divanik left a comment

Choose a reason for hiding this comment

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

Minor changes, generally LGTM

@alesapin
Copy link
Member Author

It's weird that docs check failed with "no documentation added for new feature". I've added docs in code for all three new functions.

@alesapin alesapin added this pull request to the merge queue Mar 17, 2025
Merged via the queue into master with commit e34534f Mar 17, 2025
119 of 124 checks passed
@alesapin alesapin deleted the add_iceberg_truncate branch March 17, 2025 21:36
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 17, 2025
@bharatnc
Copy link
Contributor

"no documentation added for new feature".

I think it expects markdown documentation.

ianton-ru pushed a commit to Altinity/ClickHouse that referenced this pull request Apr 11, 2025
Add `icebergTruncate` function and support it in partition pruning for Iceberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-feature Pull request with new product feature pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants