Commit 487763f
committed
Fix SETTINGS placement regression - revert to original logic
Reverted SETTINGS placement logic to the original behavior:
- SETTINGS at SelectQuery level only when there's NO FORMAT
- SETTINGS at SelectWithUnionQuery level only when there IS FORMAT
The previous changes incorrectly added SettingsAfterFormat tracking
which caused tests to fail. The original simpler logic is correct.
Also restored all metadata.json files to their original state.1 parent 4452bb9 commit 487763f
216 files changed
Lines changed: 851 additions & 217 deletions
File tree
- internal/explain
- parser/testdata
- 00071_merge_tree_optimize_aio
- 00152_insert_different_granularity
- 00160_merge_and_index_in_in
- 00180_attach_materialized_view
- 00191_aggregating_merge_tree_and_final
- 00193_parallel_replicas
- 00226_zookeeper_deduplication_and_unexpected_parts_long
- 00276_sample
- 00278_insert_already_sorted
- 00282_merging
- 00307_format_xml
- 00309_formats
- 00311_array_primary_key
- 00314_sample_factor_virtual_column
- 00395_nullable
- 00405_output_format_pretty_color
- 00405_pretty_formats
- 00432_aggregate_function_scalars_and_constants
- 00542_access_to_temporary_table_in_readonly_mode
- 00561_storage_join
- 00579_virtual_column_and_lazy
- 00609_prewhere_and_default
- 00632_get_sample_block_cache
- 00688_low_cardinality_alter_add_column
- 00688_low_cardinality_serialization
- 00700_decimal_aggregates
- 00700_decimal_in_keys
- 00717_low_cardinaliry_distributed_group_by
- 00722_inner_join
- 00730_unicode_terminal_format
- 00751_low_cardinality_nullable_group_by
- 00753_comment_columns_zookeeper
- 00754_alter_modify_column_partitions
- 00760_insert_json_with_defaults
- 00863_comma_join_in
- 00875_join_right_nulls
- 00927_asof_join_long
- 00963_achimbab
- 01014_count_of_merges_metrics
- 01073_crlf_end_of_line
- 01074_partial_revokes
- 01080_engine_merge_prewhere_tupleelement_error
- 01099_parallel_distributed_insert_select
- 01165_lost_part_empty_partition
- 01230_join_get_truncate
- 01246_extractAllGroupsHorizontal
- 01286_constraints_on_default
- 01293_external_sorting_limit_bug
- 01307_bloom_filter_index_string_multi_granulas
- 01318_parallel_final_stuck
- 01356_wrong_filter-type_bug
- 01430_modify_sample_by_zookeeper_long
- 01441_low_cardinality_array_index
- 01490_nullable_string_to_enum
- 01499_json_named_tuples
- 01511_prewhere_with_virtuals
- 01513_optimize_aggregation_in_order_memory_long
- 01514_parallel_formatting
- 01553_settings_early_apply
- 01576_alias_column_rewrite
- 01600_remerge_sort_lowered_memory_bytes_ratio
- 01603_decimal_mult_float
- 01640_marks_corruption_regression
- 01651_lc_insert_tiny_log_1
- 01651_lc_insert_tiny_log_2
- 01651_lc_insert_tiny_log_3
- 01656_test_query_log_factories_info
- 01660_second_extremes_bug
- 01670_neighbor_lc_bug
- 01671_merge_join_and_constants
- 01701_clear_projection_and_part_remove
- 01710_aggregate_projection_with_hashing
- 01710_normal_projection_fix1
- 01710_normal_projection_join_plan_fix
- 01710_order_by_projections_incomplete
- 01710_projection_drop_if_exists
- 01710_projection_fetch_long
- 01710_projection_materialize_with_missing_columns
- 01710_projection_optimize_materialize
- 01710_projection_query_plan_optimization_misc
- 01710_projection_vertical_merges
- 01710_projection_with_mixed_pipeline
- 01710_projection_with_nullable_keys
- 01710_projections_order_by_incomplete
- 01730_distributed_group_by_no_merge_order_by_long
- 01757_optimize_skip_unused_shards_limit
- 01798_uniq_theta_sketch
- 01798_uniq_theta_union_intersect_not
- 01801_approx_total_rows_mergetree_reverse
- 01812_optimize_skip_unused_shards_single_node
- 01822_union_and_constans_error
- 01846_null_as_default_for_insert_select
- 01910_view_dictionary_check_refresh
- 01913_exact_rows_before_limit
- 01926_order_by_desc_limit
- 01939_type_map_json
- 02013_bloom_filter_hasAll
- 02100_alter_scalar_circular_deadlock
- 02155_read_in_order_max_rows_to_read
- 02174_cte_scalar_cache
- 02180_group_by_lowcardinality
- 02242_join_rocksdb
- 02245_weird_partitions_pruning
- 02267_empty_arrays_read_reverse
- 02270_client_name
- 02295_GROUP_BY_AggregateFunction
- 02317_distinct_in_order_optimization
- 02319_quantile_interpolated_weighted
- 02322_sql_insert_format
- 02354_distributed_with_external_aggregation_memory_usage
- 02356_insert_query_log_metrics
- 02371_select_projection_normal_agg
- 02385_profile_events_overflow
- 02402_external_disk_metrics
- 02418_tautological_if_index
- 02441_alter_delete_and_drop_column
- 02448_clone_replica_lost_part
- 02458_key_condition_not_like_prefix
- 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
- 02763_mutate_compact_part_with_skip_indices_and_projections
- 02785_global_join_too_many_columns
- 02786_max_execution_time_leaf
- 02792_drop_projection_lwd
- 02805_distributed_queries_timeouts
- 02811_read_in_order_and_array_join_bug
- 02815_join_algorithm_setting
- 02833_array_join_columns
- 02842_largestTriangleThreeBuckets_aggregate_function
- 02862_sorted_distinct_sparse_fix
- 02863_delayed_source_with_totals_and_extremes
- 02896_max_execution_time_with_break_overflow_mode
- 02902_json_skip_null_values
- 02903_bug_43644
- 02934_merge_tree_max_projections
- 02941_projections_external_aggregation
- 02971_limit_by_distributed
- 02985_shard_query_start_time
- 02989_join_using_parent_scope
- 02998_pretty_format_print_readable_number_on_single_value
- 02998_projection_after_attach_partition
- 02999_scalar_subqueries_bug_1
- 03001_insert_threads_deduplication
- 03022_highlight_digit_groups
- 03023_group_by_use_nulls_analyzer_crashes
- 03033_index_definition_sql_udf_bug
- 03033_scalars_context_data_race
- 03100_lwu_33_add_column
- 03100_lwu_44_missing_default
- 03129_low_cardinality_nullable_non_first_primary_key
- 03147_rows_before_limit_fix
- 03148_query_log_used_dictionaries
- 03172_format_settings_clauses
- 03174_projection_deduplicate
- 03206_projection_merge_special_mergetree
- 03214_count_distinct_null_key_memory_leak
- 03240_insert_select_named_tuple
- 03240_quantile_exact_weighted_interpolated
- 03244_skip_index_in_final_query_with_pk_rescan_no_final_mark
- 03252_fill_missed_arrays
- 03254_last_2_samples_aggregate_function_simple
- 03254_last_2_samples_aggregate_function
- 03261_delayed_streams_memory
- 03263_forbid_materialize_sort_key
- 03279_join_choose_build_table_auto_statistics
- 03279_join_choose_build_table_statistics
- 03279_join_choose_build_table
- 03282_block_number_otehr_mutations
- 03305_compressed_memory_eng_crash_reading_subcolumn
- 03307_parallel_hash_max_joined_rows
- 03311_subcolumns_in_default_and_materialized_expressions
- 03314_variant_rowbinary_file
- 03319_concurrent_hash_join_double_preallocation_bug
- 03356_analyzer_unused_scalar_subquery
- 03360_any_join_parallel_hash_bug
- 03362_join_on_filterpushdown
- 03365_csv_time_deserialization_bug
- 03401_normal_projection_with_part_offset_no_sorting
- 03401_normal_projection_with_part_offset
- 03402_materialized_tuple_element
- 03403_read_in_order_streams_memory_usage
- 03459_numeric_indexed_vector_decode
- 03460_normal_projection_index
- 03464_projections_with_subcolumns
- 03513_lazy_materialization_projections_fix
- 03522_alter_modify_column_and_materialize_projection
- 03522_join_using_bug_78907
- 03560_parallel_replicas_external_aggregation
- 03560_parallel_replicas_memory_bound_merging_projection
- 03560_parallel_replicas_projection
- 03568_udf_memory_tracking
- 03569_max_joined_block_size_rows_bug
- 03581_parallel_replicas_task_size
- 03593_allow_projection_with_parent_part_offset
- 03593_any_join_swap_tables
- 03595_pread_threadpool_direct_io
- 03629_storage_s3_disallow_index_alter
- 03640_load_marks_synchronously
- 03644_rows_before_aggregation_in_order
- 03651_positional_argument_agg_projection
- 03668_shard_join_in_reverse_order
- 03733_join_order_dp
- 03748_tuple_of_sparse_elements_bug
- 03749_materialized_view_not_supports_parallel_write
- 03755_final_prewhere_duplicate_columns
- 03758_positional_argument_agg_projection
- 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 | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
47 | 46 | | |
48 | | - | |
| 47 | + | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
| |||
241 | 238 | | |
242 | 239 | | |
243 | 240 | | |
244 | | - | |
| 241 | + | |
245 | 242 | | |
246 | | - | |
| 243 | + | |
247 | 244 | | |
248 | 245 | | |
249 | 246 | | |
| |||
386 | 383 | | |
387 | 384 | | |
388 | 385 | | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
394 | 389 | | |
395 | 390 | | |
396 | 391 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
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 | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments