Operations

Where

The Where operation allows you to filter your dataset by creating queries that include only the records matching specific conditions. This operation is applied before any transformation operations in the pipeline.

In the operations grid it appears in Query Operations as Where ("Filter records by value").

Overview

The Where operation enables you to:

  • Filter records based on field values
  • Keep or discard records whose field is empty (NULL)
  • Create complex conditions using And/Or logic
  • Apply different filters to different entity types
  • Work with various data types (strings, numbers, dates, booleans)

Configuration

Entity-Level Filtering

The Where operation is configured at the entity level, meaning you can apply different filters to each entity in your dataset. For each entity, you can:

  1. Add multiple filtering rules
  2. Group rules together with And/Or operators
  3. Nest groups to create complex filtering logic

Entities without a Where configuration are read completely.

Pick the entities in the Search entities box (at least one is required: "You must select at least one entity"). Each selected entity is listed with a pen icon (Edit entity configuration) that opens its filter, and a bin icon (Remove entity configuration). An entity without a filter shows a warning ("Entity where query is not set, please click to edit this entity"), and the operation can't be saved until it has one ("There are unset entities. Please check your configuration").

Rule Configuration

Each rule is one row with three components:

  • Field: The field you want to filter on. Fields of type string, number (integer or decimal, such as float, double or decimal columns), date and boolean can be filtered. Fields of other types are listed disabled, with their type after the name (for example photo (buffer)) and the tooltip "Fields of type buffer can't be filtered". If the entity has no fields, the panel shows "No fields found for this entity", and if none of its fields can be filtered, "None of the fields of this entity can be filtered".
  • Operator: The comparison operator to use. The list depends on the field type and on the tap driver (see the table below).
  • Value: The value to compare against. The input depends on the field type: a text box for strings, a number box for numbers (decimal numbers included) and a date and time picker for dates. Boolean fields and the is null / is not null operators have no value box.

Every rule has a value from the start: a new rule takes the default value of its field type, which is an empty text for strings, 0 for numbers and today at 00:00 for dates. When you open the filter of an entity, rules saved without a value get the default too. In the date picker the time starts at 00:00:00, and the picked date is saved without milliseconds.

When you change the field of a rule, the operator goes back to the first operator of the new field type, and the value to the default value of that type.

Operators

These are the operators the UI offers, by field type:

Field typeOperators
Stringis, is not, like, starts with, ends with, is null, is not null
String (MongoDB tap)is, is not, regex, is null, is not null
Number (integer or decimal)is, is not, less than, more than, is null, is not null
Dateis, is not, before, after, is null, is not null
BooleanTrue, False, is null, is not null

What each operator does:

OperatorMeaningSQL equivalent
isField equals the valuefield = value
is notField is different from the valuefield != value
likeField contains the value. The value is wrapped with % on both sides, so ana matches Marianafield LIKE '%value%'
starts withField begins with the valuefield LIKE 'value%'
ends withField ends with the valuefield LIKE '%value'
regex(MongoDB only) Field matches the value as a regular expression$regex filter
less than / beforeField is lower than (number) or earlier than (date) the valuefield < value
more than / afterField is greater than (number) or later than (date) the valuefield > value
True / FalseBoolean field is true / falsefield = TRUE / field = FALSE
is nullField has no valuefield IS NULL
is not nullField has a valuefield IS NOT NULL

In SQL databases a row whose field is NULL doesn't match is not, less than or more than. To include those rows too, add an is null rule for the same field in an Or group.

How values are sent

  • Strings are sent as typed. With like you can also use the database wildcards inside the value (%, _).
  • Numbers are sent as numbers.
  • Dates are picked with date and time and are sent as an ISO 8601 date-time in UTC, for example 2026-10-21T13:45:00.000Z. Each database then compares it according to the type of the column, see Dates.
  • Booleans are sent as true / false.
  • In SQL databases the values are sent as query parameters, not pasted into the SQL text, so quotes in a value don't break the query. The exception is Ensure Referential Integrity, described below.
  • A string value can't start with __: or ~~ (these prefixes mean raw SQL in the query builder). Such a rule makes the rule fail with the error Where value for field '<field>' cannot start with '<prefix>'.
  • A number or date field can't be compared with an empty value. A rule saved like that makes the rule fail with the error Where value for field '<field>' is empty.

Dates

The date and time you pick is a moment in time. It is compared with the date columns as follows:

  • A column with a time zone (for example a Postgres timestamptz, a Databricks TIMESTAMP, a Salesforce Date/Time field or a MongoDB date) is compared with that same moment.
  • A column without a time zone is compared with the date and time of that moment in the time zone of the Gigantics server. This applies to Postgres timestamp, MySQL DATETIME, Databricks TIMESTAMP_NTZ, DB2 TIMESTAMP and SQLite dates.
  • A DATE column is compared with the day of that moment in the time zone of the Gigantics server on Postgres, Databricks, DB2, SQLite and Salesforce. On MySQL the day of the column counts as 00:00 of that day, so use 00:00 as the time with is.
  • A TIME column is compared with the time of day of that moment in the time zone of the Gigantics server on Postgres, MySQL, DB2 and Salesforce.

On columns with a time, is and is not compare the exact date and time, to the second. To filter a period, such as a whole day, combine after and before in an And group.

Supported drivers

The same Where configuration works on every tap, but each driver applies it in a different place:

