cloud-fan commented on issue #25981: [SPARK-28420][SQL] Support the `INTERVAL` 
type in `date_part()`
URL: https://github.com/apache/spark/pull/25981#issuecomment-543067902
 
 
   Before I look into the code, let me ask a few high-level questions.
   
   I'm ok with exposing the `date_part` function in Spark if it makes sense. 
After reading all the discussions, seems like the behavior of `date_part`: when 
extracting unit bigger than second, return an integer of the unit's value from 
the normalized date/timestamp/interval. when extracting unit smaller than 
second, return a fraction of the second unit's value from the normalized 
date/timestamp/interval. If that's how it is implemented, I'm fine.

----------------------------------------------------------------
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