Registering pre-existing tables tenk1 tmp emp student stud_emp -- -- SELECT_DISTINCT -- -- -- awk '{print $3;}' onek.data | sort -n | uniq -- SELECT DISTINCT two FROM tmp ORDER BY 1; -- -- awk '{print $5;}' onek.data | sort -n | uniq -- SELECT DISTINCT ten FROM tmp ORDER BY 1; -- -- awk '{print $16;}' onek.data | sort -d | uniq -- SELECT DISTINCT string4 FROM tmp ORDER BY 1; -- -- awk '{print $3,$16,$5;}' onek.data | sort -d | uniq | -- sort +0n -1 +1d -2 +2n -3 -- SELECT DISTINCT two, string4, ten FROM tmp ORDER BY two using <, string4 using <, ten using <; -stdin-:
: Error: Parse Sql -stdin-:
:7:23: Error: sortby_dir unsupported value: 3 ORDER BY two using <, string4 using <, ten using <; ^ -- -- awk '{print $2;}' person.data | -- awk '{if(NF!=1){print $2;}else{print;}}' - emp.data | -- awk '{if(NF!=1){print $2;}else{print;}}' - student.data | -- awk 'BEGIN{FS=" ";}{if(NF!=1){print $5;}else{print;}}' - stud_emp.data | -- sort -n -r | uniq -- SELECT DISTINCT p.age FROM person* p ORDER BY age using >; -stdin-:
: Error: Parse Sql -stdin-:
:8:57: Error: sortby_dir unsupported value: 3 SELECT DISTINCT p.age FROM person* p ORDER BY age using >; ^ -- -- Check mentioning same column more than once -- EXPLAIN (VERBOSE, COSTS OFF) SELECT count(*) FROM (SELECT DISTINCT two, four, two FROM tenk1) ss; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: RawStmt: alternative is not implemented yet : 276 -- ^ SELECT count(*) FROM (SELECT DISTINCT two, four, two FROM tenk1) ss; -stdin-:
: Error: Type annotation -stdin-:
:1:1: Error: At function: RemovePrefixMembers, At function: PgSelect, At function: PgSetItem, At function: PgSelect, At function: PgSetItem SELECT count(*) FROM ^ -stdin-:
:1:1: Error: Duplicated member: two SELECT count(*) FROM ^ -- -- Compare results between plans using sorting and plans using hash -- aggregation. Force spilling in both cases by setting work_mem low. -- SET work_mem='64kB'; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: VariableSetStmt, not supported name: work_mem -- ^ -- Produce results with sorting. SET enable_hashagg=FALSE; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: VariableSetStmt, not supported name: enable_hashagg -- Produce results with sorting. ^ SET jit_above_cost=0; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: VariableSetStmt, not supported name: jit_above_cost SET jit_above_cost=0; ^ EXPLAIN (costs off) SELECT DISTINCT g%1000 FROM generate_series(0,9999) g; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: RawStmt: alternative is not implemented yet : 276 EXPLAIN (costs off) ^ CREATE TABLE distinct_group_1 AS SELECT DISTINCT g%1000 FROM generate_series(0,9999) g; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: RawStmt: alternative is not implemented yet : 277 CREATE TABLE distinct_group_1 AS ^ SET jit_above_cost TO DEFAULT; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: VariableSetStmt, not supported kind: 1 SET jit_above_cost TO DEFAULT; ^ CREATE TABLE distinct_group_2 AS SELECT DISTINCT (g%1000)::text FROM generate_series(0,9999) g; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: RawStmt: alternative is not implemented yet : 277 CREATE TABLE distinct_group_2 AS ^ SET enable_hashagg=TRUE; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: VariableSetStmt, not supported name: enable_hashagg SET enable_hashagg=TRUE; ^ -- Produce results with hash aggregation. SET enable_sort=FALSE; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: VariableSetStmt, not supported name: enable_sort -- Produce results with hash aggregation. ^ SET jit_above_cost=0; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: VariableSetStmt, not supported name: jit_above_cost SET jit_above_cost=0; ^ EXPLAIN (costs off) SELECT DISTINCT g%1000 FROM generate_series(0,9999) g; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: RawStmt: alternative is not implemented yet : 276 EXPLAIN (costs off) ^ CREATE TABLE distinct_hash_1 AS SELECT DISTINCT g%1000 FROM generate_series(0,9999) g; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: RawStmt: alternative is not implemented yet : 277 CREATE TABLE distinct_hash_1 AS ^ SET jit_above_cost TO DEFAULT; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: VariableSetStmt, not supported kind: 1 SET jit_above_cost TO DEFAULT; ^ CREATE TABLE distinct_hash_2 AS SELECT DISTINCT (g%1000)::text FROM generate_series(0,9999) g; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: RawStmt: alternative is not implemented yet : 277 CREATE TABLE distinct_hash_2 AS ^ SET enable_sort=TRUE; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: VariableSetStmt, not supported name: enable_sort SET enable_sort=TRUE; ^ SET work_mem TO DEFAULT; -stdin-:
: Error: Parse Sql -stdin-:
:1:1: Error: VariableSetStmt, not supported kind: 1 SET work_mem TO DEFAULT; ^ -- Compare results (SELECT * FROM distinct_hash_1 EXCEPT SELECT * FROM distinct_group_1) UNION ALL (SELECT * FROM distinct_group_1 EXCEPT SELECT * FROM distinct_hash_1); -stdin-:
: Fatal: Table metadata loading -stdin-:
: Fatal: ydb/library/yql/providers/yt/gateway/file/yql_yt_file_services.cpp:44: Table not found: plato.distinct_group_1 (SELECT * FROM distinct_hash_1 EXCEPT SELECT * FROM distinct_group_1) UNION ALL (SELECT * FROM distinct_group_1 EXCEPT SELECT * FROM distinct_hash_1); -stdin-:
: Fatal: Table metadata loading -stdin-:
: Fatal: ydb/library/yql/providers/yt/gateway/file/yql_yt_file_services.cpp:44: Table not found: plato.distinct_group_1 DROP TABLE distinct_hash_1; DROP TABLE distinct_hash_2; DROP TABLE distinct_group_1; DROP TABLE distinct_group_2; -- -- Also, some tests of IS DISTINCT FROM, which doesn't quite deserve its -- very own regression file. -- CREATE TEMP TABLE disttable (f1 integer); INSERT INTO DISTTABLE VALUES(1); -stdin-:
: Fatal: Table metadata loading -stdin-:
: Fatal: ydb/library/yql/providers/yt/gateway/file/yql_yt_file_services.cpp:44: Table not found: plato.DISTTABLE INSERT INTO DISTTABLE VALUES(2); -stdin-:
: Fatal: Table metadata loading -stdin-:
: Fatal: ydb/library/yql/providers/yt/gateway/file/yql_yt_file_services.cpp:44: Table not found: plato.DISTTABLE INSERT INTO DISTTABLE VALUES(3); -stdin-:
: Fatal: Table metadata loading -stdin-:
: Fatal: ydb/library/yql/providers/yt/gateway/file/yql_yt_file_services.cpp:44: Table not found: plato.DISTTABLE INSERT INTO DISTTABLE VALUES(NULL); -stdin-:
: Fatal: Table metadata loading -stdin-:
: Fatal: ydb/library/yql/providers/yt/gateway/file/yql_yt_file_services.cpp:44: Table not found: plato.DISTTABLE -- basic cases SELECT f1, f1 IS DISTINCT FROM 2 as "not 2" FROM disttable; -stdin-:
: Error: Parse Sql -stdin-:
:2:15: Error: A_Expr_Kind unsupported value: 3 SELECT f1, f1 IS DISTINCT FROM 2 as "not 2" FROM disttable; ^ SELECT f1, f1 IS DISTINCT FROM NULL as "not null" FROM disttable; -stdin-:
: Error: Parse Sql -stdin-:
:1:15: Error: A_Expr_Kind unsupported value: 3 SELECT f1, f1 IS DISTINCT FROM NULL as "not null" FROM disttable; ^ SELECT f1, f1 IS DISTINCT FROM f1 as "false" FROM disttable; -stdin-:
: Error: Parse Sql -stdin-:
:1:15: Error: A_Expr_Kind unsupported value: 3 SELECT f1, f1 IS DISTINCT FROM f1 as "false" FROM disttable; ^ SELECT f1, f1 IS DISTINCT FROM f1+1 as "not null" FROM disttable; -stdin-:
: Error: Parse Sql -stdin-:
:1:15: Error: A_Expr_Kind unsupported value: 3 SELECT f1, f1 IS DISTINCT FROM f1+1 as "not null" FROM disttable; ^ -- check that optimizer constant-folds it properly SELECT 1 IS DISTINCT FROM 2 as "yes"; -stdin-:
: Error: Parse Sql -stdin-:
:2:10: Error: A_Expr_Kind unsupported value: 3 SELECT 1 IS DISTINCT FROM 2 as "yes"; ^ SELECT 2 IS DISTINCT FROM 2 as "no"; -stdin-:
: Error: Parse Sql -stdin-:
:1:10: Error: A_Expr_Kind unsupported value: 3 SELECT 2 IS DISTINCT FROM 2 as "no"; ^ SELECT 2 IS DISTINCT FROM null as "yes"; -stdin-:
: Error: Parse Sql -stdin-:
:1:10: Error: A_Expr_Kind unsupported value: 3 SELECT 2 IS DISTINCT FROM null as "yes"; ^ SELECT null IS DISTINCT FROM null as "no"; -stdin-:
: Error: Parse Sql -stdin-:
:1:13: Error: A_Expr_Kind unsupported value: 3 SELECT null IS DISTINCT FROM null as "no"; ^ -- negated form SELECT 1 IS NOT DISTINCT FROM 2 as "no"; -stdin-:
: Error: Parse Sql -stdin-:
:2:10: Error: A_Expr_Kind unsupported value: 4 SELECT 1 IS NOT DISTINCT FROM 2 as "no"; ^ SELECT 2 IS NOT DISTINCT FROM 2 as "yes"; -stdin-:
: Error: Parse Sql -stdin-:
:1:10: Error: A_Expr_Kind unsupported value: 4 SELECT 2 IS NOT DISTINCT FROM 2 as "yes"; ^ SELECT 2 IS NOT DISTINCT FROM null as "no"; -stdin-:
: Error: Parse Sql -stdin-:
:1:10: Error: A_Expr_Kind unsupported value: 4 SELECT 2 IS NOT DISTINCT FROM null as "no"; ^ SELECT null IS NOT DISTINCT FROM null as "yes"; -stdin-:
: Error: Parse Sql -stdin-:
:1:13: Error: A_Expr_Kind unsupported value: 4 SELECT null IS NOT DISTINCT FROM null as "yes"; ^