aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/sampling/bind_multiple_sample.sql
blob: db9f9cfa16397fa74e3327e8663e4e4b6889c5e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* syntax version 1 */
/* postgres can not */
/* custom check: len(yt_res_yson[0]['Write'][0]['Data']) < 20 */
USE plato;

$var = SELECT * FROM Input;

INSERT INTO @tmp
SELECT * FROM $var TABLESAMPLE BERNOULLI(100);

INSERT INTO @tmp
SELECT * FROM $var TABLESAMPLE BERNOULLI(50);

COMMIT;

SELECT * FROM @tmp;