Sample Rows

Take a random sample of rows

What It Does

Sample Rows pulls a random subset of the dataset. Useful for prototyping a transformation against a slice before running it on the whole file, or for quick exploratory looks at huge datasets. Sample by row count or percentage; with a seed the same rows come back every time.

How to Use It

Opening the Panel

Click the + button in the toolbar or press the operation picker, then search for "Sample Rows". It's in the Filter & Sort group.

Configuration

FieldTypeRequiredDescription
Sample bySelectYesrows (count) or percent
Sample sizeNumberYesRow count or percentage 0 to 100
Random seedNumberNoOptional integer for reproducibility
SQL generated under the hood
SELECT * FROM data USING SAMPLE 1000 ROWS (REPEATABLE 42)
Try this operation →

Related Operations