You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2019/01/05 23:49:00 UTC

[jira] [Resolved] (SPARK-26402) Accessing nested fields with different cases in case insensitive mode

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

Dongjoon Hyun resolved SPARK-26402.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0
                   2.4.1

This is resolved via https://github.com/apache/spark/pull/23353

> Accessing nested fields with different cases in case insensitive mode
> ---------------------------------------------------------------------
>
>                 Key: SPARK-26402
>                 URL: https://issues.apache.org/jira/browse/SPARK-26402
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: DB Tsai
>            Assignee: DB Tsai
>            Priority: Major
>             Fix For: 2.4.1, 3.0.0
>
>
> {{GetStructField}} with different optional names should be semantically equal. We will use this as building block to compare the nested fields used in the plans to be optimized by catalyst optimizer.
> This PR also fixes a bug below that accessing nested fields with different cases in case insensitive mode will result result {{AnalysisException}}.
> {code:java}
> sql("create table t (s struct<i: Int>) using json")
> sql("select s.I from t group by s.i")
> {code}
> which is currently failing
> {code:java}
> org.apache.spark.sql.AnalysisException: expression 'default.t.`s`' is neither present in the group by, nor is it an aggregate function
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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