wangyum opened a new pull request #30146: URL: https://github.com/apache/spark/pull/30146
### What changes were proposed in this pull request? This pr add support dynamic pruning on data column. Dynamic pruning on data column support 2 cases: 1. Pruning on aggregate function to reduce shuffle data:  2. Pruning on sort merge join to reduce shuffle data:  In addition, the dynamic pruning on data column also supports pushing down the dynamic filter to the data source. ### Why are the changes needed? Improve query performance. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Unit test and performance test: 1. TPC-DS Performance Evaluation SQL | Shuffle stage origin data size | Pruning shuffle stage data size | Shuffle stage origin records | Pruning shuffle stage records | Disable shuffle pruning (second) | Enable shuffle pruning (second) -- | -- | -- | -- | -- | -- | -- q13 | 3.2 GiB | 93.1 MiB | 86,409,332 | 1,480,662 | 13 | 14 q16 | 158.2 GiB | 270.7 MiB | 7,136,969,739 | 10,295,246 | 84 | 36 q24a | 355.6 GiB | 39.7 GiB | 13,428,037,922 | 1,504,810,137 | 660 | 432 q24b | 355.6 GiB | 39.7 GiB | 13,428,037,922 | 1,504,810,137 | 660 | 492 q65 | 37.2 GiB | 37.2 GiB | 2,627,543,089 | 2,627,543,089 | 45 | 45 q72 | 40.9 GiB | 1543.3 MiB | 1,418,327,817 | 47,248,271 | 276 | 38 q80 | 8.3 GiB | 8.2 GiB | 295,853,928 | 292,353,065 | 37 | 36 q85 | 12.8 GiB | 1508.2 MiB | 329,635,219 | 37,337,231 | 16 | 12 q93 | 26.7 GiB | 435.9 MiB | 1,389,592,792 | 20,744,184 | 270 | 258 q94 | 87.6 GiB | 1012.0 MiB | 3,598,433,079 | 34,538,210 | 58 | 27 q95 | 640.5 GiB | 344.6 GiB | 872,596,314 | 793,654,526 | 414 | 402 2. Production Performance Evaluation Before this PR | After this PR -- | --  |  ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
