spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikel San Vicente (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-22442) Schema generated by Product Encoder doesn't match case class field name when using non-standard characters
Date Fri, 03 Nov 2017 20:56:00 GMT

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

Mikel San Vicente updated SPARK-22442:
--------------------------------------
    Description: 
Product encoder encodes special characters wrongly when field name contains certain nonstandard
characters.

For example for:


{{
case class MyType(`field.1`: String, `field 2`: String)
}}
we will get the following schema

{{
root
 |-- field$u002E1: string (nullable = true)
 |-- field$u00202: string (nullable = true)
}}



  was:
Product encoder encodes special characters wrongly when field name contains certain nonstandard
characters.

For example for:


{{case class MyType(`field.1`: String, `field 2`: String)
}}
we will get the following schema

{{root
 |-- field$u002E1: string (nullable = true)
 |-- field$u00202: string (nullable = true)}}




> Schema generated by Product Encoder doesn't match case class field name when using non-standard
characters
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-22442
>                 URL: https://issues.apache.org/jira/browse/SPARK-22442
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.2, 2.1.2, 2.2.0
>            Reporter: Mikel San Vicente
>            Priority: Normal
>
> Product encoder encodes special characters wrongly when field name contains certain nonstandard
characters.
> For example for:
> {{
> case class MyType(`field.1`: String, `field 2`: String)
> }}
> we will get the following schema
> {{
> root
>  |-- field$u002E1: string (nullable = true)
>  |-- field$u00202: string (nullable = true)
> }}



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