Skip to content

Filter rows

Filter rows using graphext's advanced query syntax (similar to Elasticsearch).


The following are the step's expected inputs and outputs and their specific types.

Step signature
filter_rows(ds_in: dataset, {"param": value}) -> (ds_out: dataset)

where the object {"param": value} is optional in most cases and if present may contain any of the parameters described in the corresponding section below.


This simple query creates a new dataset only including those rows where the 'age' columns is greater than 18:

Example call (in recipe editor)
filter_rows(ds, {"query": "age: >18"} -> (dsf)


ds_in: dataset

An input dataset to filter.


ds_out: dataset

A dataset containing the same columns as the input dataset but without the filtered rows.


query: string

The graphext advanced query used to identify the rows to keep.