hint.sql 1.1 KB

1234567891011121314151617181920212223
  1. USE plato;
  2. $i1 = select * from Input where a > "a"; -- several publish consumers with same groups
  3. $i2 = select * from Input where a > "a1"; -- several publish consumers with different groups
  4. $i3 = select * from Input where a < "a2"; -- several consumers including publish
  5. $i4 = select * from Input where a != "a"; -- several publish consumers with and without groups
  6. $i5 = select * from Input where a != "b"; -- single publish consumer with with no groups (special case)
  7. -- test column group spec normalization
  8. insert into Output1 with column_groups="{g1=[a;b;c];def=#}" select * from $i1;
  9. insert into Output1 with column_groups="{def=#;g1=[c;a;b];}" select * from $i2;
  10. insert into Output2 with column_groups="{def=#}" select * from $i2;
  11. insert into Output2 with column_groups="{def=#}" select * from $i3;
  12. insert into Output3 with column_groups="{g1=[a;b;c];def=#}" select * from $i1;
  13. insert into Output3 with column_groups="{g1=[a;b;c];def=#}" select * from $i4;
  14. insert into Output4 select * from $i4;
  15. insert into Output5 with column_groups="{}" select * from $i5;
  16. select a,b,c,d from $i3;