haohuaijin commented on PR #26776: URL: https://github.com/apache/datafusion/pull/26776#issuecomment-7240766892
Thanks for the review @kosiew, i added the test case in [a845b9a](https://github.com/apache/datafusion/pull/26776/commits/a845b9a84f8cbe17aef0a50a1f8105607a0e06b0), and add a bench in pr https://github.com/apache/datafusion/pull/27820, the result is: ```text group main pr ----- ---- -- integer_stats_ordering/execution/bounded_wide_projection 1.00 65.7±1.13ms ? ?/sec 1.00 65.9±0.39ms ? ?/sec integer_stats_ordering/execution/overflow_arithmetic 1.00 13.8±0.12ms ? ?/sec 1.03 14.2±1.70ms ? ?/sec integer_stats_ordering/execution/safe_arithmetic 1.84 13.8±0.06ms ? ?/sec 1.00 7.5±0.08ms ? ?/sec integer_stats_ordering/execution/unchanged_no_stats_wide_projection 1.00 65.5±0.65ms ? ?/sec 1.00 65.7±0.24ms ? ?/sec integer_stats_ordering/planning/bounded_wide_projection 1.00 1454.9±37.46µs ? ?/sec 1.15 1672.3±28.17µs ? ?/sec integer_stats_ordering/planning/overflow_arithmetic 1.00 180.7±5.86µs ? ?/sec 1.18 212.8±4.30µs ? ?/sec integer_stats_ordering/planning/safe_arithmetic 1.01 178.8±3.40µs ? ?/sec 1.00 176.6±4.06µs ? ?/sec integer_stats_ordering/planning/unchanged_no_stats_wide_projection 1.01 1423.7±88.76µs ? ?/sec 1.00 1410.2±20.77µs ? ?/sec ``` summary: `safe_arithmetic` execution is **1.84x faster** (`13.8 ms` → `7.5 ms`) with slightly faster planning. When bounds exist but no sort is removed, planning adds `~32 µs` for `overflow_arithmetic` and `~217 µs` (`+15%`) for the 64-column `bounded_wide_projection` (~0.3% of execution time). The no-statistics control shows no regression. -- 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]
