mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Add test for 60232
This commit is contained in:
parent
c1754d3cd1
commit
5c01cc512d
@ -0,0 +1 @@
|
||||
2024-01-01 [2,3]
|
18
tests/queries/0_stateless/02998_analyzer_prewhere_report.sql
Normal file
18
tests/queries/0_stateless/02998_analyzer_prewhere_report.sql
Normal file
@ -0,0 +1,18 @@
|
||||
--https://github.com/ClickHouse/ClickHouse/issues/60232
|
||||
CREATE TABLE hits
|
||||
(
|
||||
`date` Date,
|
||||
`data` Array(UInt32)
|
||||
)
|
||||
ENGINE = MergeTree
|
||||
PARTITION BY toYYYYMM(date)
|
||||
ORDER BY date;
|
||||
|
||||
INSERT INTO hits values('2024-01-01', [1, 2, 3]);
|
||||
|
||||
SELECT
|
||||
hits.date,
|
||||
arrayFilter(x -> (x IN (2, 3)), data) AS filtered
|
||||
FROM hits
|
||||
WHERE arrayExists(x -> (x IN (2, 3)), data)
|
||||
SETTINGS allow_experimental_analyzer = 1;
|
Loading…
Reference in New Issue
Block a user