spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yin Huai (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-11628) spark-sql do not support for column datatype of CHAR
Date Mon, 23 Nov 2015 16:56:10 GMT

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

Yin Huai updated SPARK-11628:
-----------------------------
    Flags:   (was: Important)

> spark-sql do not support for column datatype of CHAR
> ----------------------------------------------------
>
>                 Key: SPARK-11628
>                 URL: https://issues.apache.org/jira/browse/SPARK-11628
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.5.1
>            Reporter: zhangshunyu
>            Assignee: Xiu(Joe) Guo
>             Fix For: 1.6.0
>
>
> In spark-sql when we create a table using the command as follwing:
>        "create table tablename(col char(5));"
> Hive will support for creating the table,  but when we desc the table:
>        "desc tablename"
> spark will report the error:
>        “org.apache.spark.sql.types.DataTypeException: Unsupported dataType: char(5).
If you have a struct and a field name of it has any special characters, please use backticks
(`) to quote that field name, e.g. `x+y`. Please note that backtick itself is not supported
in a field name.”



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