viirya commented on PR #59582:
URL: https://github.com/apache/spark/pull/59582#issuecomment-6760827823

   Thank you, @dongjoon-hyun. The two comments are addressed in 73670610e04, 
and so is the early-stop check: it now runs `result.limit(10).collect()`, 
asserts that its plan has an `ArrowEvalPythonExec`, and checks the first 10 UDF 
results. The source closes the batches that are left when the task completes, 
and closing its allocator then fails the task if any of their buffers is still 
referenced.
   
   I agree with both follow-ups, and will do them in separate PRs:
   - Passing through only the child columns that the ancestors use, which would 
also help the row path.
   - Returning rows to a row-based parent. 
`ApplyColumnarRulesAndInsertTransitions` already keeps a columnar child below a 
node that supports both, so it needs a `doExecute` that reads the columnar 
child and returns the joined rows. That skips the conversion of the joined rows 
to columns and back for a row-based parent.
   
   On `branch-4.3` and `branch-4.2`, you're right, the description overstated 
it, and I corrected it: this PR fixes `master` and `branch-4.x`, where columnar 
input stays disabled by default. For 4.3 and 4.2, I'll open backport PRs of 
SPARK-60294 alone. On `branch-4.3` it conflicts only in the migration guide; on 
`branch-4.2` it also has to leave out its tests over the Arrow cache, which 4.2 
does not have.
   
   I added the `correctness` label to SPARK-60294, which fixes wrong results 
with the default configuration, along with 4.2.1 and 4.3.0 as affected 
versions. I left it off SPARK-60325, which is an improvement: on the branches 
it goes to, columnar input is disabled by default.


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