CURRENT_TIMESTAMP

All functions > METAPROGRAMMING > CURRENT_TIMESTAMP

Returns the current date and time.

Signatures

Returns: The current timestamp at execution time

CURRENT_TIMESTAMP() → TIMESTAMP
sql
ParameterTypeRequiredDescription

Notes

  • Returns current date and time as a TIMESTAMP
  • Non-deterministic: value changes each time it is evaluated
  • Useful for recording when data was processed
  • Alias: NOW
  • Execution time depends on when the query runs
  • Use with caution in features that require reproducibility

Aliases

  • NOW

Examples

FeatureQL
SELECT
    f1 := EXTRACT(YEAR FROM @literal(CURRENT_TIMESTAMP()))  -- Get current timestamp (non-deterministic, example output)
;
Result
f1 BIGINT
2026

Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19