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

   ### What changes were proposed in this pull request?
   DataSourceV2 allows data sources to report existing partitioning of read 
data (`org.apache.spark.sql.connector.read.partitioning`). Currently, there is 
only `KeyGroupedPartitioning` and `UnknownPartitioning`. Data sources should be 
able to report global ordered data so that downstream operations can exploit 
this.
   
   The following is required for this to work:
   - Define `RangePartitioning` as a new implementation of `Partitioning`
   - Add Catalyst rules that handle this partitioning
   - Add a test source that reports ordering to proof that subsequent 
operations requiring order do not invoke sorting data
   
   ### Why are the changes needed?
   Transformations that require certain order or partitioning should not 
shuffle or sort data when that is redundant.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Tests in `DataSourceV2Suite`.


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