Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
Databricks SQL
Databricks Runtime
Creates a timestamp expr microseconds since UTC epoch.
Syntax
timestamp_micros(expr)
Arguments
expr: An integral numeric expression specifying microseconds.
Returns
A TIMESTAMP.
If expr is out of the range representable as a TIMESTAMP, Azure Databricks raises ARITHMETIC_OVERFLOW.
Common error conditions
Examples
> SELECT timestamp_micros(1230219000123123);
2008-12-25 07:30:00.123123
> SELECT timestamp_micros(9999999999999999999);
Error: ARITHMETIC_OVERFLOW