Remove duplicate rows from the input stream.
/** @var \Wizaplace\Etl\Transformers\UniqueRows $transformer */
$etl->transform($transformer, $options);
Columns used in the row comparison. If empty
, all columns will be used.
Type | Default value |
---|---|
array | [] |
$options = ['columns' => ['name', 'email']];
Indicates if only consecutive duplicates will be removed.
Type | Default value |
---|---|
bool | false |
$options = ['consecutive' => true];