mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Merge pull request #25390 from ClickHouse/add-test-23163
Add a test for #23163
This commit is contained in:
commit
d8174cb9fd
@ -0,0 +1,15 @@
|
||||
DROP TABLE IF EXISTS abc;
|
||||
|
||||
CREATE TABLE abc
|
||||
(
|
||||
`f1` String,
|
||||
`f2` String
|
||||
)
|
||||
ENGINE = MergeTree()
|
||||
ORDER BY f1;
|
||||
|
||||
-- In version 20.12 this query sometimes produces an exception "Cannot find column"
|
||||
SELECT f2 FROM merge(currentDatabase(), '^abc$') PREWHERE _table = 'abc' AND f1 = 'a' AND rand() % 100 < 20;
|
||||
SELECT f2 FROM merge(currentDatabase(), '^abc$') PREWHERE _table = 'abc' AND f1 = 'a';
|
||||
|
||||
DROP TABLE abc;
|
Loading…
Reference in New Issue
Block a user