Skip to content

Get Timestamp

The Get timestamp transform makes it easier to create dynamic staging pipelines where it is possible to run the pipeline if the table are missing (first runtime).

This transform retrieves the maximum timestamp value from a specified column in a table. If the table or column doesn’t exist, it returns a default value, making it ideal for incremental load scenarios where you need to track the last processed timestamp.

Get Timestamp icon

Get Timestamp

OptionDescription
Transform nameName of the step
ConnectionSelect predefined database connection
Schema nameThe name of the Schema for the table to read data from
Table nameName of the source table
Column nameName of the table column with timestamp
Default valueUse this value if no value found (missing table of column)
Result fieldnameThe name of the field to put the result of the sql

The transform executes a SQL query to get the maximum value from the specified column:

SELECT MAX(column_name) FROM schema_name.table_name

If the table or column doesn’t exist, or if the query returns NULL, the transform returns the Default value instead. This makes the pipeline resilient to missing tables, which is useful for first-time runs.

This transform is typically used in the following pattern:

  1. Get Timestamp → Get last successful run timestamp (or default for first run)
  2. Input Transform → Read data filtered by timestamp (e.g., WHERE modified_date > ${LAST_TIMESTAMP})
  3. Transform → Process and transform the data
  4. Output → Write to target table
  5. Update Timestamp → Store new timestamp for next run (can be done in a separate step or workflow)

Choose your default value carefully:

  • Too old: May cause processing of too much historical data on first run
  • Too recent: May miss data that should be processed
  • NULL handling: Ensure your default value is compatible with your timestamp column type
  • Index the timestamp column: Ensure the timestamp column used for filtering has an index
  • Use appropriate data types: Use proper date/datetime types rather than strings
  • Timezone awareness: Be aware of timezone issues when comparing timestamps
  • Incremental data loads: Get last processed timestamp to load only new/changed records
  • Staging pipelines: Track last successful staging run
  • Data synchronization: Determine which records need to be synchronized
  • Audit trails: Track when data was last processed