This documentation is for an unreleased version of Apache Flink. We recommend you use the latest stable version.
Table Sample #
TABLESAMPLE statement is used to sample rows from the table.
TABLESAMPLE ( num_rows ROWS )
Note: Currently, only sample specific number of rows is supported.
num_rows is a constant positive to specify how many rows to sample.
SELECT * FROM src TABLESAMPLE (5 ROWS)