[jira] [Assigned] (SPARK-42898) Cast from string to date and date to string say timezone is needed, but it is not used

2023-03-22 Thread Apache Spark (Jira)


 [ 
https://issues.apache.org/jira/browse/SPARK-42898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Apache Spark reassigned SPARK-42898:


Assignee: (was: Apache Spark)

> Cast from string to date and date to string say timezone is needed, but it is 
> not used
> --
>
> Key: SPARK-42898
> URL: https://issues.apache.org/jira/browse/SPARK-42898
> Project: Spark
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 3.2.0
>Reporter: Robert Joseph Evans
>Priority: Major
>
> This is really minor but SPARK-35581 removed the need for a timezone when 
> casting from a `StringType` to a `DateType`, but the patch didn't update the 
> `needsTimeZone` function to indicate that it was not longer required.
> Currently Casting from a DateType to a StringType also says that it needs the 
> timezone, but it only uses the `DateFormatter` with it's default parameters 
> that do not use the time zone at all.
> I think this can be fixed with just a two line change.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Assigned] (SPARK-42898) Cast from string to date and date to string say timezone is needed, but it is not used

2023-03-22 Thread Apache Spark (Jira)


 [ 
https://issues.apache.org/jira/browse/SPARK-42898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Apache Spark reassigned SPARK-42898:


Assignee: Apache Spark

> Cast from string to date and date to string say timezone is needed, but it is 
> not used
> --
>
> Key: SPARK-42898
> URL: https://issues.apache.org/jira/browse/SPARK-42898
> Project: Spark
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 3.2.0
>Reporter: Robert Joseph Evans
>Assignee: Apache Spark
>Priority: Major
>
> This is really minor but SPARK-35581 removed the need for a timezone when 
> casting from a `StringType` to a `DateType`, but the patch didn't update the 
> `needsTimeZone` function to indicate that it was not longer required.
> Currently Casting from a DateType to a StringType also says that it needs the 
> timezone, but it only uses the `DateFormatter` with it's default parameters 
> that do not use the time zone at all.
> I think this can be fixed with just a two line change.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org