← Open Source & Engineering Work
Apache Software Foundation · apache/datafusionMerged · DataFusion Core (PR #26096)

fix: downcast to FixedSizeBinaryArray in CASE literal lookup table (#26096)

Sole Author: Patrick Ribbsaeter (@patrickswedish) · Immutable Commit SHA: c52eb9734b4c968ad9880fb82f3214efd88cd82b

Physical expression evaluator fix resolving runtime downcast panics when evaluating SQL CASE literal lookup tables over Arrow FixedSizeBinaryArray columns.

fix: downcast to FixedSizeBinaryArray in CASE literal lookup table (#26096)

PR #26096

Merged Mainline

c52eb97

Immutable Git SHA

Rust

Systems

48/48 CI Green

CI & Test Matrix

01 · Engineering problem

The failure mode

Evaluating CASE WHEN expressions mixing FixedSizeBinary columns and scalar binary literals failed physical expression coercion or panicked when literal byte lengths differed.

02 · Technical response

What changed

  1. 01Updated CASE expression type coercion and literal adaptation for FixedSizeBinary operands.
  2. 02Added comprehensive sqllogictest and unit regression coverage for matching and mismatched binary literal widths.

03 · Verified outcome

Evidence-backed result

  • ✓Restored deterministic FixedSizeBinary CASE expression evaluation across DataFusion.
  • ✓Merged upstream from commit c52eb9734b4c968ad9880fb82f3214efd88cd82b.

04 · Cryptographic Git record

Immutable source evidence

RustApache DataFusionApache ArrowSQL Type CoercionPhysical Expressions

Independent open-source engineering authored solely by Patrick Ribbsaeter (@patrickswedish). Company and project names identify the public repository context only under nominative fair use. No employment, client, vendor, or partnership relationship is implied unless explicitly stated.