grundprinzip opened a new pull request, #42099:
URL: https://github.com/apache/spark/pull/42099

   ### What changes were proposed in this pull request?
   Previously, when a new DSv2 data source is implemented during planning, it 
will always call `BatchScanExec:supportsColumnar` which will in turn iterate 
over all input partitions to check if they support columnar or not. 
   
   When the `planInputPartitions` method is expensive this can be problematic. 
This patch adds an option to the Scan interface that allows specifying a 
default value. For backward compatibility the default value provided by the 
Scan interface is partition defined, but a Scan can change it accordingly.
   
   ### Why are the changes needed?
   Avoid costly operations during explain operations.
   
   ### Does this PR introduce _any_ user-facing change?
   Np
   
   ### 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