ClickHouse/tests/queries/1_stateful/00093_prewhere_array_join.sql
Alexey Milovidov cf483b7ecc Added a test
2020-04-12 01:14:55 +03:00

10 lines
337 B
SQL

SELECT arrayJoin([SearchEngineID]) AS search_engine, URL FROM test.hits WHERE SearchEngineID != 0 AND search_engine != 0 FORMAT Null;
SELECT
arrayJoin([0]) AS browser,
arrayJoin([SearchEngineID]) AS search_engine,
URL
FROM test.hits
WHERE 1 AND (SearchEngineID != 0) AND (browser != 0) AND (search_engine != 0)
FORMAT Null;