You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Liang-Chi Hsieh (JIRA)" <ji...@apache.org> on 2017/06/07 02:52:18 UTC

[jira] [Commented] (SPARK-21002) Syntax error regression when creating Hive storage handlers on Spark shell

    [ https://issues.apache.org/jira/browse/SPARK-21002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16040055#comment-16040055 ] 

Liang-Chi Hsieh commented on SPARK-21002:
-----------------------------------------

Seems that we don't support {{STORED BY storage_handler}} anymore since 2.0.

> Syntax error regression when creating Hive storage handlers on Spark shell
> --------------------------------------------------------------------------
>
>                 Key: SPARK-21002
>                 URL: https://issues.apache.org/jira/browse/SPARK-21002
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Dayou Zhou
>
> I use the following syntax to create my Hive storage handlers:
> CREATE TABLE t1
> ROW FORMAT SERDE 'com.foo.MySerDe' 
> STORED BY 'com.foo.MyStorageHandler'
> TBLPROPERTIES (
>    ......
> );
> And I'm trying to do the same from Spark shell.  It works fine on Spark 1.6, but on Spark 2.0+, it fails with the following:'
> org.apache.spark.sql.catalyst.parser.ParseException:
> Operation not allowed: Unexpected combination of ROW FORMAT SERDE 'com.foo.MySerDe' and STORED BY 'com.foo.MyStorageHandler'(line 1, pos 0)
> Could you please confirm whether this is a regression and if so could it be fixed in Spark 2.2?  Thank you.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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