spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cheng Lian (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-10472) UserDefinedType.typeName gives wrong result
Date Fri, 11 Sep 2015 14:26:46 GMT

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

Cheng Lian resolved SPARK-10472.
--------------------------------
    Resolution: Fixed

Resolved by https://github.com/apache/spark/pull/8640

> UserDefinedType.typeName gives wrong result
> -------------------------------------------
>
>                 Key: SPARK-10472
>                 URL: https://issues.apache.org/jira/browse/SPARK-10472
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.2.2, 1.3.1, 1.4.1, 1.5.0
>            Reporter: Cheng Lian
>            Assignee: Cheng Lian
>            Priority: Minor
>
> {{DataType.typeName}} is defined as:
> {code}
>   /** Name of the type used in JSON serialization. */
>   def typeName: String = this.getClass.getSimpleName.stripSuffix("$").dropRight(4).toLowerCase
> {code}
> The {{dropRight(4)}} is used to drop the {{Type}} suffix. However, UDTs may not have
such suffix. For example, {{NestedStructUDT.typeName}} gives {{nestedstruc}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message