Support Questions

Find answers, ask questions, and share your expertise

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

avatar
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

avatar
Super Collaborator

@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

View solution in original post

1 REPLY 1

avatar
Super Collaborator

@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