[HUDI-6369] Fix spacial curve with sample strategy fails when 0 or 1 rows only is incoming#9053
Conversation
...lient/hudi-spark-client/src/main/scala/org/apache/spark/sql/hudi/execution/RangeSample.scala
Outdated
Show resolved
Hide resolved
a7c8776 to
7935c3a
Compare
...lient/hudi-spark-client/src/main/scala/org/apache/spark/sql/hudi/execution/RangeSample.scala
Show resolved
Hide resolved
boneanxs
left a comment
There was a problem hiding this comment.
Could you pls look into the test failure? It appeals new added test has errors. Also, this test can moved to TestLayoutOptimization.
Currently, we lack tests that cover the sortDataFrameBySampleSupportAllTypes function. It would be highly beneficial if you could include it as well.
...lient/hudi-spark-client/src/main/scala/org/apache/spark/sql/hudi/execution/RangeSample.scala
Show resolved
Hide resolved
Agreed, fill free to submit a patch, I am in vacation for a week |
|
boneanxs
left a comment
There was a problem hiding this comment.
Overall LGTM, @danny0405 could you please also review this? Thanks!
...hudi-spark-client/src/test/java/org/apache/spark/sql/hudi/execution/RangeSampleSortTest.java
Outdated
Show resolved
Hide resolved
...hudi-spark-client/src/test/java/org/apache/spark/sql/hudi/execution/RangeSampleSortTest.java
Outdated
Show resolved
Hide resolved
ff5cd07 to
8caf378
Compare
|
Looks good to me. Resurrecting this PR with rebase and minor test class rename. |
Change Logs
Fixes #8934
see https://issues.apache.org/jira/browse/HUDI-6369
Impact
Fix corner case for z-order clustering
Risk level (write none, low medium or high below)
low
Documentation Update
N/A
Contributor's checklist