yaooqinn opened a new pull request, #12176: URL: https://github.com/apache/gluten/pull/12176
## What changes were proposed in this pull request? `VeloxColumnarBatchSerializer::computeStats` did not accrue `nullCount` in the `default:` arm of the flat-encoding TypeKind switch. For flat-encoded unsupported TypeKinds (`VARBINARY`, `OPAQUE`, `UNKNOWN`) with V2 partition stats enabled, `stats.nullCount` was 0 regardless of real null count, so Spark `IsNull` predicate pruning silently dropped null-bearing partitions. Mirror the non-flat path's `countNullsAny` call. Wire format unchanged (the `nullCount` slot has always been emitted, just zero for the affected types). No `SQLConf` change. ## How was this patch tested? New e2e test in `ColumnarCachedBatchE2ESuite`. Pre-fix: `0 did not equal 1`. Post-fix: pass. ## (Optional) Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude claude-opus-4.7 -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
