yql-13489.sql 432 B

123456789101112131415161718
  1. /* syntax version 1 */
  2. /* postgres can not */
  3. /* yt can not */
  4. pragma warning("disable", "4510");
  5. select YQL::RangeComputeFor(
  6. Struct<x:Int32, y:Int32>,
  7. ($row) -> ($row.x > 2 or ($row.x == 2 and $row.y >= 10) or ($row.x == 0 and $row.y < 10)),
  8. AsTuple(AsAtom("x"))
  9. );
  10. select YQL::RangeComputeFor(
  11. Struct<x:Int32, y:Int32>,
  12. ($row) -> (($row.x > 10 and $row.y > 1) or $row.x < 5),
  13. AsTuple(AsAtom("x"), AsAtom("y"))
  14. );