Thomas Uhren created ZEPPELIN-4556:
--------------------------------------

             Summary: Can't use hive variable substitution due to dynamic forms
                 Key: ZEPPELIN-4556
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-4556
             Project: Zeppelin
          Issue Type: Bug
          Components: Interpreters, JdbcInterpreter
    Affects Versions: 0.8.2, 0.8.1, 0.8.0
            Reporter: Thomas Uhren


{code}
%hive
set tempvar.min_date="2019-01-01";
select ${hiveconf:tempvar.min_date}
{code}
"java.lang.RuntimeException: Could not recognize dynamic form with type: 
hiveconf"

I tried escaping the curly braces with no luck:
{code}
%hive
set tempvar.min_date="2019-01-01";
select $\{hiveconf:tempvar.min_date\}
{code}
"org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: 
FAILED: ParseException line 1:7 cannot recognize input near '$' '{' 'hiveconf' 
in select clause"



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

Reply via email to