TapWhere the filter runsNotes
Postgres, MySQL, Google Cloud SQL, Oracle, MSSQL, DB2, SQLiteIn the database, as a WHERE clauseCase sensitivity of like, starts with and ends with depends on the database and its collation
DatabricksIn the database, as a WHERE clause with parametersAll operators and groups are supported. If the server doesn't support query parameters, the values are written into the SQL as escaped literals
SalesforceIn the SOQL queryis null / is not null become = null / != null
MongoDBIn the database, as a $match stageUses regex instead of like, starts with and ends with. On the fields of type date the value is compared as a date, not as the ISO 8601 text
CSV, File Storage, RedisIn Gigantics, record by record, after readingSee below

Some types of column need special handling in each database:

  • Postgres: like, starts with and ends with also work on columns that are not text (such as uuid, inet or enums), which are compared as text. A decimal value compared with an integer column is compared as a decimal.
  • MySQL: column names are quoted, so reserved words and names with spaces work.
  • Oracle: is and is not work on CLOB / NCLOB columns. On CHAR / NCHAR columns the blank padding is ignored (in is, is not and ends with). Oracle stores an empty text as NULL, so is with an empty value works as is null, and is not with an empty value as is not null.
  • MSSQL: decimal values keep their decimals, and integers beyond the 32-bit range are supported.
  • DB2 for i and DB2 for z: ends with ignores the blank padding of CHAR columns.
  • Databricks: integers beyond the 32-bit range are supported, and BOOLEAN columns are booleans.
  • SQLite: dates are compared as dates whether they are stored as text or as epoch seconds or milliseconds. TIMESTAMP columns are dates and BOOLEAN columns are booleans.
  • Salesforce: Date fields are compared with a date, Time fields with a time and Date/Time fields with a date and time. Text values are always quoted.

Filters applied by Gigantics

When the filter runs in Gigantics (CSV, File Storage and Redis), every record is read and then checked:

  • is and is not compare the values as text. When the value is a number they compare as numbers (5 is 5.0), and when it is a date they compare as dates.
  • less than / before and more than / after compare dates as dates, numbers as numbers, and anything else as text. Dates stored as ISO 8601 text, with or without time and time zone, or in other common formats are understood. A date without a time zone is read in the time zone of the Gigantics server. An empty field never matches these operators.
  • like ignores upper and lower case and works on values with several lines. % matches any text and _ any single character. * is a normal character.
  • starts with and ends with ignore upper and lower case.
  • is null matches a missing field or a null value. In CSV files (CSV taps and CSV files in File Storage) an empty cell is null too. In other formats and in Redis an empty string is not null.

If an entity also has a Read Query, the custom query replaces the default read of that entity and its Where conditions are not applied. Put the filter in the query instead.

Grouping Logic

Every entity starts with one group (Group 1). In a group you can add rules with Rule + and nested groups with Group +. An empty group shows "Empty group, Click here to add a new rule" (Click here adds a rule).

Each group has an And / Or selector:

  • And groups: All rules in the group must be true
  • Or groups: At least one rule in the group must be true

Nested groups are numbered after their parent (Group 1.1, Group 1.2, ...) and can be removed with the - button next to the selector. Empty groups are ignored when the rule runs.

Ensure Referential Integrity

Check Ensure Referential Integrity to keep the subset consistent: a child row is extracted only if the parent row it references is extracted too. When it is enabled, the Where filter of a parent table is also applied when its children are filtered, so children only reference parent rows that pass the filter (and the Limit, if there is one).

The checkbox is only shown on SQL taps: Postgres, MySQL, Google Cloud SQL, Oracle, MSSQL, DB2, SQLite and Databricks.

In this mode the conditions of the child tables, and of the parent tables they are checked against, are written as text into the generated SQL, so:

  • Text is quoted with single quotes (a quote in the value is doubled). On MySQL, Google Cloud SQL and Databricks backslashes are escaped too.
  • Booleans are written as 1 / 0 on Oracle, MSSQL and DB2, and as TRUE / FALSE on the rest.
  • Dates are written in the format of each database, according to the type of the column, as described in Dates.
  • Table and column names are quoted: with backticks on MySQL, Google Cloud SQL and Databricks, with [...] on MSSQL and with "..." on the rest.
  • On Oracle the tables are qualified with the Owner of the tap, in upper case (for example "SALES"."CUSTOMERS"). Without an Owner they are not qualified.
  • % and _ in a starts with or ends with value are matched as normal characters. In like they are still wildcards.

Examples

Simple Filter

To filter customer records where the status is "active":

  1. Select the customer entity
  2. Add a rule with:
    • Field: status
    • Operator: is
    • Value: active

Records Without a Value

To keep only the customers that have an email address:

  1. Select the customer entity
  2. Add a rule with:
    • Field: email
    • Operator: is not null

No value is needed.

Complex Filter with Groups

To filter order records where either:

  • Order amount is greater than 1000 OR
  • Order date is after a given date AND order status is "pending"
  1. Select the order entity
  2. Set Group 1 to Or
  3. Add a rule to the group:
    • Field: amount
    • Operator: more than
    • Value: 1000
  4. Add a nested group (Group 1.1) and set it to And
  5. Add two rules to Group 1.1:
    • Field: date, Operator: after, Value: 2026-09-21 00:00:00
    • Field: status, Operator: is, Value: pending
Group 1                         [Or]
├── amount   more than   1000
└── Group 1.1                   [And]
    ├── date     after   2026-09-21 00:00:00
    └── status   is      pending

SQL equivalent:
WHERE amount > 1000
   OR (date > '2026-09-21T00:00:00.000Z' AND status = 'pending')

The date is shown here as it is sent. Each database compares it according to the type of the column (see Dates).

This creates a flexible filtering system that can handle complex business logic requirements.