21 lines
817 B
SQL
21 lines
817 B
SQL
# name: test/sql/peg_parser/sample.test
|
|
# description: Test sample clause in peg parser
|
|
# group: [peg_parser]
|
|
|
|
require autocomplete
|
|
|
|
statement ok
|
|
CALL check_peg_parser($TEST_PEG_PARSER$select count(*) from range(200000) using sample reservoir(90 PERCENT);$TEST_PEG_PARSER$);
|
|
|
|
statement ok
|
|
CALL check_peg_parser($TEST_PEG_PARSER$select count(*) from range(200000) tablesample reservoir(90 PERCENT);$TEST_PEG_PARSER$);
|
|
|
|
statement ok
|
|
CALL check_peg_parser($TEST_PEG_PARSER$SELECT COUNT(*) FROM test USING SAMPLE 3 (reservoir);$TEST_PEG_PARSER$);
|
|
|
|
statement ok
|
|
CALL check_peg_parser($TEST_PEG_PARSER$select count(*) from integers tablesample reservoir(10);$TEST_PEG_PARSER$);
|
|
|
|
statement ok
|
|
CALL check_peg_parser($TEST_PEG_PARSER$SELECT * from t1 using sample reservoir(6000) repeatable (1) order by a;$TEST_PEG_PARSER$);
|