Skip to main content
Fetch events data from ThirdEye internal events database. These events can be fed to detectors downstream.

Inputs

None.

Outputs

One output. No naming constraint for outputKey and outputName.

Parameters

SQL Filter

SQL filters are applied to a table with the following schema: The same event can happen in different timezone, so on a slightly different timeframe.
For instance, Christmas in France happens around 7 hours before Christmas in the United-States, so it is good practice to filter the HOLIDAY events by a limited set of countries.
Example:
  • Take all HOLIDAY events happening in the US and all CUSTOM events created by the business team:
    'US' member of dimensionMap['countryCode'] OR (type = 'CUSTOM')
The dialect used is Apache Calcite SQL. It is very close to ANSI SQL. See SQL reference. Try Calcite SQL online here.
Combining filteringThe eventTypes filter is applied before the sqlFilter.

Example

iso-8601 calcite-sql