Skip to content

Commit 81cfe7c

Browse files
Backport ClickHouse#91923 to 25.8: Add a test for optimize_skip_unused_shards with type cast
1 parent bc34e7f commit 81cfe7c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
a
2+
b
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
drop table if exists t1;
2+
3+
create table t1 (Col LowCardinality(String)) engine = MergeTree;
4+
insert into t1 values ('a'), ('b'), ('c');
5+
6+
select * from remote('127.{1,2}', currentDatabase(), t1, multiIf(Col = 'a', 0, Col = 'b', 1, -1)) where Col in ('a', 'b') order by all settings optimize_skip_unused_shards=1;

0 commit comments

Comments
 (0)