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/04/15 15:47:00 UTC

[jira] [Commented] (SPARK-34720) Incorrect star expansion logic MERGE INSERT * / UPDATE *

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

Apache Spark commented on SPARK-34720:
--------------------------------------

User 'cloud-fan' has created a pull request for this issue:
https://github.com/apache/spark/pull/32192

> Incorrect star expansion logic MERGE INSERT * / UPDATE *
> --------------------------------------------------------
>
>                 Key: SPARK-34720
>                 URL: https://issues.apache.org/jira/browse/SPARK-34720
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.2, 3.1.1
>            Reporter: Tathagata Das
>            Priority: Major
>
> The natural expectation of INSERT * or UPDATE * in MERGE is to assign source columns to target columns of the same name. However, the current logic here generates the assignment by position. https://github.com/apache/spark/commit/7cfd589868b8430bc79e28e4d547008b222781a5#diff-ed19f376a63eba52eea59ca71f3355d4495fad4fad4db9a3324aade0d4986a47R1214
> This can very easily lead to incorrect results without the user realizing this odd behavior.



--
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