in2.sql 712 B

1234567891011121314151617181920212223242526272829
  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. -- tuple
  9. select YQL::RangeComputeFor(
  10. Struct<x:UInt32, y:Uint32, z:Uint32>,
  11. ($row) -> (($row.y, $row.x, $row.z) IN ((1,2,3), (100,200,300))),
  12. AsTuple(AsAtom("x"), AsAtom("y"), AsAtom("z"))
  13. );
  14. -- tuple with single element
  15. select YQL::RangeComputeFor(
  16. Struct<x:UInt32>,
  17. ($row) -> (($row.x,) IN ((1,), (100,))),
  18. AsTuple(AsAtom("x"))
  19. );
  20. -- key prefix tuples
  21. select YQL::RangeComputeFor(
  22. Struct<x:UInt32, y:Uint32, z:Uint32>,
  23. ($row) -> (($row.y, $row.x) IN ((1,2), (2,2))),
  24. AsTuple(AsAtom("x"), AsAtom("y"), AsAtom("z"))
  25. );