JunTech opened a new issue, #21617: URL: https://github.com/apache/superset/issues/21617
I add a chart which i add a jinjia2 template filter to solve something to dashboard , it seems works fine,however,when i open the flags 'DRILL_TO_DETAIL',it cause the sql error like ' Error: syntax error at or near ")" LINE 68: AND () ', #### How to reproduce the bug 1. add a chart with jinjia2 template filter,eg:  2. add another filter_box chart to fill the filter,eg:  3. right click the pie,drill to detail  4. See error  5. backend error position: superset/connectors/sqla/models.py:1660  template.render(context) get '()' however,it works good in chart, click 'edit chart' to chart  jinjia2 render the true template what i expected  ### Expected results drill to detail get the right sql which rendered right result by jinjia2 ### Actual results it get nothing #### Screenshots If applicable, add screenshots to help explain your problem. ### Environment (please complete the following information): - browser type and version: chrome 105 - superset version: `master` - python version: `3.8.13` - node.js version: `16` - any feature flags active: DRILL_TO_DETAIL,ENABLE_TEMPLATE_PROCESSING,cross_filter ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [ ] I have reproduced the issue with at least the latest released version of superset. - [ ] I have checked the issue tracker for the same issue and I haven't found one similar. ### Additional context Add any other context about the problem here. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
