MaxGekk commented on issue #25981: [SPARK-28420][SQL] Support the `INTERVAL` type in `date_part()` URL: https://github.com/apache/spark/pull/25981#issuecomment-539587062 > It isn't the seconds part of the interval, nor the whole interval, but three parts of the interval. Right, the function behaves inconsistently for different components but the same behavior we see for timestamps (this has been already merged to the master): ```sql spark-sql> select date_part('seconds', timestamp'2019-10-08 05:00:30.001001'); 30.001001 ``` So, its behavior is consistent across types. In general, when we port any functionality from PostgreSQL, should we preserve absolutely the same semantic or you think we can define it differently?
---------------------------------------------------------------- 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]
