/filter endpoint.
For SQL views, see CREATE VIEW.
Creating a Filtered View
To create a filtered view, the /filter endpoint requires three parameters:- the name of the data set to create the filtered view from
- the name of the filtered view to create
- an expression used to filter the source data set
Examples
In Python, given thenyctaxi demo table, a filtered view can be created
for all taxi rides from the YCAB vendor via:
Limitations and Cautions
- When a record contained in a filtered view is modified by an update of the underlying data set, the record is removed from the filtered view regardless of whether the update impacted the record’s qualifications for membership in the filtered view.
- When a table or view is dropped, all of the filtered views created from it are also automatically cleared.
- Records accessible through a filtered view cannot be added, edited, or deleted through that same view.
- A filtered view is transient, by default, and will expire after the default TTL setting.
- A filtered view is not persisted, and will not survive a database restart.