MaxGekk commented on issue #25408: [SPARK-28687][SQL] Support `epoch`, 
`isoyear`, `milliseconds` and `microseconds` at `extract()`
URL: https://github.com/apache/spark/pull/25408#issuecomment-520544219
 
 
   @dongjoon-hyun Just in case, you checked not only behavior of `extract` but 
parsing string to timestamp as well. I mean rounding `.1234567` to `.123456`. 
After the commit 
https://github.com/apache/spark/pull/25408/commits/3c848e747eb9f6efc04954311402b1400d872be2
 :
   ```sql
   spark-sql> select extract(milliseconds from timestamp '2011-05-06 
07:08:09.1234567');
   9123.456
   ``` 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to