You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "Dandandan (via GitHub)" <gi...@apache.org> on 2026/02/28 08:48:52 UTC
[PR] Optimize casts [datafusion]
Dandandan opened a new pull request, #20614:
URL: https://github.com/apache/datafusion/pull/20614
## Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
-->
- Closes #.
## Rationale for this change
<!--
Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.
-->
## What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
-->
## Are these changes tested?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
-->
## Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be updated before approving the PR.
-->
<!--
If there are any breaking changes to public APIs, please add the `api change` label.
-->
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Optimize casts [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan closed pull request #20614: Optimize casts
URL: https://github.com/apache/datafusion/pull/20614
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Optimize casts [datafusion]
Posted by "alamb-ghbot (via GitHub)" <gi...@apache.org>.
alamb-ghbot commented on PR #20614:
URL: https://github.com/apache/datafusion/pull/20614#issuecomment-3976985057
๐ค: Benchmark completed
<details><summary>Details</summary>
<p>
```
Comparing HEAD and double-cast
--------------------
Benchmark clickbench_extended.json
--------------------
โโโโโโโโโโโโณโโโโโโโโโโโโโโณโโโโโโโโโโโโโโณโโโโโโโโโโโโ
โ Query โ HEAD โ double-cast โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 2320.78 ms โ 2243.84 ms โ no change โ
โ QQuery 1 โ 921.32 ms โ 922.99 ms โ no change โ
โ QQuery 2 โ 1803.62 ms โ 1740.92 ms โ no change โ
โ QQuery 3 โ 1036.14 ms โ 1035.31 ms โ no change โ
โ QQuery 4 โ 2252.49 ms โ 2313.00 ms โ no change โ
โ QQuery 5 โ 28212.27 ms โ 28227.80 ms โ no change โ
โ QQuery 6 โ 110.45 ms โ 107.95 ms โ no change โ
โ QQuery 7 โ 2812.50 ms โ 2760.70 ms โ no change โ
โโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 39469.57ms โ
โ Total Time (double-cast) โ 39352.51ms โ
โ Average Time (HEAD) โ 4933.70ms โ
โ Average Time (double-cast) โ 4919.06ms โ
โ Queries Faster โ 0 โ
โ Queries Slower โ 0 โ
โ Queries with No Change โ 8 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
--------------------
Benchmark clickbench_partitioned.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโณโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ double-cast โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 2.55 ms โ 2.59 ms โ no change โ
โ QQuery 1 โ 51.62 ms โ 53.60 ms โ no change โ
โ QQuery 2 โ 132.07 ms โ 133.72 ms โ no change โ
โ QQuery 3 โ 154.80 ms โ 159.28 ms โ no change โ
โ QQuery 4 โ 1020.98 ms โ 1031.59 ms โ no change โ
โ QQuery 5 โ 1244.39 ms โ 1251.51 ms โ no change โ
โ QQuery 6 โ 17.12 ms โ 16.83 ms โ no change โ
โ QQuery 7 โ 67.43 ms โ 69.01 ms โ no change โ
โ QQuery 8 โ 1380.62 ms โ 1431.78 ms โ no change โ
โ QQuery 9 โ 1758.32 ms โ 1772.76 ms โ no change โ
โ QQuery 10 โ 471.79 ms โ 483.51 ms โ no change โ
โ QQuery 11 โ 515.82 ms โ 531.16 ms โ no change โ
โ QQuery 12 โ 1369.99 ms โ 1380.36 ms โ no change โ
โ QQuery 13 โ 2037.81 ms โ 2083.50 ms โ no change โ
โ QQuery 14 โ 1391.03 ms โ 1420.85 ms โ no change โ
โ QQuery 15 โ 1171.16 ms โ 1188.35 ms โ no change โ
โ QQuery 16 โ 2464.16 ms โ 2504.67 ms โ no change โ
โ QQuery 17 โ 2434.30 ms โ 2486.33 ms โ no change โ
โ QQuery 18 โ 5267.08 ms โ 4724.34 ms โ +1.11x faster โ
โ QQuery 19 โ 137.46 ms โ 150.79 ms โ 1.10x slower โ
โ QQuery 20 โ 1842.52 ms โ 1848.25 ms โ no change โ
โ QQuery 21 โ 2298.20 ms โ 2293.79 ms โ no change โ
โ QQuery 22 โ 4080.66 ms โ 3902.12 ms โ no change โ
โ QQuery 23 โ 1088.35 ms โ 1072.76 ms โ no change โ
โ QQuery 24 โ 242.51 ms โ 242.49 ms โ no change โ
โ QQuery 25 โ 630.72 ms โ 617.39 ms โ no change โ
โ QQuery 26 โ 344.81 ms โ 332.39 ms โ no change โ
โ QQuery 27 โ 2991.16 ms โ 2951.80 ms โ no change โ
โ QQuery 28 โ 24401.50 ms โ 23822.62 ms โ no change โ
โ QQuery 29 โ 951.67 ms โ 980.65 ms โ no change โ
โ QQuery 30 โ 1276.24 ms โ 1298.60 ms โ no change โ
โ QQuery 31 โ 1299.32 ms โ 1309.11 ms โ no change โ
โ QQuery 32 โ 4206.67 ms โ 4111.73 ms โ no change โ
โ QQuery 33 โ 5374.46 ms โ 5135.69 ms โ no change โ
โ QQuery 34 โ 5734.81 ms โ 5632.84 ms โ no change โ
โ QQuery 35 โ 1869.29 ms โ 1862.11 ms โ no change โ
โ QQuery 36 โ 174.36 ms โ 179.08 ms โ no change โ
โ QQuery 37 โ 87.77 ms โ 89.74 ms โ no change โ
โ QQuery 38 โ 87.49 ms โ 89.31 ms โ no change โ
โ QQuery 39 โ 277.91 ms โ 289.73 ms โ no change โ
โ QQuery 40 โ 59.62 ms โ 57.78 ms โ no change โ
โ QQuery 41 โ 50.23 ms โ 49.91 ms โ no change โ
โ QQuery 42 โ 36.82 ms โ 36.40 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 82497.61ms โ
โ Total Time (double-cast) โ 81082.81ms โ
โ Average Time (HEAD) โ 1918.55ms โ
โ Average Time (double-cast) โ 1885.65ms โ
โ Queries Faster โ 1 โ
โ Queries Slower โ 1 โ
โ Queries with No Change โ 41 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
--------------------
Benchmark tpch_mem_sf1.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโณโโโโโโโโโโโโโโณโโโโโโโโโโโโ
โ Query โ HEAD โ double-cast โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 1 โ 105.44 ms โ 100.77 ms โ no change โ
โ QQuery 2 โ 32.94 ms โ 32.04 ms โ no change โ
โ QQuery 3 โ 40.28 ms โ 40.17 ms โ no change โ
โ QQuery 4 โ 31.92 ms โ 30.86 ms โ no change โ
โ QQuery 5 โ 92.54 ms โ 91.61 ms โ no change โ
โ QQuery 6 โ 21.05 ms โ 20.88 ms โ no change โ
โ QQuery 7 โ 161.11 ms โ 161.75 ms โ no change โ
โ QQuery 8 โ 42.86 ms โ 42.39 ms โ no change โ
โ QQuery 9 โ 106.65 ms โ 108.21 ms โ no change โ
โ QQuery 10 โ 67.51 ms โ 65.98 ms โ no change โ
โ QQuery 11 โ 19.55 ms โ 18.96 ms โ no change โ
โ QQuery 12 โ 53.51 ms โ 51.17 ms โ no change โ
โ QQuery 13 โ 47.74 ms โ 48.89 ms โ no change โ
โ QQuery 14 โ 15.58 ms โ 14.88 ms โ no change โ
โ QQuery 15 โ 30.33 ms โ 29.93 ms โ no change โ
โ QQuery 16 โ 29.43 ms โ 28.88 ms โ no change โ
โ QQuery 17 โ 142.63 ms โ 145.44 ms โ no change โ
โ QQuery 18 โ 291.36 ms โ 288.59 ms โ no change โ
โ QQuery 19 โ 39.44 ms โ 39.35 ms โ no change โ
โ QQuery 20 โ 56.80 ms โ 55.28 ms โ no change โ
โ QQuery 21 โ 198.65 ms โ 193.54 ms โ no change โ
โ QQuery 22 โ 23.17 ms โ 22.92 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 1650.50ms โ
โ Total Time (double-cast) โ 1632.50ms โ
โ Average Time (HEAD) โ 75.02ms โ
โ Average Time (double-cast) โ 74.20ms โ
โ Queries Faster โ 0 โ
โ Queries Slower โ 0 โ
โ Queries with No Change โ 22 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโ
```
</p>
</details>
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Optimize casts [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #20614:
URL: https://github.com/apache/datafusion/pull/20614#issuecomment-3976692533
run benchmarks
DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS=true
DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS=true
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Optimize casts [datafusion]
Posted by "alamb-ghbot (via GitHub)" <gi...@apache.org>.
alamb-ghbot commented on PR #20614:
URL: https://github.com/apache/datafusion/pull/20614#issuecomment-3976791013
๐ค `./gh_compare_branch.sh` [gh_compare_branch.sh](https://github.com/alamb/datafusion-benchmarking/blob/main/scripts/gh_compare_branch.sh) Running
Linux aal-dev 6.14.0-1018-gcp #19~24.04.1-Ubuntu SMP Wed Sep 24 23:23:09 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Comparing double-cast (a5f20c89f0962c1db74ac5c2dbf26640e1d921d3) to bfc012e63852826f68e970a993c4c25cfcbddf43 [diff](https://github.com/apache/datafusion/compare/bfc012e63852826f68e970a993c4c25cfcbddf43..a5f20c89f0962c1db74ac5c2dbf26640e1d921d3) using: tpch_mem clickbench_partitioned clickbench_extended
Results will be posted here when complete
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org