jiayuasu opened a new pull request, #2644:
URL: https://github.com/apache/sedona/pull/2644

   ## Is this PR related to a GitHub issue or JIRA ticket?
   
   Closes https://github.com/apache/sedona/issues/2639
   
   ## What changes were proposed in this PR?
   
   Added `StructuredAdapter.repartitionBySpatialKey()` — a one-step API for 
spatially partitioning DataFrames using KDB-Tree (or other grid types). This 
simplifies the current 5-step workflow (DataFrame → SpatialRDD → analyze → 
spatialPartitioningWithoutDuplicates → back to DataFrame) into a single method 
call.
   
   ### Changes:
   - **Scala**: 3 overloads of `repartitionBySpatialKey` in 
`StructuredAdapter.scala` (full params, auto-detect geometry, auto-detect + 
default partitions)
   - **Python**: Matching `repartitionBySpatialKey` classmethod in 
`structured_adapter.py`
   - **Scala tests**: 2 new tests in `structuredAdapterTestScala.scala`
   - **Python tests**: 2 new tests in `test_structured_adapter.py`
   - **Docs**: New "Spatial Par- **Docs**: New "Spatial Par- **Docs**: New 
"Spatial Par- **Docs**: New "Spatial Par- **Docs**: New "SpaR - **Docs**: New 
"Spatial Par- **Docs**: New "Spatial Par- *.5 -Ds- **Docs**: New "Spatial Par- 
**Docs**: New "Spacar- **Docs**: New "Spatial Par- **Docs**:edA- **Docs**: New 
"Spatial Par- **Docs**: New "Spatial Par- **Docs**: New "Spatial Par- **Docs**: 
New "Spatial Par- **Docs**: New "SpaR - **Docs**: New "Spatial Par- **Docs**: 
New "Spatial Par- *.5 -Ds- **Docs**: New "Spatial Par- **Docs**: New "Spacar- 
**Docs**: New "Spatial Par- **Docs**:edA- **Docs**: New ".md- **Docs*abbed 
Python/Scala/Java examples.


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

Reply via email to