Date Time CURRENT_TIMESTAMP



The following program shows the query for this function −

Query

0: jdbc:drill:zk = local> select CURRENT_TIMESTAMP from (values(1));

Result

+--------------------------+
|    current_timestamp     |
+--------------------------+
|  2016-04-24 11:50:34.384 |
+——————————————————————————+

The output returns current timestamp for the day.

apache_drill_sql_operations.htm
Advertisements