Skip to main content

SampleRows

Spark Gem

Use the SampleRows gem to sample records by choosing a specific number or percentage of records.

Parameters

ParameterDescription
Sampling strategyAn option between sampling by number of records or percentage of records
Sampling ratioThe ratio of records that you wish to sample
Random seedA number that lets you reproduce the random sample
With replacementWhen enabled, this allows records to be returned to the sample pool after selection