Hello,
My context is a creating a custom chart within Jira Analytics.
I would like to use a variable within my SQL statement, in order to keep that statement more generic and reusable for other charts.
I have read the Databricks documentation (if I have understood it well, Jira Analytics is based on Databricks).
I have tried to use the statement 'DECLARE VAR myvar ..;' plus the statement 'SET VAR myvar=...:' but I got syntax error from parser.
I guess that type of statement is not supported yet by Analytics. If it is the case, how can I declare a variable ?
To be precise, I have already used a Common Table Expression (CTE) in my SQL, and I cannot use more than one (which I find weird by the way) to solve this.
Any hints/tips ?
Thanks !