You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2017/10/14 06:27:00 UTC

[jira] [Resolved] (SPARK-22273) Fix key/value schema field names in HashMapGenerators.

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

Xiao Li resolved SPARK-22273.
-----------------------------
       Resolution: Fixed
         Assignee: Takuya Ueshin
    Fix Version/s: 2.3.0
                   2.2.1
                   2.1.3

> Fix key/value schema field names in HashMapGenerators.
> ------------------------------------------------------
>
>                 Key: SPARK-22273
>                 URL: https://issues.apache.org/jira/browse/SPARK-22273
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.1.1, 2.2.0
>            Reporter: Takuya Ueshin
>            Assignee: Takuya Ueshin
>            Priority: Minor
>             Fix For: 2.1.3, 2.2.1, 2.3.0
>
>
> When fixing schema field names using escape characters with {{addReferenceMinorObj()}} at SPARK-18952, double-quotes around the names were remained and the names become something like {{"((java.lang.String) references\[1\])"}}.
> {code}
> /* 055 */     private int maxSteps = 2;
> /* 056 */     private int numRows = 0;
> /* 057 */     private org.apache.spark.sql.types.StructType keySchema = new org.apache.spark.sql.types.StructType().add("((java.lang.String) references[1])", org.apache.spark.sql.types.DataTypes.StringType);
> /* 058 */     private org.apache.spark.sql.types.StructType valueSchema = new org.apache.spark.sql.types.StructType().add("((java.lang.String) references[2])", org.apache.spark.sql.types.DataTypes.LongType);
> /* 059 */     private Object emptyVBase;
> {code}
> We should remove the double-quotes to refer the values in {{references}} properly:
> {code}
> /* 055 */     private int maxSteps = 2;
> /* 056 */     private int numRows = 0;
> /* 057 */     private org.apache.spark.sql.types.StructType keySchema = new org.apache.spark.sql.types.StructType().add(((java.lang.String) references[1]), org.apache.spark.sql.types.DataTypes.StringType);
> /* 058 */     private org.apache.spark.sql.types.StructType valueSchema = new org.apache.spark.sql.types.StructType().add(((java.lang.String) references[2]), org.apache.spark.sql.types.DataTypes.LongType);
> /* 059 */     private Object emptyVBase;
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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