Commit 37c13c5
Fix CAST alias and large float formatting in EXPLAIN output (#95)
* Fix CAST alias and large float formatting in EXPLAIN output
- Always show alias for CAST expressions when wrapped in AliasedExpr,
regardless of whether CAST uses AS syntax (CAST(x AS Type)) or comma
syntax (CAST(x, 'Type'))
- Use scientific notation for very large floats (>= 1e21) in EXPLAIN
output to match ClickHouse's behavior
- Update next-test command to show test with most pending statements
instead of fewest
These changes fix 69 test files with numerous explain_todo statements.
* Add total pending statements count to next-test output
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 18d833e commit 37c13c5
File tree
69 files changed
+83
-340
lines changed- cmd/next-test
- internal/explain
- parser/testdata
- 00541_kahan_sum
- 00700_decimal_casts_2
- 00700_decimal_casts
- 00700_decimal_math
- 01013_hex_float
- 01262_low_cardinality_remove
- 01322_cast_keep_nullable
- 01323_if_with_nulls
- 01442_date_time_with_params
- 01455_nullable_type_with_if_agg_combinator
- 01456_low_cardinality_sorting_bugfix
- 01458_named_tuple_millin
- 01499_json_named_tuples
- 01518_cast_nullable_virtual_system_column
- 01518_nullable_aggregate_states1
- 01521_format_readable_time_delta2
- 01536_fuzz_cast
- 01550_create_map_type
- 01605_key_condition_enum_int
- 01651_group_uniq_array_enum
- 01670_neighbor_lc_bug
- 01744_tuple_cast_to_map_bugfix
- 01804_uniq_up_to_ubsan
- 01822_short_circuit
- 01906_bigint_accurate_cast_ubsan
- 02036_jit_short_circuit
- 02042_map_get_non_const_key
- 02126_lc_window_functions
- 02342_analyzer_compound_types
- 02385_analyzer_aliases_compound_expression
- 02426_to_string_nullable_fixedstring
- 02475_analyzer_subquery_compound_expression
- 02475_precise_decimal_arithmetics
- 02477_single_value_data_string_regression
- 02479_analyzer_aggregation_crash
- 02493_analyzer_table_functions_untuple
- 02542_transform_new
- 02574_suspicious_low_cardinality_msan
- 02715_bit_operations_float
- 02715_or_null
- 02751_parallel_replicas_bug_chunkinfo_not_set
- 02769_compare_functions_nan
- 02771_parallel_replicas_analyzer
- 02902_json_skip_null_values
- 02915_analyzer_fuzz_6
- 02915_sleep_large_uint
- 02919_ddsketch_quantile
- 02923_explain_expired_context
- 02932_parallel_replicas_fuzzer
- 02962_analyzer_const_in_count_distinct
- 03019_numbers_pretty
- 03032_string_to_variant_cast
- 03035_alias_column_bug_distributed
- 03127_argMin_combinator_state
- 03152_dynamic_type_simple
- 03165_round_scale_as_column
- 03199_merge_filters_bug
- 03355_join_to_in_optimization
- 03462_numeric_indexed_vector_serialization
- 03463_numeric_indexed_vector_overflow
- 03570_date_to_datetime64_overflow
- 03594_json_extract_decimal_precision
- 03716_join_duplicate_columns_89411
- 03747_float_parsing_subnormal
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
69 files changed
+83
-340
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
119 | 125 | | |
| 126 | + | |
120 | 127 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
| 506 | + | |
| 507 | + | |
512 | 508 | | |
513 | 509 | | |
514 | 510 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
| 25 | + | |
27 | 26 | | |
28 | | - | |
| 27 | + | |
29 | 28 | | |
30 | | - | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments