v.25.3New Feature
Add three new
Add three new functions.icebergTruncateaccording to specification. https://iceberg.apache.org/spec/#truncate-transform-details,toYearNumSinceEpochandtoMonthNumSinceEpoch. Supporttruncatetransform in partition pruning forIcebergengine. #77403 (alesapin).
Why it matters
This feature enables more efficient query execution and data partitioning for Iceberg tables by implementing thetruncate transform according to the Iceberg specification. The new functions facilitate advanced date/time transformations aligning with Iceberg's partitioning logic, thereby improving partition pruning and query performance.How to use it
Use the new functionsicebergTruncate, toYearNumSinceEpoch, and toMonthNumSinceEpoch in your SQL queries as needed. For Iceberg tables, the partition pruning will now support the truncate transform automatically during query processing when applicable.