Skip to content

Support list format for template-tags in native queries - #26

Merged
ranquild merged 2 commits into
mainfrom
template-tag-fix
Jul 15, 2026
Merged

Support list format for template-tags in native queries#26
ranquild merged 2 commits into
mainfrom
template-tag-fix

Conversation

@ranquild

Copy link
Copy Markdown
Contributor

No description provided.

Metabase now stores template-tags as an order-preserving list instead
of a map. The schema accepts both formats; the spec and most examples
use the new list format, with one example kept in the legacy map
format for coverage.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ranquild ranquild self-assigned this Jul 14, 2026
metabase-enterprise-head now ships a SQLite sample database instead of
H2. SQLite reports no schema, so table and field refs using the H2
PUBLIC schema no longer resolved on import and the synthesized
placeholder tables broke every card that referenced them.

- Replace the PUBLIC schema element with null in all table/field refs
  and move measures/segments out of the schemas/public directory
- Replace stddev/var/median/percentile aggregations with avg/min/max
  (SQLite lacks standard-deviation and percentile aggregations)
- Drop the regex-match-first expression and the URL Functions card
  (SQLite has no regex support)
- Use instance mode for the second get-week expression (default mode
  is iso, which SQLite cannot extract)
- Rewrite the snippet's DATEADD to SQLite's DATETIME('now', '-1 year')
@ranquild
ranquild merged commit bdf1d24 into main Jul 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants