pg_sqlin.sql 535 B

1234567891011121314151617181920212223
  1. /* syntax version 1 */
  2. /* postgres can not */
  3. /* dq can not */
  4. /* dqfile can not */
  5. /* yt can not */
  6. pragma warning("disable", "4510");
  7. pragma warning("disable", "1108");
  8. pragma AnsiInForEmptyOrNullableItemsCollections;
  9. -- a != 2
  10. select YQL::RangeComputeFor(
  11. Struct<a:PgInt4,b:PgText>,
  12. ($row) -> (($row.a in (3p,2p,1p)) ?? false),
  13. AsTuple(AsAtom("a"))
  14. );
  15. -- b == 'foo'
  16. select YQL::RangeComputeFor(
  17. Struct<a:PgInt4,b:PgText>,
  18. ($row) -> (($row.b in ('foo'p, 'bar'p, 'baz'p)) ?? false),
  19. AsTuple(AsAtom("b"))
  20. );