peter-toth opened a new pull request, #40779:
URL: https://github.com/apache/spark/pull/40779

   ### What changes were proposed in this pull request?
   `DataSet.show()` currently triggers a job for a simple `show tables` 
command. This is because the command output contains an `isTemporary` boolean 
column that needs to be casted to string when we use `show()` on the dataset.
   This PR introduces a new `LocalProject` node that overrides 
`executeCollect()`, `executeTake()` and `executeTail()` and does the projection 
(casting) locally and so it can be used on the top of `CommandResult`s to avoid 
triggering job execution.
   
   ### Why are the changes needed?
   A simple `show tables` shouldn not require an executor.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   Added new UT.
   


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