Commit 29346af
committed
Always show SAMPLE BY in CREATE TABLE EXPLAIN output
Previously, SAMPLE BY was only shown when it was a function (not an
identifier) and when different from ORDER BY. ClickHouse's actual
EXPLAIN AST output always shows SAMPLE BY when present.
This fixes 27 statements across 19 tests including:
- 02559_add_parts
- 00578_merge_table_sampling
- 02380_analyzer_join_sample
- 03227_test_sample_n
- And 15 more SAMPLE BY related tests1 parent 730f9d2 commit 29346af
20 files changed
Lines changed: 19 additions & 97 deletions
File tree
- internal/explain
- parser/testdata
- 00509_extended_storage_definition_syntax_zookeeper
- 00578_merge_table_sampling
- 00712_prewhere_with_sampling
- 00753_system_columns_and_system_tables_long
- 00983_summing_merge_tree_not_an_identifier
- 01034_prewhere_max_parallel_replicas_distributed
- 01557_max_parallel_replicas_no_sample
- 01942_create_table_with_sample
- 02002_sampling_and_unknown_column_bug
- 02097_remove_sample_by
- 02184_default_table_engine
- 02380_analyzer_join_sample
- 02381_analyzer_join_final
- 02481_merge_array_join_sample_by
- 02484_substitute_udf_storage_args
- 02559_add_parts
- 03002_sample_factor_where
- 03080_analyzer_prefer_column_name_to_alias__virtual_columns
- 03227_test_sample_n
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
| 285 | + | |
287 | 286 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 287 | + | |
303 | 288 | | |
304 | 289 | | |
305 | 290 | | |
| |||
395 | 380 | | |
396 | 381 | | |
397 | 382 | | |
398 | | - | |
399 | | - | |
| 383 | + | |
400 | 384 | | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
| 385 | + | |
416 | 386 | | |
417 | 387 | | |
418 | 388 | | |
| |||
Lines changed: 1 addition & 2 deletions
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
0 commit comments