group_sampling.sql 547 B

1234567891011121314151617
  1. /* postgres can not */
  2. /* kikimr can not */
  3. /* hybridfile can not YQL-17284 */
  4. /* custom check: len(yt_res_yson[0][b'Write'][0][b'Data']) < 16 */
  5. USE plato;
  6. SELECT * FROM (
  7. SELECT CAST(key AS int) as key, '' as subkey, '' as value FROM plato.Input1 SAMPLE 0.1
  8. UNION ALL
  9. SELECT CAST(key AS int) as key, subkey, '' as value FROM plato.Input2 SAMPLE 0.1
  10. UNION ALL
  11. SELECT 1 as key, subkey, '' as value from plato.Input3
  12. UNION ALL
  13. SELECT 1 as key, '' as subkey, value from plato.Input4
  14. ) AS x
  15. ORDER BY key, subkey, value
  16. ;