Skip to content

Conversation

@puzpuzpuz
Copy link
Contributor

@puzpuzpuz puzpuzpuz commented Nov 10, 2025

Zero exec times (or <1ms to be more precise) are silently replaced with Infinity leading to broken score calculation. In particular, this breaks total ratio calculation as relativeQueryTime chokes when it meets an Infinity (the accumulator value becomes -Infinity).

The bug may be seen via this filter: https://benchmark.clickhouse.com/#system=+DcD|QtD&type=-&machine=+ae-l|g-l&cluster_size=-&opensource=-&tuned=+n&metric=hot&queries=-

Screenshot from 2025-11-10 21-43-59

@rschu1ze rschu1ze merged commit 78d0ab1 into ClickHouse:main Nov 13, 2025
@rschu1ze
Copy link
Member

@puzpuzpuz Thanks for this fix.

@rschu1ze
Copy link
Member

Works now.

grafik

@puzpuzpuz
Copy link
Contributor Author

@rschu1ze thanks for the review!

@puzpuzpuz puzpuzpuz deleted the fix_zero_ratio branch November 13, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants