pg_equal.sql 482 B

12345678910111213141516171819202122
  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. -- a != 2
  9. select YQL::RangeComputeFor(
  10. Struct<a:PgFloat8,b:PgText>,
  11. ($row) -> (FromPg(PgOp("<>", $row.a, 2.0pf8)) ?? false),
  12. AsTuple(AsAtom("a"))
  13. );
  14. -- b == 'foo'
  15. select YQL::RangeComputeFor(
  16. Struct<a:PgInt4,b:PgText>,
  17. ($row) -> (($row.b == 'foo'p) ?? false),
  18. AsTuple(AsAtom("b"))
  19. );