Repository navigation
Add Arrow and Parquet format support for UUID data type - #99521
Conversation
2a4989c to
35539a3
Compare
|
Well, learned a couple of things today. I pushed a new commit to address the clickhouse-gh feedback on endianness and memory alignment. I replaced the |
|
This bot is actually quite smart 👍 |
|
Nice catch again. I've pushed a fix that keeps the zero-cost std::reverse abstraction for Little-Endian hosts, but adds an explicit else branch using std::swap_ranges(bytes, bytes + 8, bytes + 8). This safely flips the 64-bit halves on Big-Endian machines to match Arrow's canonical high||low requirement. |
84d867a to
1fe944d
Compare
|
The CI failure in the libFuzzer tests was caused by a flaky |
641c13d to
9054bcb
Compare
|
Implemented strict Big-Endian byte-swapping for Parquet/Arrow standard compliance. For the Parquet reader v2, root-level UUIDs are inferred automatically. Automated inference for nested UUIDs is deliberately disabled to route around an upstream Arrow 11 nullability bug. Nested UUIDs are fully supported via explicit schema hints. For v3 we can infer nested UUIDs cleanly. Tests are green locally. Ready for review. |
20aaa57 to
d007f38
Compare
d007f38 to
b9be61d
Compare
- Implements C++ reader/writer logic for UUIDs in Parquet/Arrow - Adds stateless test coverage using clickhouse-local to prevent CI collisions
b9be61d to
f497658
Compare
|
The The AST fuzzer failure is an exception from a bad cast from |
LLVM Coverage Report
PR changed lines: PR changed-lines coverage: 90.00% (288/320, 1 noise lines excluded) |
|
@ivanmantova @alexey-milovidov please check #100119 |
Antalya 26.3 Backport of ClickHouse#99521, ClickHouse#100150 - Add Arrow and Parquet format support for UUID data type
…rquet-uuid Add Arrow and Parquet format support for UUID data type
Antalya 26.3 Backport of ClickHouse#99521, ClickHouse#100150 - Add Arrow and Parquet format support for UUID data type
…rquet-uuid Add Arrow and Parquet format support for UUID data type
…row-parquet-uuid Antalya 25.8 - Backport of ClickHouse#99521 Parquet UUID support
Closes #72639
Maps the ClickHouse UUID type to Arrow's FixedSizeBinary(16).
Parquet and Arrow exports, alongside v2 reads, share the underlying Arrow C++ conversion pipeline. For v3 we directly integrate UUID decoding into native Parquet reader, bypassing Arrow for maximum performance.
For the v2 parquet reader, automated logical inference for nested UUIDs (e.g.,
Array(UUID)) is deliberately disabled. Recursively traversing and mutating nested extension types in the Arrow C++ API triggers an upstream bug that silently forces inner elements to becomeNullable. Users can still read deeply nested UUIDs by providing an explicit schema hint (e.g.,SELECT * FROM file(..., 'arr Array(UUID)')). For v3 we can inferArray(UUID)cleanly.Changelog category:
Improvement
Changelog entry:
Adds native support for importing and exporting UUID data types in Arrow and Parquet formats. Users can now directly query and transfer UUID data between ClickHouse and other data tools without requiring manual string conversions or workarounds. Automated logical inference for top-level UUIDs, and support for explicit schema hint for nested UUIDs.
Version info
26.3.1.886