You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: velox/docs/develop/types.rst
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,8 +131,9 @@ upto 38 precision, with a range of :math:`[-10^{38} + 1, +10^{38} - 1]`.
131
131
All the three values, precision, scale, unscaled value are required to represent a
132
132
decimal value.
133
133
134
-
TIME type represents time in milliseconds from midnight UTC. Thus min/max value can range from UTC-14:00 at 00:00:00 to UTC+14:00 at 23:59:59.999 modulo 24 hours.
135
-
TIME type is backed by BIGINT physical type.
134
+
TIME type represents time in milliseconds from midnight UTC. Thus min/max value can range from UTC-14:00 at 00:00:00 to UTC+14:00 at 23:59:59.999 modulo 24 hours.
135
+
TIME_MICRO type represents time in microseconds from midnight. Thus min/max value can range from 00:00:00.000000 to 23:59:59.999999 modulo 24 hours.
136
+
TIME and TIME_MICRO types are backed by BIGINT physical type.
136
137
137
138
Custom Types
138
139
~~~~~~~~~~~~
@@ -292,7 +293,7 @@ Presto. These differences require us to implement the same functions
292
293
separately for each system in Velox, such as min, max and collect_set. The
293
294
key differences are listed below.
294
295
295
-
* Spark operates on timestamps with "microsecond" precision while Presto with
296
+
* Spark operates on TIMESTAMP and TIME types with "microsecond" precision while Presto with
296
297
"millisecond" precision.
297
298
Example::
298
299
@@ -304,6 +305,8 @@ key differences are listed below.
304
305
) AS t(ts);
305
306
-- 2014-03-08 09:00:00.012345
306
307
308
+
SELECT cast(time'12:30:45.123456' as bigint); -- 45,045,123,456
309
+
307
310
* In function comparisons, nested null values are handled as values.
0 commit comments