yql-16011.sql 570 B

123456789101112131415161718192021222324252627
  1. USE plato;
  2. PRAGMA AnsiInForEmptyOrNullableItemsCollections = "true";
  3. PRAGMA yt.MapJoinLimit="1m";
  4. PRAGMA yt.LookupJoinLimit="64k";
  5. PRAGMA yt.LookupJoinMaxRows="100";
  6. insert into @T1
  7. select Just('fooo'u) as ID order by ID;
  8. insert into @T2
  9. select 't' as text, '{}'y as tags, 'foo' as ID
  10. order by ID;
  11. commit;
  12. $lost_ids = SELECT ID FROM @T2 WHERE ID NOT IN (SELECT ID FROM @T1);
  13. $lost_samples_after_align = SELECT * FROM @T2 WHERE ID IN $lost_ids;
  14. SELECT * FROM $lost_samples_after_align;
  15. SELECT
  16. text || 'a' as text,
  17. tags,
  18. FROM $lost_samples_after_align;