wgtmac opened a new pull request, #487:
URL: https://github.com/apache/paimon-cpp/pull/487

   ### Purpose
   
   Linked issue: N/A
   
   Initialize Arrow Compute from `TableRead::Create()` so kernels used by 
predicate pushdown and other compute-backed paths are registered for downstream 
applications that link Arrow Compute statically.
   
   Without this initialization, the global Arrow function registry only 
contains the core kernels. Predicate binding then fails at runtime with errors 
such as:
   
   ```text
   Key error: No function registered with name: equal
   ```
   
   `arrow::compute::Initialize()` is idempotent. Calling it from the shared 
table-read entry point covers Parquet row-group predicate pushdown, 
Arrow-backed predicate evaluation, and future read paths without requiring 
every embedding application to initialize Arrow separately.
   
   ### Tests
   
   - Compiled the changed translation unit with the downstream project's 
C++23/libc++ flags. Compilation passed.
   - Ran the repository's pre-commit hooks on the changed file; clang-format, 
codespell, and cpplint passed.
   - No focused unit test was added because the failure depends on a 
process-global registry that has not been initialized; existing reader and 
predicate pushdown tests exercise `TableRead::Create()` and this code path.
   
   ### API and Format
   
   No public API, storage format, or protocol changes.
   
   ### Documentation
   
   No documentation changes are required. The initialization is internal to 
Paimon's table-read creation path.
   
   ### Generative AI tooling
   
   Generated-by: OpenAI Codex 0.162.1
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to