Conversation
…/Altinity/ClickHouse into iceberg_rewrite_files_compaction
Audit report: Altinity/ClickHouse#2420 (Iceberg bin-pack
|
Audit report: #2420 at c4c4578AI audit note: This review was generated by AI. Audit update for PR #2420 (Iceberg bin-pack All 10 defects from the previous audit (head Confirmed defectsMedium: the v3 guard uses the format version cached when the table object was created, and full compaction still accepts v3 and writes v2 metadata
if (persistent_components.format_version != 2) // set once in the IcebergMetadata constructor
throw Exception(ErrorCodes::BAD_ARGUMENTS, "OPTIMIZE TABLE is supported only for Iceberg format_version 2, got {}", ...);
// Compaction.cpp / getPlan (latest metadata)
if (initial_metadata_object->getValue<Int32>(Iceberg::f_format_version) < 2) // v3 passes
Low: after full compaction, the regenerated
|
…-pack rewrite The error code does not exist in `ErrorCodes.cpp`, which caused a link failure of `clickhouse` and `unit_tests_dbms`. Use `UNFINISHED` for the case where the outcome of the metadata commit is unknown. Co-authored-by: Cursor <cursoragent@cursor.com>
…-pack rewrite The error code does not exist in `ErrorCodes.cpp`, which caused a link failure of `clickhouse` and `unit_tests_dbms`. Use `UNFINISHED` for the case where the outcome of the metadata commit is unknown.
…/Altinity/ClickHouse into iceberg_rewrite_files_compaction
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Implement bin-packing
ReWriteFilesoperation that Identifies small data files below a target size threshold(defined in Settings), groups them and merges to a large file, creates a snapshot that marks the old ones as DELETED and the new larger merge file as ADDED.Leave all other files, manifests, and history untouched
CI/CD Options
Exclude tests:
Regression jobs to run: