forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-37949][SQL] Improve Rebalance statistics estimation
### What changes were proposed in this pull request? Match `RebalancePartitions` in `SizeInBytesOnlyStatsPlanVisitor` and `BasicStatsPlanVisitor`. ### Why are the changes needed? The defualt statistics estimation only consider the size in bytes, which may lost the row rount and columns statistics. The `RebalancePartitions` actually does not change the statistics of plan, so we can use the statistics of its child for more accurate. ### Does this PR introduce _any_ user-facing change? no, only affect the statistics of plan ### How was this patch tested? Unify the test in `BasicStatsEstimationSuite` Closes apache#35235 from ulysses-you/SPARK-37949. Authored-by: ulysses-you <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
- Loading branch information
1 parent
54f91d3
commit 1f496fb
Showing
4 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters