summaryrefslogtreecommitdiffstats
path: root/yt/yql/tests/sql/suites/sampling/bind_expr.yql
blob: a5cdb40f95556e0aae2d8754d523808ab39d8722 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
/* syntax version 1 */
/* postgres can not */
/* custom check: len(yt_res_yson[0][b'Write'][0][b'Data']) < 10 */
USE plato;

$count = SELECT COUNT(*) FROM Input; -- $count = 10

$var = SELECT * FROM Input;

SELECT * FROM $var TABLESAMPLE BERNOULLI(5 * $count);