This topic describes how to use the date function CURRENT_TIMESTAMP in Realtime Compute for Apache Flink.

Syntax

TIMESTAMP CURRENT_TIMESTAMP
Note In Blink versions earlier than 3.6.0, the syntax is TIMESTAMP CURRENT_TIMESTAMP ().

Description

Returns the current UTC timestamp in milliseconds.

Example

  • Test statements
    SELECT CURRENT_TIMESTAMP as var1
    FROM T1;
  • Test results
    var1(TIMESTAMP)
    2007-04-30 13:10:02.047