You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "王俊博 (Jira)" <ji...@apache.org> on 2021/11/29 09:17:00 UTC

[jira] [Comment Edited] (SPARK-34248) Allow implicit casting string literal to other data types under ANSI mode

    [ https://issues.apache.org/jira/browse/SPARK-34248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17450295#comment-17450295 ] 

王俊博 edited comment on SPARK-34248 at 11/29/21, 9:16 AM:
--------------------------------------------------------

{{where is the issue links?I found some issue with implicit casting string literal to other data types.}}


was (Author: kwafor):
{{where is the issue links?I found some issue with }}{{implicit casting string literal to other data types.}}

> Allow implicit casting string literal to other data types under ANSI mode
> -------------------------------------------------------------------------
>
>                 Key: SPARK-34248
>                 URL: https://issues.apache.org/jira/browse/SPARK-34248
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.1.2
>            Reporter: Gengliang Wang
>            Assignee: Gengliang Wang
>            Priority: Major
>
> As the default type coercion rules allow converting String type to other primitive types, we can specially allow converting string literal to other primitive types in ANSI mode. So that users won't get many SQL execution failure on switching to ANSI mode.
> This is learned from PostgreSQL.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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