Open westonpace opened 6 months ago
At least with Spark 3.4, it doesn't appear to be possible to extract anything smaller than a second from a timestamp, and extracting seconds gives fractional seconds. That is SELECT EXTRACT(SECONDS FROM TIMESTAMP '2016-12-31 13:30:15.100259')
returns 15.100259.
The
extract
function pulls out a part of a timestamp. In particular this issue is about these components:Consider the query
SELECT EXTRACT(MICROSECONDS FROM TIMESTAMP '2016-12-31 13:30:15.100259');
I would expect, according to that definition, that I would get
259
. However, I get the following:So, we have at least 3 different behaviors. Maybe we should just drop these from the method?