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
I want to be able to template in columns for comparison using Jinja, however, the SQL that gets generated might look something like
WHERE1=1-- below is generated by JinjaAND'date'='2024-01-01'AND'amount'>'0'
Main issue here is that in bigquery, column names need to be quoted with backtick (`) rather than single quote ('). Secondary issue would be how to get the number (0) to show up without quotes (somehow using as_number?)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to be able to template in columns for comparison using Jinja, however, the SQL that gets generated might look something like
Main issue here is that in bigquery, column names need to be quoted with backtick (`) rather than single quote ('). Secondary issue would be how to get the number (0) to show up without quotes (somehow using
as_number
?)Beta Was this translation helpful? Give feedback.
All reactions