txwyy123 commented on PR #59841:
URL: https://github.com/apache/spark/pull/59841#issuecomment-6790407341

   Pushed `b97a7919` with two additional fixes found during self-audit:
   
   1. **`condExprRefs` used wrong reference set** — was 
`conditionForCodegen.get.references` (only `restCondition`), now 
`condition.get.references` (the full condition including 
`streamedOnlyCondition`). Without this, the `streamedOnlyPre` guard could read 
uninitialized fields for columns only referenced by the streamed-only predicate.
   
   2. **Tests were exercising the wrong code path** — with `maxFields=200` and 
40+40=80 columns, `totalOutputCols (80) < maxFields/2 (100)` so 
`useFieldBasedExtraction` was `false`. All tests ran the narrow (local 
variable) path, not the field-based path. Changed `maxFields` to 120, making 
the threshold 60, so 80 columns triggers the field-based path.
   


-- 
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]

Reply via email to