Commit fcea44c
committed
Fix EXPLAIN AST formatting for ShowCreateTableQuery, DetachQuery, and AttachQuery
- Add extra space before table name in ShowCreateTableQuery (single table case)
- Add Identifier child output for DetachQuery when table is specified (two spaces)
- Add Identifier child output for AttachQuery when table is specified (one space)
- Pass SystemQuery to explainSystemQuery for future extensibility
These formatting fixes match ClickHouse's EXPLAIN AST output format, fixing
897 explain test statements (64 unique test directories).1 parent fc6b69c commit fcea44c
215 files changed
Lines changed: 193 additions & 1091 deletions
File tree
- internal/explain
- parser/testdata
- 00061_merge_tree_alter
- 00062_replicated_merge_tree_alter_zookeeper_long
- 00065_loyalty_with_storage_join
- 00116_storage_set
- 00423_storage_log_single_thread
- 00508_materialized_view_to
- 00515_enhanced_time_zones
- 00599_create_view_with_subquery
- 00619_union_highlite
- 00625_arrays_in_nested
- 00626_replace_partition_from_table
- 00725_comment_columns_long
- 00725_ipv4_ipv6_domains
- 00754_alter_modify_order_by_replicated_zookeeper_long
- 00754_alter_modify_order_by
- 00804_test_alter_compression_codecs
- 00804_test_custom_compression_codecs
- 00804_test_custom_compression_codes_log_storages
- 00804_test_deflate_qpl_codec_compression
- 00804_test_zstd_qat_codec_compression
- 00836_indices_alter_replicated_zookeeper_long
- 00836_indices_alter
- 00899_long_attach_memory_limit
- 00910_zookeeper_custom_compression_codecs_replicated_long
- 00916_create_or_replace_view
- 00926_adaptive_index_granularity_merge_tree
- 00926_adaptive_index_granularity_pk
- 00926_adaptive_index_granularity_replacing_merge_tree
- 00926_zookeeper_adaptive_index_granularity_replicated_merge_tree_long
- 00933_alter_ttl
- 00933_reserved_word
- 00933_ttl_simple
- 00980_merge_alter_settings
- 00980_zookeeper_merge_tree_alter_settings
- 00989_parallel_parts_loading
- 00998_constraints_all_tables
- 01021_only_tuple_columns
- 01033_storage_odbc_parsing_exception_check
- 01055_compact_parts_1
- 01060_shutdown_table_after_detach
- 01070_alter_with_ttl
- 01071_prohibition_secondary_index_with_old_format_merge_tree
- 01073_attach_if_not_exists
- 01079_alter_default_zookeeper_long
- 01083_expressions_in_engine_arguments
- 01127_month_partitioning_consistency_select
- 01135_default_and_alter_zookeeper
- 01144_multiword_data_types
- 01148_zookeeper_path_macros_unfolding
- 01153_attach_mv_uuid
- 01172_transaction_counters
- 01181_db_atomic_drop_on_cluster
- 01185_create_or_replace_table
- 01189_create_as_table_as_table_function
- 01213_alter_rename_nested
- 01213_alter_rename_with_default_zookeeper_long
- 01213_alter_table_rename_nested
- 01249_bad_arguments_for_bloom_filter
- 01269_create_with_null
- 01272_suspicious_codecs
- 01275_alter_rename_column_default_expr
- 01276_alter_rename_column_materialized_expr
- 01277_alter_rename_column_constraint_zookeeper_long
- 01277_alter_rename_column_constraint
- 01278_alter_rename_combination
- 01281_alter_rename_and_other_renames
- 01297_alter_distributed
- 01298_alter_merge
- 01318_alter_add_column_exists
- 01355_alter_column_with_order
- 01357_version_collapsing_attach_detach_zookeeper
- 01375_compact_parts_codecs
- 01413_allow_non_metadata_alters
- 01430_modify_sample_by_zookeeper_long
- 01455_default_compression
- 01458_named_tuple_millin
- 01461_alter_table_function
- 01465_ttl_recompression
- 01475_read_subcolumns_3
- 01493_alter_remove_no_property_zookeeper_long
- 01493_alter_remove_properties_zookeeper
- 01493_alter_remove_properties
- 01493_storage_set_persistency
- 01494_storage_join_persistency
- 01504_compression_multiple_streams
- 01509_parallel_quorum_insert_no_replicas_long
- 01511_alter_version_versioned_collapsing_merge_tree_zookeeper
- 01511_alter_version_versioned_collapsing_merge_tree
- 01513_defaults_on_defaults_no_column
- 01516_create_table_primary_key
- 01526_alter_add_and_modify_order_zookeeper
- 01532_primary_key_without_order_by_zookeeper
- 01560_optimize_on_insert_zookeeper
- 01586_replicated_mutations_empty_partition
- 01603_remove_column_ttl
- 01611_string_to_low_cardinality_key_alter
- 01640_marks_corruption_regression
- 01648_mutations_and_escaping
- 01686_rocksdb
- 01705_normalize_create_alter_function_names
- 01710_normal_projection_format
- 01710_projection_fetch_long
- 01710_projection_with_column_transformers
- 01710_projection_with_nullable_keys
- 01714_alter_drop_version
- 01715_background_checker_blather_zookeeper_long
- 01732_alters_bad_conversions
- 01747_alter_partition_key_enum_zookeeper_long
- 01761_alter_decimal_zookeeper_long
- 01780_column_sparse_alter
- 01780_column_sparse_tuple
- 01781_merge_tree_deduplication
- 01821_table_comment
- 01846_alter_column_without_type_bugfix
- 01866_view_persist_settings
- 01870_modulo_partition_key
- 01881_aggregate_functions_versioning
- 01881_create_as_tuple
- 01913_fix_column_transformer_replace_format
- 01932_alter_index_with_order
- 02097_remove_sample_by
- 02111_modify_table_comment
- 02114_bool_type
- 02127_storage_join_settings_with_persistency
- 02179_sparse_columns_detach
- 02181_dictionary_attach_detach
- 02184_default_table_engine
- 02184_storage_add_support_ttl
- 02207_ttl_move_if_exists
- 02251_alter_enum_nested_struct
- 02265_column_ttl
- 02286_tuple_numeric_identifier
- 02292_nested_not_flattened_detach
- 02316_cast_to_ip_address_default_column
- 02319_lightweight_delete_on_merge_tree_compact_parts
- 02319_lightweight_delete_on_merge_tree
- 02319_sql_standard_create_drop_index
- 02354_vector_search_detach_attach
- 02377_modify_column_from_nested
- 02391_hashed_dictionary_shards
- 02400_create_table_on_cluster_normalization
- 02427_mutate_and_zero_copy_replication_zookeeper
- 02433_default_expression_operator_in
- 02440_mutations_finalization
- 02448_clone_replica_lost_part
- 02449_check_dependencies_and_table_shutdown
- 02484_substitute_udf_storage_args
- 02486_truncate_and_unexpected_parts
- 02497_source_part_is_intact_when_mutation
- 02534_default_granularity
- 02536_distributed_detach_table
- 02681_undrop_query
- 02696_ignore_inacc_tables_mat_view_atttach
- 02710_show_table
- 02733_sparse_columns_reload
- 02740_hashed_dictionary_load_factor_smoke
- 02860_distributed_flush_on_detach
- 02864_statistics_create_materialize_drop
- 02864_statistics_ddl
- 02868_select_support_from_keywords
- 02870_per_column_settings
- 02885_create_distributed_table_without_as
- 02892_rocksdb_trivial_count
- 02916_addcolumn_nested
- 02931_alter_materialized_view_query_inconsistent
- 02968_url_args
- 02993_lazy_index_loading
- 02996_index_compaction_counterexample
- 02998_primary_key_skip_columns
- 03002_modify_query_cte
- 03008_index_small
- 03020_order_by_SimpleAggregateFunction
- 03033_parts_splitter_bug_and_index_loading
- 03100_lwu_01_basics
- 03128_merge_tree_index_lazy_load
- 03164_create_as_default
- 03168_attach_as_replicated_materialized_view
- 03230_show_create_query_identifier_quoting_style
- 03231_create_with_clone_as
- 03236_create_query_ttl_where
- 03236_keeper_map_engine_parameters
- 03254_last_2_samples_aggregate_function
- 03254_prewarm_mark_cache_columns
- 03254_prewarm_mark_cache_rmt
- 03254_timeseries_to_grid_aggregate_function_sparse
- 03261_minmax_indices_by_default
- 03272_prewarm_mark_cache_add_column
- 03273_format_inference_create_query_s3_url
- 03274_prewarm_primary_index_cache
- 03275_block_number_mutation
- 03276_index_empty_part
- 03276_merge_tree_index_lazy_load
- 03285_default_engine_with_settings
- 03290_mix_engine_and_query_settings
- 03305_parallel_with
- 03352_allow_suspicious_ttl
- 03356_tables_with_binary_identifiers_invalid_utf8
- 03364_gorilla_codec_parameters
- 03580_s3queue_settings_store
- 03592_s3queue_large_settings
- 03593_allow_projection_with_parent_part_offset
- 03622_ttl_infos_where
- 03625_auto_statistics_rmt
- 03625_auto_statistics
- 03632_default_minmax_indices_alter
- 03636_storage_alias_basic
- 03640_load_marks_synchronously
- 03663_parameterized_views_formatting_of_substitutions_excessive_backticks
- 03664_parameterized_view_restart
- 03673_columns_description_cache
- 03711_merge_tree_deduplication_with_disk_not_support_writing_with_append
- 03748_default_minmax_indices_alter
- 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 | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
| 445 | + | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
| 448 | + | |
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
548 | 557 | | |
549 | 558 | | |
550 | 559 | | |
551 | | - | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
552 | 570 | | |
553 | 571 | | |
554 | 572 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 3 | | |
9 | | - | |
10 | 4 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 5 | + | |
16 | 6 | | |
17 | 7 | | |
Lines changed: 1 addition & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 3 | | |
17 | | - | |
18 | | - | |
19 | 4 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 5 | + | |
30 | 6 | | |
31 | 7 | | |
Lines changed: 1 addition & 6 deletions
| 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 | | |
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 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments