You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix SampleRatio fraction formatting and aliased negative integers
1. SampleRatio: Convert decimal values like 0.1 to fractions like 1/10
in EXPLAIN output, matching ClickHouse's format for SAMPLE clauses.
Added floatToFraction() helper to find simple fraction representation.
2. Aliased negative integers: Always output aliased negative integer
literals as "Literal Int64_-N" instead of "Function negate". The
previous code only did this in subquery context, but ClickHouse
always uses the literal format for aliased expressions.
Fixes 4 explain tests.
0 commit comments