Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[explore] add support for jinja templates in WHERE/HAVING clauses #1442

Merged
merged 1 commit into from
Nov 1, 2016

Conversation

mistercrunch
Copy link
Member

screen shot 2016-10-26 at 9 09 48 pm

Next step will be to add support in column / metric expressions

@mistercrunch mistercrunch force-pushed the caravel_macros branch 2 times, most recently from 1494b30 to 4f90052 Compare October 27, 2016 04:39
@mistercrunch
Copy link
Member Author

@bkyryliuk

>>> process_template(sql)
"SELECT '2017-01-01T00:00:00'"
"""
if o and inspect.isclass(o) and issubclass(o, BaseTemplateProcessor):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dark magic )

@bkyryliuk
Copy link
Member

LGTM once tests are fixed.

@mistercrunch mistercrunch merged commit 2fd2526 into apache:master Nov 1, 2016
@mistercrunch mistercrunch deleted the caravel_macros branch November 1, 2016 15:16
zhaoyongjie added a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
zhaoyongjie added a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
zhaoyongjie added a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
zhaoyongjie added a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.13.0 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants