Repository navigation
Fix delta_kernel_ffi unused_unsafe build warnings - #106381
Algunenano merged 1 commit into
Conversation
The catch_unwind guards added in ClickHouse#106109 wrap their body in an outer `unsafe` block, so the inner `unsafe` around `unwrap_and_parse_path_as_url` and `log_paths` inside the closures was redundant and emitted four `unused_unsafe` warnings on every build. Bump the delta-kernel-rs fork to drop those inner blocks. Closes ClickHouse#106223 Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Workflow [PR], commit [624edae] Summary: ✅
AI ReviewSummaryThis PR bumps Final VerdictStatus: ✅ Approve |
|
📊 Cloud Performance Report ✅ AI verdict: This PR only bumps the delta-kernel-rs submodule, which affects DeltaLake table integration and not the core query-execution path. ClickBench Q18 is a plain SELECT over the hits table that never touches delta-kernel code, so the flagged -5.2% improvement cannot plausibly be attributed to this change. Downgraded to not-sure: the delta is run-to-run variance rather than a real PR effect. clickbenchFlagged queries (1 of 43)
q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 No significant changes Debug info
|
|
@groeneai Can you review this PR please? |
…safety cherry-picks) Cherry-pick the FFI panic-safety and builder-leak fixes from master's delta-kernel-rs pointer onto the v0.23.0-based rebase-onto-v0.23.0 branch: ffi: make set_builder_option return an error instead of panicking ffi: add free_engine_builder to release a builder without building it ffi: guard snapshot and builder_build with catch_unwind ffi: guard table-changes (CDF) FFI exports with catch_unwind ffi: drop redundant inner unsafe blocks in catch_unwind closures These correspond to the changes introduced by #106109 and #106381, re-applied on top of the v0.23.0 rebase so this branch keeps the standalone snapshot FFI functions guarded with catch_unwind. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…safety cherry-picks) Cherry-pick the FFI panic-safety and builder-leak fixes from master's delta-kernel-rs pointer onto the v0.23.0-based rebase-onto-v0.23.0 branch: ffi: make set_builder_option return an error instead of panicking ffi: add free_engine_builder to release a builder without building it ffi: guard snapshot and builder_build with catch_unwind ffi: guard table-changes (CDF) FFI exports with catch_unwind ffi: drop redundant inner unsafe blocks in catch_unwind closures These correspond to the changes introduced by ClickHouse#106109 and ClickHouse#106381, re-applied on top of the v0.23.0 rebase so this branch keeps the standalone snapshot FFI functions guarded with catch_unwind. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The
catch_unwindguards added in #106109 wrap their body in an outerunsafeblock, and the closure inside inherits thatunsafecontext. The innerunsafearoundunwrap_and_parse_path_as_urlandlog_pathswas therefore redundant and produced fourunused_unsafewarnings on every build ofdelta_kernel_ffi(table_changes.rs:51,table_changes.rs:77,lib.rs:642,lib.rs:686).This bumps the
delta-kernel-rsfork to drop those innerunsafeblocks; the standaloneget_engine_builder/get_default_enginekeep theirs since they are not nested. Verified thatdelta_kernel_ffinow compiles with zero warnings.Closes #106223
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Removed spurious
unused_unsafecompiler warnings emitted when building the bundleddelta-kernel-rsFFI.Version info
26.6.1.511