You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a template, it'd be really handy to be able to pass in a relevant string that varies between tasks vs having to pass the entire query into the var
var thingName string
var crit lambda
batch
|query('''
SELECT mean("value")
FROM "myDB"."autogen".foo
WHERE "thing" = {{ thingName }}
''')
...
|alert()
.crit(crit)
...
The text was updated successfully, but these errors were encountered:
@rossmcdonald Just FYI, the string concatenation does expand the variable, but it's not evaluated by the query. It looks like it needs to be wrapped in escaped single quotes to work:
|query('SELECT mean("value") FROM "myDB"."autogen".foo WHERE "thing" = \'' + thingName + '\'')
When creating a template, it'd be really handy to be able to pass in a relevant string that varies between tasks vs having to pass the entire query into the var
The text was updated successfully, but these errors were encountered: