MaxGekk commented on issue #25981: [SPARK-28420][SQL] Support the `INTERVAL` type in `date_part()` URL: https://github.com/apache/spark/pull/25981#issuecomment-540061166 > However seconds works differently, as it very much is trying to return the seconds + ms + us in seconds. So it returns a real type. But why is it different? I can only say that I followed PostgreSQL implementation. Why it is different in PostgreSQL, I cannot say because there are no comments or discussion there: https://github.com/postgres/postgres/commit/41f1f5b76ad8e177a2b19116cbf41384f93f3851#diff-fc8c71b106f6bc31729543d63b5f7a8fR2057
---------------------------------------------------------------- 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]
