Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Current timestamp types are all the same. They have the same representation. And also the same precision.
For example, TimestampSecond and TimestampMillisecond return the values as 1652118180000. Instead, I would expect the TimestampSecond to drop the 3 zeros when returning a value, e.g. 1652118180. Also, the representation underneath is still an int32 array. Even though for TimestampSecond every second value is 0, the array still has double the amount of integers.
I also got an error when trying to read a Date as TimestampNanosecond - TypeError: can't convert 1652118180000 to BigInt.