You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2026/03/18 20:38:00 UTC

[jira] [Resolved] (SPARK-56031) NATURAL JOIN ignores case-insensitive column matching

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

Wenchen Fan resolved SPARK-56031.
---------------------------------
    Fix Version/s: 4.2.0
       Resolution: Fixed

Issue resolved by pull request 54858
[https://github.com/apache/spark/pull/54858]

> NATURAL JOIN ignores case-insensitive column matching
> -----------------------------------------------------
>
>                 Key: SPARK-56031
>                 URL: https://issues.apache.org/jira/browse/SPARK-56031
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.2.0
>            Reporter: Stefan Kandic
>            Assignee: Stefan Kandic
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.2.0
>
>
> NATURAL JOIN uses case-sensitive string comparison to find common columns between the left and right sides of the join, regardless of the spark.sql.caseSensitive setting (which defaults to false).
> This means columns that differ only in case (e.g. ID vs id) are not recognized as common columns, and the NATURAL JOIN silently degrades to a CROSS JOIN — returning incorrect results with duplicate columns instead of joining on the matching column.



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