spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-22273) Fix key/value schema field names in HashMapGenerators.
Date Fri, 13 Oct 2017 09:15:01 GMT

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

Apache Spark reassigned SPARK-22273:
------------------------------------

    Assignee:     (was: Apache Spark)

> 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
>            Priority: Minor
>
> 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


Mime
View raw message