Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to pass the user input from angular UI as the dynamic input for the hive SQL query?

Solved Go to solution

How to pass the user input from angular UI as the dynamic input for the hive SQL query?

New Contributor

How to pass the user input from angular UI as the dynamic input for the hive SQL query?

In the below example, I would like to pass pass the startDate and endDate from angular input --> as the dynamic input to WHERE condition in the hive SQL query?

8529-capture1.png

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to pass the user input from angular UI as the dynamic input for the hive SQL query?

Expert Contributor

@mb As far as i know its not possible in last released version 0.6. one reason is

"Zeppelin's interpreter abstraction allows any interpreter creates something like Z context. To expose Z context to user in %jdbc interpreter, we need proper syntax for it. i.e. %spark interpreter expose Z context as scala api. %pyspark interpreter expose Z context as python api. %jdbc interpreter expose Z context as ..?"

You can have a look at one related defect - https://issues.apache.org/jira/browse/ZEPPELIN-1363

1 REPLY 1

Re: How to pass the user input from angular UI as the dynamic input for the hive SQL query?

Expert Contributor

@mb As far as i know its not possible in last released version 0.6. one reason is

"Zeppelin's interpreter abstraction allows any interpreter creates something like Z context. To expose Z context to user in %jdbc interpreter, we need proper syntax for it. i.e. %spark interpreter expose Z context as scala api. %pyspark interpreter expose Z context as python api. %jdbc interpreter expose Z context as ..?"

You can have a look at one related defect - https://issues.apache.org/jira/browse/ZEPPELIN-1363