Support list format for template-tags in native queries - #26
Merged
Conversation
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>
perivamsi
approved these changes
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')
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.