You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2021/06/29 17:16:00 UTC
[jira] [Assigned] (SPARK-35937) Extracting date field from
timestamp should work in ANSI mode
[ https://issues.apache.org/jira/browse/SPARK-35937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-35937:
------------------------------------
Assignee: Gengliang Wang (was: Apache Spark)
> Extracting date field from timestamp should work in ANSI mode
> -------------------------------------------------------------
>
> Key: SPARK-35937
> URL: https://issues.apache.org/jira/browse/SPARK-35937
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.2.0
> Reporter: Gengliang Wang
> Assignee: Gengliang Wang
> Priority: Major
>
> Add a new ANSI type coercion rule: when getting a date field from a Timestamp column, cast the column as Date type.
> This is Spark's hack to make the implementation simple. In the default type coercion rules, the implicit cast rule does the work. However, The ANSI implicit cast rule doesn't allow converting Timestamp type as Date type, so we need to have this additional rule
> to make sure the date field extraction from Timestamp columns works.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org