Commit b6a16ba
committed
Skip empty WindowDefinition in EXPLAIN AST output
ClickHouse's EXPLAIN AST doesn't output a WindowDefinition node when
the window spec is empty (OVER ()). This fix updates the explain output
to match ClickHouse's behavior by checking if the window spec has any
content (PartitionBy, OrderBy, or Frame offset) before outputting
WindowDefinition.
Also updates metadata.json files for tests that now pass.1 parent 16bd8a1 commit b6a16ba
178 files changed
Lines changed: 173 additions & 875 deletions
File tree
- internal/explain
- parser/testdata
- 00052_group_by_in
- 00162_shard_global_join
- 00309_formats
- 00609_prewhere_and_default
- 00765_sql_compatibility_aliases
- 00996_limit_with_ties
- 01051_scalar_optimization
- 01055_compact_parts_1
- 01070_template_empty_file
- 01073_crlf_end_of_line
- 01116_cross_count_asterisks
- 01117_chain_finalize_bug
- 01212_empty_join_and_totals
- 01240_join_get_or_null
- 01244_optimize_distributed_group_by_sharding_key
- 01356_wrong_filter-type_bug
- 01453_normalize_query_alias_uuid
- 01478_not_equi-join_on
- 01495_subqueries_in_with_statement_3
- 01495_subqueries_in_with_statement_4
- 01495_subqueries_in_with_statement
- 01499_json_named_tuples
- 01512_create_replicate_merge_tree_one_arg
- 01513_optimize_aggregation_in_order_memory_long
- 01515_with_global_and_with_propagation
- 01568_window_functions_distributed
- 01591_window_functions
- 01648_normalize_query_keep_names
- 01656_join_defaul_enum
- 01660_second_extremes_bug
- 01671_merge_join_and_constants
- 01711_cte_subquery_fix
- 01733_transform_ubsan
- 01757_optimize_skip_unused_shards_limit
- 01909_mbtolou
- 01913_exact_rows_before_limit
- 01926_order_by_desc_limit
- 01939_type_map_json
- 01942_snowflakeIDToDateTime
- 02006_test_positional_arguments
- 02012_zookeeper_changed_enum_type
- 02020_exponential_smoothing
- 02100_replaceRegexpAll_bug
- 02111_with_fill_no_rows
- 02113_untuple_func_alias
- 02126_lc_window_functions
- 02155_read_in_order_max_rows_to_read
- 02160_special_functions
- 02161_addressToLineWithInlines
- 02174_cte_scalar_cache
- 02180_group_by_lowcardinality
- 02212_cte_and_table_alias
- 02242_join_rocksdb
- 02267_special_operator_parse_alias_check
- 02271_fix_column_matcher_and_column_transformer
- 02322_sql_insert_format
- 02341_global_join_cte
- 02345_analyzer_subqueries
- 02345_implicit_transaction
- 02354_distributed_with_external_aggregation_memory_usage
- 02364_window_case
- 02366_asof_optimize_predicate_bug_37813
- 02366_window_function_order_by
- 02376_analyzer_in_function_subquery
- 02385_profile_events_overflow
- 02387_analyzer_cte
- 02474_analyzer_subqueries_table_expression_modifiers
- 02475_analyzer_join_tree_subquery
- 02475_or_function_alias_and_const_where
- 02478_analyzer_table_expression_aliases
- 02480_tlp_nan
- 02494_query_cache_bugs
- 02494_query_cache_ignore_output_settings
- 02494_query_cache_udf_sql
- 02503_join_switch_alias_fuzz
- 02535_analyzer_group_by_use_nulls
- 02552_analyzer_optimize_group_by_function_keys_crash
- 02552_client_format_settings
- 02569_order_by_aggregation_result
- 02771_jit_functions_comparison_crash
- 02786_max_execution_time_leaf
- 02811_read_in_order_and_array_join_bug
- 02814_order_by_tuple_window_function
- 02815_join_algorithm_setting
- 02833_array_join_columns
- 02834_analyzer_with_statement_references
- 02834_array_exists_segfault
- 02841_not_ready_set_join_on
- 02863_delayed_source_with_totals_and_extremes
- 02868_select_support_from_keywords
- 02871_join_on_system_errors
- 02890_untuple_column_names
- 02901_remove_nullable_crash_analyzer
- 02902_json_skip_null_values
- 02907_read_buffer_content_is_cached_multiple_blobs
- 02949_ttl_group_by_bug
- 02953_slow_create_view
- 02968_sumMap_with_nan
- 02972_parallel_replicas_cte
- 02973_analyzer_join_use_nulls_column_not_found
- 02985_shard_query_start_time
- 02989_join_using_parent_scope
- 02998_system_dns_cache_table
- 02999_scalar_subqueries_bug_2
- 03006_parallel_replicas_cte_explain_syntax_crash
- 03014_async_with_dedup_part_log_rmt
- 03015_analyzer_groupby_fuzz_60772
- 03017_analyzer_groupby_fuzz_61600
- 03022_highlight_digit_groups
- 03033_analyzer_resolve_from_parent_scope
- 03038_ambiguous_column
- 03039_unknown_identifier_window_function
- 03041_select_with_query_result
- 03067_analyzer_complex_alias_join
- 03086_analyzer_window_func_part_of_group_by
- 03087_analyzer_subquery_with_alias
- 03101_analyzer_identifiers_2
- 03102_prefer_column_name_to_alias
- 03109_ast_too_big
- 03114_analyzer_cte_with_join
- 03119_analyzer_window_function_in_CTE_alias
- 03123_analyzer_dist_join_CTE
- 03124_analyzer_nested_CTE_dist_in
- 03125_analyzer_CTE_two_joins
- 03129_cte_with_final
- 03143_cte_scope
- 03143_window_functions_qualify_validation
- 03146_tpc_ds_grouping
- 03147_rows_before_limit_fix
- 03172_format_settings_clauses
- 03196_max_intersections_arena_crash
- 03198_h3_polygon_to_cells
- 03199_queries_with_new_analyzer
- 03201_analyzer_resolve_in_parent_scope
- 03217_filtering_in_storage_merge
- 03217_fliter_pushdown_no_keys
- 03228_url_engine_response_headers
- 03298_triger_local_error_format
- 03305_compressed_memory_eng_crash_reading_subcolumn
- 03307_parallel_hash_max_joined_rows
- 03312_line_numbers
- 03315_trim_two_args
- 03319_concurrent_hash_join_double_preallocation_bug
- 03351_client_insert_bad_connection_state
- 03356_analyzer_qualified_matcher_error
- 03356_analyzer_unused_scalar_subquery
- 03360_any_join_parallel_hash_bug
- 03362_join_on_filterpushdown
- 03363_function_keccak256
- 03371_analyzer_filter_pushdown_distributed
- 03403_read_in_order_streams_memory_usage
- 03432_input_format_parquet_max_block_size_validation
- 03447_window_functions_distinct
- 03448_window_functions_distinct_distributed
- 03449_window_cannot_find_column
- 03457_bitmapContains_nullable
- 03513_filter_push_down_rand_bug
- 03519_cte_allow_push_predicate_ast_for_distributed_subqueries_bug
- 03519_multiple_join_using
- 03520_analyzer_distributed_in_cte_bug
- 03538_analyzer_lag_lead_functions
- 03538_array_except
- 03541_rename_column_start
- 03561_analyzer_cte_cycle_resolve_bug
- 03568_udf_memory_tracking
- 03577_server_constant_folding
- 03581_parallel_replicas_task_size
- 03583_rewrite_in_to_join
- 03593_any_join_swap_tables
- 03595_pread_threadpool_direct_io
- 03601_inconsistent_table_names
- 03601_insert_squashing_remove_const
- 03601_replace_regex_fixedstring_empty_needle
- 03643_paste_join_disable_filter_pushdown
- 03722_function_trim_ltrim_rtrim_alias
- 03728_analyzer_identifier_resolution_join
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
75 | | - | |
76 | | - | |
| 74 | + | |
| 75 | + | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
81 | 98 | | |
82 | 99 | | |
83 | 100 | | |
| |||
| 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 | | - | |
| 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 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 1 | + | |
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | 6 | | |
9 | | - | |
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
| |||
| 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 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
0 commit comments