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

bruce xu updated SPARK-19927:
-----------------------------
    Description: 

suppose the content of test.sql:   USE  ${hivevar:db_name};

 
when execute: bin/spark-sql -f /tmp/test.sql  --hivevar db_name=offline

the output is: 
Error: org.apache.spark.sql.catalyst.parser.ParseException: 
no viable alternative at input '<EOF>'(line 1, pos 4)

== SQL ==
use 
----^^^ (state=,code=0)

> SparkThriftServer2 can not get ''--hivevar" variables in spark 2.1
> ------------------------------------------------------------------
>
>                 Key: SPARK-19927
>                 URL: https://issues.apache.org/jira/browse/SPARK-19927
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.1.0
>         Environment: CentOS 6.5,spark 2.1 build with mvn -Pyarn -Phadoop-2.6 
> -Dhadoop.version=2.6.0 -Phive -Phive-thriftserver -Dscala-2.11
>            Reporter: bruce xu
>
> suppose the content of test.sql:   USE  ${hivevar:db_name};
>  
> when execute: bin/spark-sql -f /tmp/test.sql  --hivevar db_name=offline
> the output is: 
> Error: org.apache.spark.sql.catalyst.parser.ParseException: 
> no viable alternative at input '<EOF>'(line 1, pos 4)
> == SQL ==
> use 
> ----^^^ (state=,code=0)



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

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

Reply via email to