Skip to content

Carry the ClickHouse patches from apache-arrow-25.0.0 onto apache-arrow-26.0.1 - #93

Merged
thevar1able merged 12 commits into
ClickHouse:ClickHouse/apache-arrow-26.0.1from
actueleai:ClickHouse/apache-arrow-26.0.1
Nov 19, 2026
Merged

thevar1able merged 12 commits into
ClickHouse:ClickHouse/apache-arrow-26.0.1from
actueleai:ClickHouse/apache-arrow-26.0.1

Conversation

@actueleai

Copy link
Copy Markdown

Carry the ClickHouse patches from apache-arrow-25.0.0 onto apache-arrow-26.0.1.

Fork

12 patches, in order (authors kept):

  • Remove debug table validation checks
  • Fix clang-tidy
  • Allow Parquet map key to be optional
  • Don't abort in ~CerrLog
  • Fix possible use-of-uninitialized-value
  • Allow to get number of rows in record batch
  • Add interface to get raw orc reader from adapters
  • Remove submodules
  • Fix RecordBatchCountRows to unwrap Result from GetRecordBatchBlock
  • Sync parquet.thrift with apache/parquet-format master — reduced to one doc-comment line plus the Thrift 0.25.0 generated code (ALP, FILE, INT96_TIMESTAMP_ORDER are upstream now)
  • Give gRPC real pb::FlightData messages instead of casting Arrow structs
  • Do not check the C data interface release callbacks with Clang CFI

Once merged, ClickHouse's contrib/arrow submodule is bumped to this branch head.

🤖 Generated with Claude Code

bharatnc and others added 12 commits November 19, 2026 03:52
(cherry picked from commit 36062e6)
See ClickHouse#16

(cherry picked from commit deabbda)
(cherry picked from commit 928a02c)
Adds the `ALP` encoding, the `FILE` logical type (`FileType`) and the
`INT96_TIMESTAMP_ORDER` column order. The generated code is regenerated with
the Thrift compiler 0.25.0 (matching the Thrift runtime used by ClickHouse) via
`thrift --gen cpp:moveable_types,templates -out src/generated src/parquet/parquet.thrift`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 0e94efa)
…ucts

`WritePayload` and `ReadPayload` passed a `FlightPayload` or
`internal::FlightData` to gRPC as a `pb::FlightData` through
`reinterpret_cast`, and `SerializationTraits<pb::FlightData>` cast it
back. The object is not a `pb::FlightData`, which is undefined behavior
and which Clang CFI (`-fsanitize=cfi-unrelated-cast`) rejects.

gRPC only passes the message to `SerializationTraits`, so give it an
empty, real `pb::FlightData` that sits next to a pointer to the Arrow
struct, and read the struct back from it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 5eeae1b)
The release callback of an `ArrowSchema` or `ArrowArray` can be
implemented outside the code built with Clang CFI, for example in
another language such as Rust. It then has no CFI type, so
`ArrowSchemaRelease` and `ArrowArrayRelease` cannot check the call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit cdc2684)
@thevar1able
thevar1able merged commit a7aa2ac into ClickHouse:ClickHouse/apache-arrow-26.0.1 Nov 19, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants