[ https://issues.apache.org/jira/browse/SPARK-33500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-33500: ------------------------------------ Assignee: Apache Spark (was: Gengliang Wang) > Support field "EPOCH" in datetime function extract/date_part > ------------------------------------------------------------ > > Key: SPARK-33500 > URL: https://issues.apache.org/jira/browse/SPARK-33500 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.1.0 > Reporter: Gengliang Wang > Assignee: Apache Spark > Priority: Major > > Support filed EPOCH in the function `extract` and `date_part`. > For example: > SELECT EXTRACT(EPOCH FROM TIMESTAMP'2001-02-16 20:38:40-08'); > SELECT DATE_PART('EPOCH', TIMESTAMP'2001-02-16 20:38:40-08'); > This is useful for getting the number of seconds since `1970-01-01 > 00:00:00-00` -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org