Replies: 2 comments 3 replies
-
I'm having similar difficulties. I'm going to resort to inspecting the query in druid logs as I don't see a way to get a dump of the query with substitutions. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello mates, You need to wrap the variable with simple quotes: Hope it helps :) Note: this relates to #98 (any contribution is welcome!) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to test some simple queries using this plugin and running into some difficulty in accessing global variables in the sql.
For example, when i try:
SELECT count(code) FROM "dw_diff-test" where __time >= TIMESTAMP '2021-08-10'
I get a result as expected:
However, when i replace the timestamp with a global variable like:
SELECT count(code) as C FROM "dw_diff-test" where __time >= TIMESTAMP '${__from:date}'
or
SELECT count(code) as C FROM "dw_diff-test" where __time >= TIMESTAMP ${__from:date}
or
SELECT count(code) as C FROM "dw_diff-test" where __time >= ${__from:date}
I get an error:
In the query inspector, i see that the variable has not been replaced in the query (not sure if it should be):
May i know what am i doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions