One copy-paste snippet per TableFilterOperator, grouped by use case — exact match, ordering, text, set membership, missing data, files.
What this builds. A small vendor-scorecard fixture you can filter against, and a recipe for each of the 13 TableFilterOperator values — grouped by the question you’re answering, not by operator name.
You’ll end up with. Snippets you can copy directly into your own code, plus a clear mental model of which operator matches your situation.
For a column whose format is FileFormat (or ListOfFilesFormat), match rows whose attached filename contains a substring:
# Assume the table has a `contract` column of type FileFormat.# Match rows whose uploaded file's name contains "invoice".invoices = t.read_rows(filters=CompoundFilter.of( FilterCondition("contract", TableFilterOperator.FILENAMES_CONTAIN, "invoice"),))
Combining operators. Every recipe above uses CompoundFilter.of(...) for a single AND’d group of conditions. For mixed AND/OR logic — e.g. “EU and (priority > 2 or status = closed)” — use nested FilterGroups. See Compose filters with AND and OR.
Ordering filters on currency or percent columns aren’t fully supported yet — if you need GT/LT on a money column, use NumberKind.INT or NumberKind.FLOAT until the engine catches up.