ClickHouse/dbms/tests/queries/0_stateless/00948_format_in_with_single_element.reference
Vasily Nemkov ce70e4f238 IN function result
Allowing function result to be used on the right side of IN statement.
All functions except aggregate ones, should work just Ok.
Fixed printing AST of operator IN.
2019-06-03 16:58:47 +03:00

14 lines
281 B
Plaintext

SELECT 1 IN (1)
SELECT 1 IN (1)
SELECT 1 IN (1, 2)
SELECT 1 IN f(1)
SELECT 1 IN f(1)
SELECT 1 IN (f(1), f(2))
SELECT 1 IN f(1, 2)
SELECT 1 IN (1 + 1)
SELECT 1 IN ('hello')
SELECT 1 IN f('hello')
SELECT 1 IN ('hello', 'world')
SELECT 1 IN f('hello', 'world')
SELECT 1 IN (SELECT 1)