| commit | 35d1a6c21c53b84723ca571f7a9d6248ac70bac6 | [log] [tgz] |
|---|---|---|
| author | Beto Dealmeida <roberto@dealmeida.net> | Thu Nov 13 12:50:38 2025 -0500 |
| committer | Beto Dealmeida <roberto@dealmeida.net> | Thu Nov 13 12:50:38 2025 -0500 |
| tree | a5f724e2dc41183a32e4a600598a788cbdc47616 | |
| parent | add087cbfe97cba551ba51657e4ee5f0631262c3 [diff] |
fix: render Jinja templates in ORDER BY adhoc metrics When processing adhoc metrics in ORDER BY clauses during query execution, Jinja templates were not being rendered because `processed=True` was passed without providing template processing. This commit: 1. Updates adhoc_metric_to_sqla() to apply template processing even when processed=True (meaning SQL is already sanitized) 2. Passes template_processor when converting orderby adhoc metrics 3. Removes obsolete test that expected error handling removed in commit add087cbfe The fix ensures that: - During validation: SQL is sanitized but Jinja templates are preserved (template_processor=None) - During execution: Jinja templates are rendered (template_processor provided, processed=True skips re-sanitization) Fixes test: test_chart_data_table_chart_with_time_grain_filter 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
A modern, enterprise-ready business intelligence web application.
Why Superset? | Supported Databases | Installation and Configuration | Release Notes | Get Involved | Contributor Guide | Resources | Organizations Using Superset
Superset is a modern data exploration and data visualization platform. Superset can replace or augment proprietary business intelligence tools for many teams. Superset integrates well with a variety of data sources.
Superset provides:
Video Overview
Large Gallery of Visualizations
Craft Beautiful, Dynamic Dashboards
No-Code Chart Builder
Powerful SQL Editor
Superset can query data from any SQL-speaking datastore or data engine (Presto, Trino, Athena, and more) that has a Python DB-API driver and a SQLAlchemy dialect.
Here are some of the major database solutions that are supported:
A more comprehensive list of supported databases along with the configuration instructions can be found here.
Want to add support for your datastore or data engine? Read more here about the technical requirements.
Try out Superset's quickstart guide or learn about the options for production deployments.
Interested in contributing? Check out our CONTRIBUTING.md to find resources around contributing along with a detailed guide on how to set up a development environment.
Understanding the Superset Points of View
Getting Started with Superset
Deploying Superset
Recordings of Past Superset Community Events
Visualizations