Analyzer: fix 01487_distributed_in_not_default_db

This commit is contained in:
Dmitry Novik 2023-06-05 12:48:54 +00:00
parent 13fc7c6c55
commit 638775e580
2 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,6 @@
01319_optimize_skip_unused_shards_nesting
01353_low_cardinality_join_types
01455_shard_leaf_max_rows_bytes_to_read
01487_distributed_in_not_default_db
01495_subqueries_in_with_statement
01504_rocksdb
01527_dist_sharding_key_dictGet_reload

View File

@ -25,6 +25,10 @@ CREATE TABLE d AS t ENGINE = Distributed(test_cluster_two_shards_different_datab
USE test_01487;
DROP DATABASE test_01487;
-- After the default database is dropped QueryAnalysisPass cannot process the following SELECT query.
-- That query is invalid on the initiator node.
set allow_experimental_analyzer = 0;
SELECT * FROM main_01487.d WHERE value IN (SELECT l.value FROM l) ORDER BY value;
USE main_01487;