You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Chano Kim (Jira)" <ji...@apache.org> on 2019/11/19 08:42:00 UTC

[jira] [Created] (SPARK-29958) Backtick does not work when used with STORED AS ORC

Chano Kim created SPARK-29958:
---------------------------------

             Summary: Backtick does not work when used with STORED AS ORC
                 Key: SPARK-29958
                 URL: https://issues.apache.org/jira/browse/SPARK-29958
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.4.0
            Reporter: Chano Kim


Column name escape back-tick(`) does not work when ORC format is specified on CREATE TABLE statement.

 

*This works:*
{code:sql}
spark-sql> CREATE TABLE test01 (`my-column` STRING);
{code}
*This does not work:*
{code:sql}
spark-sql> CREATE TABLE test02 (`my-column` STRING) STORED AS ORC;
Error in query: Column name "my-column" contains invalid character(s). Please use alias to rename it.; 
{code}
From above example, back-tick is used to escape dash('{{-'}}) character in column name. But it does not work when _{{STORED AS ORC}}_ is specified. This must be a bug.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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