mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Add a test for operator priorities in SQL
This commit is contained in:
parent
ff645a062a
commit
659df53854
1
tests/queries/0_stateless/02163_operators.reference
Normal file
1
tests/queries/0_stateless/02163_operators.reference
Normal file
@ -0,0 +1 @@
|
||||
1
|
2
tests/queries/0_stateless/02163_operators.sql
Normal file
2
tests/queries/0_stateless/02163_operators.sql
Normal file
@ -0,0 +1,2 @@
|
||||
WITH 2 AS `b.c`, [4, 5] AS a, 6 AS u, 3 AS v, 2 AS d, TRUE AS e, 1 AS f, 0 AS g, 2 AS h, 'Hello' AS i, 'World' AS j, TIMESTAMP '2022-02-02 02:02:02' AS w, [] AS k, (1, 2) AS l, 2 AS m, 3 AS n, [] AS o, [1] AS p, 1 AS q, q AS r, 1 AS s, 1 AS t
|
||||
SELECT INTERVAL CASE CASE WHEN NOT -a[b.c] * u DIV v + d IS NOT NULL AND e OR f BETWEEN g AND h THEN i ELSE j END WHEN w THEN k END || [l, (m, n)] MINUTE IS NULL OR NOT o::Array(INT) = p <> q < r > s != t AS upyachka;
|
Loading…
Reference in New Issue
Block a user