Commit 46b7a23
committed
Handle SETTINGS placement edge case for FROM clause presence
When SETTINGS comes after FORMAT and there's a FROM clause,
Set should appear at both SelectQuery and SelectWithUnionQuery levels.
When there's no FROM clause, Set only appears at SelectWithUnionQuery level.
This fixes ~87 more explain tests.1 parent 841bf14 commit 46b7a23
97 files changed
Lines changed: 92 additions & 376 deletions
File tree
- internal/explain
- parser/testdata
- 00152_insert_different_granularity
- 00180_attach_materialized_view
- 00226_zookeeper_deduplication_and_unexpected_parts_long
- 00307_format_xml
- 00309_formats
- 00311_array_primary_key
- 00405_output_format_pretty_color
- 00405_pretty_formats
- 00609_prewhere_and_default
- 00688_low_cardinality_serialization
- 00722_inner_join
- 00730_unicode_terminal_format
- 00753_comment_columns_zookeeper
- 00754_alter_modify_column_partitions
- 00963_achimbab
- 01073_crlf_end_of_line
- 01074_partial_revokes
- 01246_extractAllGroupsHorizontal
- 01293_external_sorting_limit_bug
- 01318_parallel_final_stuck
- 01356_wrong_filter-type_bug
- 01499_json_named_tuples
- 01513_optimize_aggregation_in_order_memory_long
- 01553_settings_early_apply
- 01600_remerge_sort_lowered_memory_bytes_ratio
- 01640_marks_corruption_regression
- 01656_test_query_log_factories_info
- 01660_second_extremes_bug
- 01670_neighbor_lc_bug
- 01671_merge_join_and_constants
- 01730_distributed_group_by_no_merge_order_by_long
- 01757_optimize_skip_unused_shards_limit
- 01801_approx_total_rows_mergetree_reverse
- 01812_optimize_skip_unused_shards_single_node
- 01822_union_and_constans_error
- 01910_view_dictionary_check_refresh
- 01913_exact_rows_before_limit
- 01926_order_by_desc_limit
- 01939_type_map_json
- 02155_read_in_order_max_rows_to_read
- 02174_cte_scalar_cache
- 02180_group_by_lowcardinality
- 02242_join_rocksdb
- 02270_client_name
- 02295_GROUP_BY_AggregateFunction
- 02322_sql_insert_format
- 02354_distributed_with_external_aggregation_memory_usage
- 02385_profile_events_overflow
- 02402_external_disk_metrics
- 02441_alter_delete_and_drop_column
- 02448_clone_replica_lost_part
- 02494_query_cache_bugs
- 02494_query_cache_ignore_output_settings
- 02494_query_cache_key
- 02494_query_cache_log_comment
- 02494_query_cache_metrics
- 02494_query_cache_sparse_columns
- 02516_projections_with_rollup
- 02535_analyzer_group_by_use_nulls
- 02552_client_format_settings
- 02786_max_execution_time_leaf
- 02805_distributed_queries_timeouts
- 02811_read_in_order_and_array_join_bug
- 02815_join_algorithm_setting
- 02833_array_join_columns
- 02863_delayed_source_with_totals_and_extremes
- 02896_max_execution_time_with_break_overflow_mode
- 02902_json_skip_null_values
- 02985_shard_query_start_time
- 02989_join_using_parent_scope
- 02998_pretty_format_print_readable_number_on_single_value
- 03022_highlight_digit_groups
- 03023_group_by_use_nulls_analyzer_crashes
- 03147_rows_before_limit_fix
- 03148_query_log_used_dictionaries
- 03172_format_settings_clauses
- 03240_insert_select_named_tuple
- 03279_join_choose_build_table_auto_statistics
- 03279_join_choose_build_table_statistics
- 03279_join_choose_build_table
- 03305_compressed_memory_eng_crash_reading_subcolumn
- 03307_parallel_hash_max_joined_rows
- 03319_concurrent_hash_join_double_preallocation_bug
- 03356_analyzer_unused_scalar_subquery
- 03360_any_join_parallel_hash_bug
- 03362_join_on_filterpushdown
- 03403_read_in_order_streams_memory_usage
- 03568_udf_memory_tracking
- 03569_max_joined_block_size_rows_bug
- 03581_parallel_replicas_task_size
- 03593_any_join_swap_tables
- 03595_pread_threadpool_direct_io
- 03640_load_marks_synchronously
- 03644_rows_before_aggregation_in_order
- 03759_marks_cache_events
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 | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
384 | 386 | | |
385 | 387 | | |
386 | 388 | | |
387 | | - | |
388 | | - | |
389 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
390 | 394 | | |
391 | 395 | | |
392 | 396 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
6 | 4 | | |
7 | 5 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 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 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 4 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 5 | + | |
27 | 6 | | |
28 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 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 | + | |
0 commit comments