You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Gengliang Wang (Jira)" <ji...@apache.org> on 2023/01/13 04:23:00 UTC
[jira] [Commented] (SPARK-40143) ANSI mode: allow explicitly casting fraction strings as Integral types
[ https://issues.apache.org/jira/browse/SPARK-40143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17676435#comment-17676435 ]
Gengliang Wang commented on SPARK-40143:
----------------------------------------
It's hard to define which cast(string as int) syntax outside the explicit cast and implicit cast.
Given our current Cast implementation is complicated enough, I will close this one for now.
> ANSI mode: allow explicitly casting fraction strings as Integral types
> -----------------------------------------------------------------------
>
> Key: SPARK-40143
> URL: https://issues.apache.org/jira/browse/SPARK-40143
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.4.0
> Reporter: Gengliang Wang
> Assignee: Gengliang Wang
> Priority: Major
>
> It's part of the ANSI SQL standard, and more consistent with the non-ansi casting. We can have different behavior for implicit casting to avoid `'1.2' = 1` returns true.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org