/
Filter Row directive
Filter Row directive
The FILTER-ROW directive filters records based on a condition.
Syntax
filter-row exp:{<condition>} [type (true/false)]
Usage Notes
The FILTER-ROW directive applies the filter type and a boolean or regular expression on a column value for each record. If the expression matches or returns true
for the column value, then the record is omitted; otherwise, it is passed on as-is to the input of the next directive.
Example
Using this record as an example:
{
"id": 1,
"name": "Joltie, Root",
"emailid": "jolti@hotmail.com",
"hrlywage": 12.34,
"gender": "Male",
"country": "US"
}
Applying this directive:
filter-row condition-true country !~ 'US'
would result in filtering out records for individuals that are not in the US (where country
does not match "US").
Applying this directive:
filter-rows-on condition-true (country !~ 'US' && hrlywage > 12)
would result in filtering out records for individuals that are not in the US (where country
does not match "US") and whose hourly wage (hrlywage
) is greater than 12.
, multiple selections available,
Related content
Filter Rows On directive
Filter Rows On directive
Read with this
Fail on condition directive
Fail on condition directive
Read with this
Flatten directive
Flatten directive
Read with this
Rename directive
Rename directive
Read with this
Extract Regex Groups directive
Extract Regex Groups directive
Read with this
Columns Replace directive
Columns Replace directive
Read with this
Created in 2020 by Google Inc.