aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/compute_range/pg_exists.sql
blob: 5c368e9f352c0fce3dd9b9983a979ce4c4ba4a13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* syntax version 1 */
/* postgres can not */
/* dq can not */
/* dqfile can not */
/* yt can not */
pragma warning("disable", "4510");
pragma warning("disable", "1108");

select YQL::RangeComputeFor(
    Struct<a:PgFloat8,b:PgText>,
    ($row) -> ($row.a is not null),
    AsTuple(AsAtom("a"))
);

select YQL::RangeComputeFor(
    Struct<a:PgInt4,b:PgText>,
    ($row) -> ($row.b is null),
    AsTuple(AsAtom("b"))
);