Repository navigation
Parse record_count and size_bytes fields from iceberg manifest file - #100645
Conversation
|
Workflow [PR], commit [3ebd89c] Summary: ❌
AI ReviewSummaryThis PR adds parsing and propagation of Iceberg Missing context
ClickHouse Rules
Final Verdict
|
|
#100433 - needed to remove dependency of IcebergSource on SchemaInference class |
| { | ||
| if (value < 0) | ||
| { | ||
| throw Exception(ErrorCodes::INCORRECT_DATA, "NumericIndexedVector does not support negative values"); |
There was a problem hiding this comment.
This change introduces a behavioral regression: NumericIndexedVector currently supports signed values (including negative scalars), and existing stateless tests rely on it (for example tests/queries/0_stateless/03463_numeric_indexed_vector_overflow.sql line 11 uses numericIndexedVectorPointwiseMultiply(..., -9999999999) and expects a valid result).
After this new guard, every path that calls checkValidValue will throw INCORRECT_DATA for negative inputs, so legitimate signed use-cases will start failing.
Please keep the UB fix local to the problematic conversion path instead of banning negatives globally (e.g. restrict the change to the std::floor/cast path, while preserving negative-value semantics).
There was a problem hiding this comment.
Unrelated because of garbage in master
…tes` Add `LOG_TEST` in `StorageObjectStorageSource::createReader` that logs `record_count` and `file_size_in_bytes` from `IcebergObjectSerializableInfo` when reading Iceberg data files. Add unit tests for `IcebergObjectSerializableInfo` serialization round-trip, backward compatibility with protocol version 5, and nullopt handling. Add integration test that verifies the logged values match actual row counts (via direct parquet reads) and file sizes (via S3 object metadata), both for single-node and cluster table function paths. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
4f8e55d to
7021971
Compare
…ed test Merge `test_iceberg_file_stats_logging` and `test_iceberg_file_stats_logging_cluster` into one test parametrized by `run_on_cluster`. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Prevents test contamination from accumulated log messages across test runs by filtering log lines to only those matching the current query's `query_id`. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
When presence flags are 0, explicitly assign `std::nullopt` to prevent stale values leaking if an `IcebergObjectSerializableInfo` instance is reused across multiple deserializations. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
In cluster mode, worker nodes execute reads with their own auto-generated `query_id`, not the coordinator's. The test now queries `system.query_log` on all nodes using `initial_query_id` to discover all related query_ids before filtering log lines. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
LLVM Coverage Report
Changed lines: 98.51% (198/201) · Uncovered code |
Antalya 26.3 Backport of ClickHouse#100645 - Parse record_count and size_bytes fields from iceberg manifest file
…s_and_rows_count_to_iceberg_data_object Parse record_count and size_bytes fields from iceberg manifest file
…s_and_rows_count_to_iceberg_data_object Parse record_count and size_bytes fields from iceberg manifest file
Antalya 26.3 Backport of ClickHouse#100645 - Parse record_count and size_bytes fields from iceberg manifest file
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Object information used for parsing data files in iceberg now contains the number of file rows and file size in bytes parsed from manifest file
Documentation entry for user-facing changes