You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/12/06 11:52:34 UTC
[GitHub] [superset] dneelapareddy commented on issue #17598: Unable to access time_grain in custom SQL
dneelapareddy commented on issue #17598:
URL: https://github.com/apache/superset/issues/17598#issuecomment-986703953
@villebro I have enabled `ENABLE_TEMPLATE_PROCESSING` to `True`,
I am able to get the `'{{ current_username() }}'` from custom sql,

But Jinja template is unable to evaluate `'{{ to_dttm }}' - '{{ from_dttm }}' AS Duration`

I have even tried it in the SQL lab, but not working there too:

Is there anything else i need to enable to get this working?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org