I have a dropdown element in my Zeppelin notebook
val instrument = z.select("Select Item", Seq(("A", "1"),("B", "2"),("C", "3")))
I want to use the value of this variable instrument
in my sql. For e.g., my next paragraph in the notebook contains
%sql select * from table_name where item='<<instrument selected above>>'
Is this possible? If yes, what would the syntax look like?
===
instead of==
? Also, I'm trying to understand the difference betweenz.show()
anddf.show()
? – Agonist