Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Representations baseline (#71879)

Alexander Polyankinbd82202177e6
diff --git a/.github/file-paths.yaml b/.github/file-paths.yaml
index 896be0db05e..c9df747803e 100644
--- a/.github/file-paths.yaml
+++ b/.github/file-paths.yaml
@@ -200,6 +200,10 @@ cljs:
- ".github/workflows/cljs.yml"
- "shadow-cljs.edn"
+serialization_baseline:
+ - ".github/workflows/serialization.yml"
+ - "test_resources/serialization_baseline/**"
+
openapi:
- ".github/workflows/openapi.yml"
- "src/metabase/api/**"
diff --git a/.github/workflows/serialization.yml b/.github/workflows/serialization.yml
new file mode 100644
index 00000000000..417f9645663
--- /dev/null
+++ b/.github/workflows/serialization.yml
@@ -0,0 +1,39 @@
+name: Serialization
+
+on:
+ push:
+ branches:
+ - 'master'
+ pull_request:
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
+ cancel-in-progress: true
+
+jobs:
+ files-changed:
+ name: Check which files changed
+ runs-on: ${{ vars.DEFAULT_RUNNER_KEY }}
+ timeout-minutes: 3
+ outputs:
+ serialization_baseline: ${{ steps.changes.outputs.serialization_baseline }}
+ steps:
+ - uses: actions/checkout@v4
+ - name: Test which files changed
+ uses: dorny/[email protected]
+ id: changes
+ with:
+ token: ${{ github.token }}
+ filters: .github/file-paths.yaml
+
+ validate-serialization-baseline:
+ needs: files-changed
+ if: needs.files-changed.outputs.serialization_baseline == 'true'
+ runs-on: ${{ vars.DEFAULT_RUNNER_KEY }}
+ timeout-minutes: 10
+ steps:
+ - uses: actions/checkout@v4
+ - name: Prepare front-end environment
+ uses: ./.github/actions/prepare-frontend
+ - name: Validate serialization baseline schema
+ run: bunx @metabase/[email protected] validate-schema --folder test_resources/serialization_baseline
diff --git a/enterprise/backend/src/metabase_enterprise/serialization/v2/storage.clj b/enterprise/backend/src/metabase_enterprise/serialization/v2/storage.clj
index 73d7890e1a0..7f06122e8bd 100644
--- a/enterprise/backend/src/metabase_enterprise/serialization/v2/storage.clj
+++ b/enterprise/backend/src/metabase_enterprise/serialization/v2/storage.clj
@@ -32,23 +32,23 @@
(defn- resolve-path
"Given a storage path (vector of `{:label ... :key ...}` maps), resolves to a vector of strings
- with deduplication per folder. Uses `unique-name-fns` atom `{parent-key -> unique-name-fn}` where
- each fn is a `lib/non-truncating-unique-name-generator`."
+ with deduplication per folder. Uses `unique-name-fns` atom `{resolved-parent-path -> unique-name-fn}` where
+ each fn is a `lib/non-truncating-unique-name-generator`.
+ Keyed on the full resolved parent path to avoid cross-contamination between unrelated directories
+ (e.g. `collections/transforms/` vs `databases/.../schemas/transforms/`)."
[unique-name-fns path]
- (loop [remaining path
- parent-key nil
- resolved []]
+ (loop [remaining path
+ resolved []]
(if (empty? remaining)
resolved
(let [{:keys [label key]} (first remaining)
slug (slugify-name label)
- gen (or (get @unique-name-fns parent-key)
+ gen (or (get @unique-name-fns resolved)
(let [g (lib/non-truncating-unique-name-generator)]
- (swap! unique-name-fns assoc parent-key g)
+ (swap! unique-name-fns assoc resolved g)
g))
unique-name (gen key slug)]
(recur (rest remaining)
- key
(conj resolved unique-name))))))
(defn resolve-storage-path
diff --git a/enterprise/backend/test/metabase_enterprise/serialization/v2/round_trip_test.clj b/enterprise/backend/test/metabase_enterprise/serialization/v2/round_trip_test.clj
index fcd83baf8c7..681426be8b9 100644
--- a/enterprise/backend/test/metabase_enterprise/serialization/v2/round_trip_test.clj
+++ b/enterprise/backend/test/metabase_enterprise/serialization/v2/round_trip_test.clj
@@ -59,7 +59,11 @@
;; Is worth considering when adding entries here, whether they shouldn't just be skipped in extraction.
#{:cache_field_values_schedule
:metadata_sync_schedule
- :metabase_version})
+ :metabase_version
+ ;; result_metadata is non-deterministic for dashboard/document cards because the Card before-update hook
+ ;; re-computes it without :verified-result-metadata? set. Fixing this properly requires making serdes
+ ;; load set :verified-result-metadata? on Card updates, which is not straightforward.
+ :result_metadata})
(defn- strip-base-path [base file]
(str/replace-first file (str base File/separator) ""))
diff --git a/enterprise/backend/test/metabase_enterprise/serialization/v2/storage_test.clj b/enterprise/backend/test/metabase_enterprise/serialization/v2/storage_test.clj
index 309a7e95183..8271fa5dfb3 100644
--- a/enterprise/backend/test/metabase_enterprise/serialization/v2/storage_test.clj
+++ b/enterprise/backend/test/metabase_enterprise/serialization/v2/storage_test.clj
@@ -338,4 +338,19 @@
(testing "empty path returns empty vector"
(let [fns (atom {})]
- (is (= [] (resolve-path fns [])))))))
+ (is (= [] (resolve-path fns [])))))
+
+ (testing "same slug under different parent paths does not collide"
+ (let [fns (atom {})]
+ (is (= ["collections" "transforms" "my_transform"]
+ (resolve-path fns [{:label "collections" :key "collections"}
+ {:label "transforms" :key "ns-transforms"}
+ {:label "My Transform" :key "t-1"}])))
+ (is (= ["databases" "mydb" "schemas" "transforms" "tables" "target"]
+ (resolve-path fns [{:label "databases" :key "databases"}
+ {:label "mydb" :key "db-1"}
+ {:label "schemas" :key "schemas"}
+ {:label "transforms" :key "schema-transforms"}
+ {:label "tables" :key "tables"}
+ {:label "target" :key "table-1"}]))
+ "transforms under databases/.../schemas/ should not get _2 suffix")))))
diff --git a/src/metabase/native_query_snippets/models/native_query_snippet.clj b/src/metabase/native_query_snippets/models/native_query_snippet.clj
index 4f5a8f0f812..72e8d132f70 100644
--- a/src/metabase/native_query_snippets/models/native_query_snippet.clj
+++ b/src/metabase/native_query_snippets/models/native_query_snippet.clj
@@ -69,7 +69,12 @@
;; Use previous reference if possible:
(or (name->old-tag snippet-name) tag)))]
(->> (update-vals new-tags (fn [tag]
- (cond-> tag (snippet-tag? tag) (set-snippet-id))))
+ (cond-> tag
+ ;; Preserve :id from old tags if available
+ (get-in old-tags [(:name tag) :id])
+ (assoc :id (get-in old-tags [(:name tag) :id]))
+ (snippet-tag? tag)
+ (set-snippet-id))))
(assoc snippet :template_tags))))
(t2/define-before-insert :model/NativeQuerySnippet [snippet]
diff --git a/src/metabase/warehouse_schema/models/table.clj b/src/metabase/warehouse_schema/models/table.clj
index 1230a278621..f7f23d3fc74 100644
--- a/src/metabase/warehouse_schema/models/table.clj
+++ b/src/metabase/warehouse_schema/models/table.clj
@@ -197,8 +197,8 @@
;; Prevent changing data_source to/from metabase-transform
(when (contains? changes :data_source)
- (let [original-data-source (:data_source original-table)
- new-data-source (:data_source changes)]
+ (let [original-data-source (some-> (:data_source original-table) keyword)
+ new-data-source (some-> (:data_source changes) keyword)]
(when (and (= original-data-source :metabase-transform)
(not= new-data-source :metabase-transform))
(throw (ex-info "Cannot change data_source from metabase-transform"
diff --git a/test_resources/serialization_baseline/actions/my_action.yaml b/test_resources/serialization_baseline/actions/my_action.yaml
index b1d61b2432a..865dfe2236f 100644
--- a/test_resources/serialization_baseline/actions/my_action.yaml
+++ b/test_resources/serialization_baseline/actions/my_action.yaml
@@ -1,18 +1,16 @@
-created_at: '2024-08-28T14:29:47.386823Z'
-creator_id: [email protected]
-entity_id: hYWoE-l1BpOqmvYedqP2g
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+entity_id: aCtiOn00ExAmPlEx00001
http: []
implicit:
- kind: row/update
-made_public_by_id: [email protected]
-model_id: aqpA3mIKUnfzYUlwjuGwT
+model_id: sRcMoDeL00ExAmPlEx001
name: My Action
parameter_mappings: []
parameters: []
-public_uuid: 107f3af5-e51d-49aa-b332-97b1d61e52ad
query: []
type: implicit
serdes/meta:
-- id: hYWoE-l1BpOqmvYedqP2g
+- id: aCtiOn00ExAmPlEx00001
label: my_action
model: Action
diff --git a/test_resources/serialization_baseline/collections/main/ai_model.yaml b/test_resources/serialization_baseline/collections/main/ai_model.yaml
deleted file mode 100644
index 3caeee76304..00000000000
--- a/test_resources/serialization_baseline/collections/main/ai_model.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: AI Model
-entity_id: kDd3G__y2cqdZu7A1SUsU
-created_at: '2025-05-28T17:49:24.514067Z'
-creator_id: [email protected]
-display: table
-database_id: test-data (h2)
-parameters: []
-parameter_mappings: []
-dataset_query: {}
-visualization_settings:
- column_settings: null
-card_schema: 23
-serdes/meta:
-- id: kDd3G__y2cqdZu7A1SUsU
- label: ai_model
- model: Card
-metabase_version: v1.57.1-SNAPSHOT (14ff27d)
-type: model
diff --git a/test_resources/serialization_baseline/collections/main/ai_model_2.yaml b/test_resources/serialization_baseline/collections/main/ai_model_2.yaml
deleted file mode 100644
index d8792bc66d5..00000000000
--- a/test_resources/serialization_baseline/collections/main/ai_model_2.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: AI Model
-entity_id: 4ahdpFn43jybRFVQTRjX_
-created_at: '2025-06-09T20:12:09.108945Z'
-creator_id: [email protected]
-display: table
-database_id: test-data (h2)
-parameters: []
-parameter_mappings: []
-dataset_query: {}
-visualization_settings:
- column_settings: null
-card_schema: 23
-serdes/meta:
-- id: 4ahdpFn43jybRFVQTRjX_
- label: ai_model
- model: Card
-metabase_version: v1.57.1-SNAPSHOT (14ff27d)
-type: model
diff --git a/test_resources/serialization_baseline/collections/main/ai_model_3.yaml b/test_resources/serialization_baseline/collections/main/ai_model_3.yaml
deleted file mode 100644
index dfb2d72621c..00000000000
--- a/test_resources/serialization_baseline/collections/main/ai_model_3.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-name: AI Model
-entity_id: gQuHAIM4C-7fToHzHyNNQ
-slug: ai_model
-created_at: '2025-06-09T20:12:13.732719Z'
-serdes/meta:
-- id: gQuHAIM4C-7fToHzHyNNQ
- label: ai_model
- model: Collection
diff --git a/test_resources/serialization_baseline/collections/main/ai_model_3/ai_model.yaml b/test_resources/serialization_baseline/collections/main/ai_model_3/ai_model.yaml
deleted file mode 100644
index 026de65bbe2..00000000000
--- a/test_resources/serialization_baseline/collections/main/ai_model_3/ai_model.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: AI Model
-entity_id: Mr5p0TE2FSxGeUFaWd9yu
-created_at: '2025-06-09T20:12:14.873765Z'
-creator_id: [email protected]
-display: table
-collection_id: gQuHAIM4C-7fToHzHyNNQ
-database_id: test-data (h2)
-parameters: []
-parameter_mappings: []
-dataset_query: {}
-visualization_settings:
- column_settings: null
-card_schema: 23
-serdes/meta:
-- id: Mr5p0TE2FSxGeUFaWd9yu
- label: ai_model
- model: Card
-metabase_version: v1.57.1-SNAPSHOT (14ff27d)
-type: model
diff --git a/test_resources/serialization_baseline/collections/main/ai_model_3/test_metabot.yaml b/test_resources/serialization_baseline/collections/main/ai_model_3/test_metabot.yaml
deleted file mode 100644
index 40b03580362..00000000000
--- a/test_resources/serialization_baseline/collections/main/ai_model_3/test_metabot.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
-name: Test Metabot
-description: A test metabot
-created_at: '2025-06-09T20:12:13.816701Z'
-entity_id: gr1EkP92whbdA_TKQljLU
-updated_at: '2025-06-09T20:12:13.816701Z'
-serdes/meta:
-- id: gr1EkP92whbdA_TKQljLU
- model: Metabot
-collection_id: gQuHAIM4C-7fToHzHyNNQ
-prompts:
-- card_id: Mr5p0TE2FSxGeUFaWd9yu
- created_at: '2025-06-09T20:12:13.816701Z'
- entity_id: U4V5PzzpaMasl1Kt9BvNy
- model: model
- prompt: A sample prompt
- updated_at: '2025-06-09T20:12:13.816701Z'
- serdes/meta:
- - id: gr1EkP92whbdA_TKQljLU
- model: Metabot
- - id: U4V5PzzpaMasl1Kt9BvNy
- model: MetabotPrompt
diff --git a/test_resources/serialization_baseline/collections/main/ai_model_4.yaml b/test_resources/serialization_baseline/collections/main/ai_model_4.yaml
deleted file mode 100644
index 30dec2c7d8d..00000000000
--- a/test_resources/serialization_baseline/collections/main/ai_model_4.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: AI Model
-entity_id: RC0EJ8I00lOUnvbnGJJNf
-created_at: '2025-05-21T13:50:19.349587Z'
-creator_id: [email protected]
-display: table
-database_id: test-data (h2)
-parameters: []
-parameter_mappings: []
-dataset_query: {}
-visualization_settings:
- column_settings: null
-card_schema: 23
-serdes/meta:
-- id: RC0EJ8I00lOUnvbnGJJNf
- label: ai_model
- model: Card
-metabase_version: v1.57.1-SNAPSHOT (14ff27d)
-type: model
diff --git a/test_resources/serialization_baseline/collections/main/dashboards.yaml b/test_resources/serialization_baseline/collections/main/dashboards.yaml
new file mode 100644
index 00000000000..58c23e92059
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/dashboards.yaml
@@ -0,0 +1,8 @@
+name: Dashboards
+entity_id: cOlDaShBoArDs0ExAmPlx
+slug: dashboards
+created_at: '2026-04-02T02:59:02.778668Z'
+serdes/meta:
+- id: cOlDaShBoArDs0ExAmPlx
+ label: dashboards
+ model: Collection
diff --git a/test_resources/serialization_baseline/collections/main/dashboards/all_parameter_types.yaml b/test_resources/serialization_baseline/collections/main/dashboards/all_parameter_types.yaml
new file mode 100644
index 00000000000..91372ddc954
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/dashboards/all_parameter_types.yaml
@@ -0,0 +1,148 @@
+name: All Parameter Types
+entity_id: thzuTON-F8WG6EcXTXrNK
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+collection_id: cOlDaShBoArDs0ExAmPlx
+parameters:
+- id: a0000001-0000-0000-0000-000000000001
+ name: Text Equals
+ position: 0
+ sectionId: string
+ slug: text_equals
+ type: string/=
+- id: a0000002-0000-0000-0000-000000000002
+ name: Text Not Equals
+ position: 1
+ sectionId: string
+ slug: text_not_equals
+ type: string/!=
+- id: a0000003-0000-0000-0000-000000000003
+ name: Text Contains
+ position: 2
+ sectionId: string
+ slug: text_contains
+ type: string/contains
+- id: a0000004-0000-0000-0000-000000000004
+ name: Text Does Not Contain
+ position: 3
+ sectionId: string
+ slug: text_does_not_contain
+ type: string/does-not-contain
+- id: a0000005-0000-0000-0000-000000000005
+ name: Text Starts With
+ position: 4
+ sectionId: string
+ slug: text_starts_with
+ type: string/starts-with
+- id: a0000006-0000-0000-0000-000000000006
+ name: Text Ends With
+ position: 5
+ sectionId: string
+ slug: text_ends_with
+ type: string/ends-with
+- default: 42
+ id: a0000007-0000-0000-0000-000000000007
+ name: Number Equals
+ position: 6
+ sectionId: number
+ slug: number_equals
+ type: number/=
+- id: a0000008-0000-0000-0000-000000000008
+ name: Number Between
+ position: 7
+ sectionId: number
+ slug: number_between
+ type: number/between
+- id: a0000009-0000-0000-0000-000000000009
+ name: Date Single
+ position: 8
+ sectionId: date
+ slug: date_single
+ type: date/single
+- id: a0000010-0000-0000-0000-000000000010
+ name: Date Range
+ position: 9
+ sectionId: date
+ slug: date_range
+ type: date/range
+- id: a0000011-0000-0000-0000-000000000011
+ name: Date Month Year
+ position: 10
+ sectionId: date
+ slug: date_month_year
+ type: date/month-year
+- id: a0000012-0000-0000-0000-000000000012
+ name: Date Quarter Year
+ position: 11
+ sectionId: date
+ slug: date_quarter_year
+ type: date/quarter-year
+- id: a0000013-0000-0000-0000-000000000013
+ name: Date Relative
+ position: 12
+ sectionId: date
+ slug: date_relative
+ type: date/relative
+- id: a0000014-0000-0000-0000-000000000014
+ name: Date All Options
+ position: 13
+ sectionId: date
+ slug: date_all_options
+ type: date/all-options
+- id: a0000015-0000-0000-0000-000000000015
+ name: Boolean
+ position: 14
+ sectionId: boolean
+ slug: boolean_filter
+ type: boolean/=
+- id: a0000016-0000-0000-0000-000000000016
+ name: ID
+ position: 15
+ sectionId: id
+ slug: id_filter
+ type: number/=
+- id: a0000017-0000-0000-0000-000000000017
+ name: Category
+ position: 16
+ sectionId: string
+ slug: category_filter
+ type: string/=
+- id: a0000018-0000-0000-0000-000000000018
+ name: Location City
+ position: 17
+ sectionId: location
+ slug: location_city
+ type: string/=
+- id: a0000019-0000-0000-0000-000000000019
+ name: Temporal Unit
+ position: 18
+ sectionId: temporal-unit
+ slug: temporal_unit
+ temporal_units:
+ - month
+ - quarter
+ - year
+ type: temporal-unit
+- default: Widget
+ id: a0000020-0000-0000-0000-000000000020
+ name: Required With Default
+ position: 19
+ required: true
+ sectionId: string
+ slug: required_with_default
+ type: string/=
+ values_query_type: list
+ values_source_config:
+ values:
+ - Widget
+ - Gadget
+ - Gizmo
+ - Doohickey
+ values_source_type: static-list
+serdes/meta:
+- id: thzuTON-F8WG6EcXTXrNK
+ label: all_parameter_types
+ model: Dashboard
+dashcards: []
+tabs: []
+width: fixed
diff --git a/test_resources/serialization_baseline/collections/main/dashboards/click_behavior_examples.yaml b/test_resources/serialization_baseline/collections/main/dashboards/click_behavior_examples.yaml
new file mode 100644
index 00000000000..583373971e6
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/dashboards/click_behavior_examples.yaml
@@ -0,0 +1,97 @@
+name: Click Behavior Examples
+entity_id: c0R_gvn90vURE5hdxK3f0
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+collection_id: cOlDaShBoArDs0ExAmPlx
+parameters:
+- id: e0000001-0000-0000-0000-000000000001
+ name: Category
+ position: 0
+ sectionId: string
+ slug: category
+ type: string/=
+serdes/meta:
+- id: c0R_gvn90vURE5hdxK3f0
+ label: click_behavior_examples
+ model: Dashboard
+dashcards:
+- entity_id: qaAe9ro4JL3ahgLLne-jG
+ card_id: Wo5d6IV8lb63wex29uh6H
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 0
+ col: 0
+ size_x: 18
+ size_y: 9
+ inline_parameters: []
+ parameter_mappings:
+ - card_id: Wo5d6IV8lb63wex29uh6H
+ parameter_id: e0000001-0000-0000-0000-000000000001
+ target:
+ - dimension
+ - - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - null
+ series: []
+ visualization_settings:
+ column_settings: null
+ serdes/meta:
+ - id: c0R_gvn90vURE5hdxK3f0
+ model: Dashboard
+ - id: qaAe9ro4JL3ahgLLne-jG
+ model: DashboardCard
+- entity_id: iMNmMMABHvbbiVT3ufez6
+ card_id: UEWVldEEZ-3sYUjjN54qz
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 0
+ col: 18
+ size_x: 6
+ size_y: 9
+ inline_parameters: []
+ parameter_mappings: []
+ series: []
+ visualization_settings:
+ column_settings: null
+ serdes/meta:
+ - id: c0R_gvn90vURE5hdxK3f0
+ model: Dashboard
+ - id: iMNmMMABHvbbiVT3ufez6
+ model: DashboardCard
+- entity_id: RasgF0LvnoJlu7ModLrqv
+ card_id: dYD1j3pQtJdctg8duByUL
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 9
+ col: 0
+ size_x: 12
+ size_y: 8
+ inline_parameters: []
+ parameter_mappings: []
+ series: []
+ visualization_settings:
+ column_settings: null
+ serdes/meta:
+ - id: c0R_gvn90vURE5hdxK3f0
+ model: Dashboard
+ - id: RasgF0LvnoJlu7ModLrqv
+ model: DashboardCard
+- entity_id: NSyK1LJldomowKbt0HpuE
+ card_id: ciG63nSLHKRTImt5iWEte
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 9
+ col: 12
+ size_x: 12
+ size_y: 8
+ inline_parameters: []
+ parameter_mappings: []
+ series: []
+ visualization_settings:
+ column_settings: null
+ serdes/meta:
+ - id: c0R_gvn90vURE5hdxK3f0
+ model: Dashboard
+ - id: NSyK1LJldomowKbt0HpuE
+ model: DashboardCard
+tabs: []
+width: fixed
diff --git a/test_resources/serialization_baseline/collections/main/dashboards/inline_parameters_dashboard.yaml b/test_resources/serialization_baseline/collections/main/dashboards/inline_parameters_dashboard.yaml
new file mode 100644
index 00000000000..d2e539d086b
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/dashboards/inline_parameters_dashboard.yaml
@@ -0,0 +1,106 @@
+name: Inline Parameters Dashboard
+entity_id: eUXWiB6QAXkOc7P1ozoat
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+collection_id: cOlDaShBoArDs0ExAmPlx
+parameters:
+- default: Widget
+ id: d0000001-0000-0000-0000-000000000001
+ name: Category
+ position: 0
+ sectionId: string
+ slug: category
+ type: string/=
+- id: d0000002-0000-0000-0000-000000000002
+ name: Min Price
+ position: 1
+ sectionId: number
+ slug: min_price
+ type: number/>=
+serdes/meta:
+- id: eUXWiB6QAXkOc7P1ozoat
+ label: inline_parameters_dashboard
+ model: Dashboard
+dashcards:
+- entity_id: yaY0FfjZyI9oEQQR5TZ3q
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 0
+ col: 0
+ size_x: 24
+ size_y: 1
+ inline_parameters:
+ - d0000001-0000-0000-0000-000000000001
+ parameter_mappings: []
+ series: []
+ visualization_settings:
+ column_settings: null
+ text: Products in {{category}}
+ virtual_card:
+ display: heading
+ serdes/meta:
+ - id: eUXWiB6QAXkOc7P1ozoat
+ model: Dashboard
+ - id: yaY0FfjZyI9oEQQR5TZ3q
+ model: DashboardCard
+- entity_id: v29EoQMk66PPR6a68pe_S
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 1
+ col: 0
+ size_x: 12
+ size_y: 2
+ inline_parameters:
+ - d0000001-0000-0000-0000-000000000001
+ - d0000002-0000-0000-0000-000000000002
+ parameter_mappings: []
+ series: []
+ visualization_settings:
+ column_settings: null
+ text: |-
+ Showing products in the **{{category}}** category
+ with price above **{{min_price}}**.
+ virtual_card:
+ display: text
+ serdes/meta:
+ - id: eUXWiB6QAXkOc7P1ozoat
+ model: Dashboard
+ - id: v29EoQMk66PPR6a68pe_S
+ model: DashboardCard
+- entity_id: _5CQR0-k5mgaLOemB5EOl
+ card_id: h5F2EjHsRd73Dqqh8sAtd
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 3
+ col: 0
+ size_x: 18
+ size_y: 9
+ inline_parameters: []
+ parameter_mappings:
+ - card_id: h5F2EjHsRd73Dqqh8sAtd
+ parameter_id: d0000001-0000-0000-0000-000000000001
+ target:
+ - dimension
+ - - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - null
+ - card_id: h5F2EjHsRd73Dqqh8sAtd
+ parameter_id: d0000002-0000-0000-0000-000000000002
+ target:
+ - dimension
+ - - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - null
+ series: []
+ visualization_settings:
+ column_settings: null
+ serdes/meta:
+ - id: eUXWiB6QAXkOc7P1ozoat
+ model: Dashboard
+ - id: _5CQR0-k5mgaLOemB5EOl
+ model: DashboardCard
+tabs: []
+width: fixed
diff --git a/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings.yaml b/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings.yaml
new file mode 100644
index 00000000000..fa0900f2af9
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings.yaml
@@ -0,0 +1,112 @@
+name: Series and Parameter Mappings
+entity_id: 8xFV0XmZs2olbGKXWenfS
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+collection_id: cOlDaShBoArDs0ExAmPlx
+parameters:
+- id: c0000001-0000-0000-0000-000000000001
+ name: Category
+ position: 0
+ sectionId: string
+ slug: category
+ type: string/=
+- id: c0000002-0000-0000-0000-000000000002
+ name: Date Range
+ position: 1
+ sectionId: date
+ slug: date_range
+ type: date/range
+serdes/meta:
+- id: 8xFV0XmZs2olbGKXWenfS
+ label: series_and_parameter_mappings
+ model: Dashboard
+dashcards:
+- entity_id: WNjyHH5uA36yKp9D7X7bw
+ card_id: dShCrdMnthlyOrdrs0001
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 0
+ col: 0
+ size_x: 12
+ size_y: 6
+ inline_parameters: []
+ parameter_mappings:
+ - card_id: dShCrdMnthlyOrdrs0001
+ parameter_id: c0000001-0000-0000-0000-000000000001
+ target:
+ - dimension
+ - - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - null
+ - card_id: dShCrdMnthlyOrdrs0001
+ parameter_id: c0000002-0000-0000-0000-000000000002
+ target:
+ - dimension
+ - - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - null
+ series:
+ - card_id: dShCrdMnthlyRevnu0002
+ position: 0
+ - card_id: dShCrdMnthlyAvgOr0003
+ position: 1
+ - card_id: dShCrdMnthlyCumul0004
+ position: 2
+ visualization_settings:
+ column_settings: null
+ graph.show_values: true
+ graph.x_axis.title_text: Month
+ graph.y_axis.title_text: Revenue
+ serdes/meta:
+ - id: 8xFV0XmZs2olbGKXWenfS
+ model: Dashboard
+ - id: WNjyHH5uA36yKp9D7X7bw
+ model: DashboardCard
+- entity_id: MyNhSS9N9C8B373tSlfaX
+ card_id: dShCrdNatveOrders0005
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 0
+ col: 12
+ size_x: 6
+ size_y: 3
+ inline_parameters: []
+ parameter_mappings:
+ - card_id: dShCrdNatveOrders0005
+ parameter_id: c0000001-0000-0000-0000-000000000001
+ target:
+ - variable
+ - - template-tag
+ - min_total
+ series: []
+ visualization_settings:
+ column_settings: null
+ serdes/meta:
+ - id: 8xFV0XmZs2olbGKXWenfS
+ model: Dashboard
+ - id: MyNhSS9N9C8B373tSlfaX
+ model: DashboardCard
+- entity_id: f9pAJKJNxCtrS93uIN7F4
+ card_id: dShCrdTtlRevScalr0006
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 6
+ col: 0
+ size_x: 6
+ size_y: 3
+ inline_parameters: []
+ parameter_mappings: []
+ series: []
+ visualization_settings:
+ column_settings: null
+ scalar.field: Total Revenue
+ serdes/meta:
+ - id: 8xFV0XmZs2olbGKXWenfS
+ model: Dashboard
+ - id: f9pAJKJNxCtrS93uIN7F4
+ model: DashboardCard
+tabs: []
+width: fixed
diff --git a/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/monthly_average_order.yaml b/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/monthly_average_order.yaml
new file mode 100644
index 00000000000..7b4db6e3509
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/monthly_average_order.yaml
@@ -0,0 +1,49 @@
+name: Monthly Average Order
+entity_id: dShCrdMnthlyAvgOr0003
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: line
+collection_id: cOlDaShBoArDs0ExAmPlx
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - avg
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ breakout:
+ - - field
+ - temporal-unit: month
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: dShCrdMnthlyAvgOr0003
+ label: monthly_average_order
+ model: Card
+dashboard_id: 8xFV0XmZs2olbGKXWenfS
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/monthly_cumulative_orders.yaml b/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/monthly_cumulative_orders.yaml
new file mode 100644
index 00000000000..52536de4810
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/monthly_cumulative_orders.yaml
@@ -0,0 +1,94 @@
+name: Monthly Cumulative Orders
+entity_id: dShCrdMnthlyCumul0004
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: line
+collection_id: cOlDaShBoArDs0ExAmPlx
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - cum-count
+ - {}
+ breakout:
+ - - field
+ - temporal-unit: month
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: 'Created At: Month'
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - temporal-unit: month
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ inherited_temporal_unit: month
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ unit: month
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ lib/temporal-unit: month
+- base_type: type/Integer
+ display_name: Cumulative count
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 0
+ name: count
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: count
+ lib/desired-column-alias: count
+ lib/original-name: count
+ lib/source: source/aggregations
+ lib/source-column-alias: count
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: dShCrdMnthlyCumul0004
+ label: monthly_cumulative_orders
+ model: Card
+dashboard_id: 8xFV0XmZs2olbGKXWenfS
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/monthly_orders.yaml b/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/monthly_orders.yaml
new file mode 100644
index 00000000000..e2732846dad
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/monthly_orders.yaml
@@ -0,0 +1,94 @@
+name: Monthly Orders
+entity_id: dShCrdMnthlyOrdrs0001
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: line
+collection_id: cOlDaShBoArDs0ExAmPlx
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - count
+ - {}
+ breakout:
+ - - field
+ - temporal-unit: month
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: 'Created At: Month'
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - temporal-unit: month
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ inherited_temporal_unit: month
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ unit: month
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ lib/temporal-unit: month
+- base_type: type/Integer
+ display_name: Count
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 0
+ name: count
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: count
+ lib/desired-column-alias: count
+ lib/original-name: count
+ lib/source: source/aggregations
+ lib/source-column-alias: count
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: dShCrdMnthlyOrdrs0001
+ label: monthly_orders
+ model: Card
+dashboard_id: 8xFV0XmZs2olbGKXWenfS
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/monthly_revenue.yaml b/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/monthly_revenue.yaml
new file mode 100644
index 00000000000..06d8dc52dc2
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/monthly_revenue.yaml
@@ -0,0 +1,99 @@
+name: Monthly Revenue
+entity_id: dShCrdMnthlyRevnu0002
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: line
+collection_id: cOlDaShBoArDs0ExAmPlx
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ breakout:
+ - - field
+ - temporal-unit: month
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: 'Created At: Month'
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - temporal-unit: month
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ inherited_temporal_unit: month
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ unit: month
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ lib/temporal-unit: month
+- base_type: type/Float
+ display_name: Sum of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 0
+ name: sum
+ source: aggregation
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: dShCrdMnthlyRevnu0002
+ label: monthly_revenue
+ model: Card
+dashboard_id: 8xFV0XmZs2olbGKXWenfS
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/native_orders_query.yaml b/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/native_orders_query.yaml
new file mode 100644
index 00000000000..93ad29da9cd
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/native_orders_query.yaml
@@ -0,0 +1,34 @@
+name: Native Orders Query
+entity_id: dShCrdNatveOrders0005
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlDaShBoArDs0ExAmPlx
+query_type: native
+database_id: Sample Database
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - native: SELECT * FROM ORDERS WHERE TOTAL > {{min_total}}
+ template-tags:
+ min_total:
+ default: 50
+ display-name: Minimum Total
+ id: ee000001-0000-0000-0000-000000000001
+ name: min_total
+ sectionid: number
+ type: number
+ lib/type: mbql.stage/native
+ lib/type: mbql/query
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: dShCrdNatveOrders0005
+ label: native_orders_query
+ model: Card
+dashboard_id: 8xFV0XmZs2olbGKXWenfS
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/total_revenue.yaml b/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/total_revenue.yaml
new file mode 100644
index 00000000000..6bda5c691ba
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/dashboards/series_and_parameter_mappings/total_revenue.yaml
@@ -0,0 +1,56 @@
+name: Total Revenue
+entity_id: dShCrdTtlRevScalr0006
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: scalar
+collection_id: cOlDaShBoArDs0ExAmPlx
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- base_type: type/Float
+ display_name: Sum of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 0
+ name: sum
+ source: aggregation
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: dShCrdTtlRevScalr0006
+ label: total_revenue
+ model: Card
+dashboard_id: 8xFV0XmZs2olbGKXWenfS
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/dashboards/tabbed_dashboard.yaml b/test_resources/serialization_baseline/collections/main/dashboards/tabbed_dashboard.yaml
new file mode 100644
index 00000000000..5098a7e2dc0
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/dashboards/tabbed_dashboard.yaml
@@ -0,0 +1,100 @@
+name: Tabbed Dashboard
+entity_id: 7RZUq1g5o1C5ws_e3ppKf
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+collection_id: cOlDaShBoArDs0ExAmPlx
+parameters:
+- id: b0000001-0000-0000-0000-000000000001
+ name: Category
+ position: 0
+ sectionId: string
+ slug: category
+ type: string/=
+serdes/meta:
+- id: 7RZUq1g5o1C5ws_e3ppKf
+ label: tabbed_dashboard
+ model: Dashboard
+dashcards:
+- entity_id: _Bv8Qc16SHr8CtmMHBEub
+ card_id: h5F2EjHsRd73Dqqh8sAtd
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 0
+ col: 0
+ size_x: 12
+ size_y: 6
+ dashboard_tab_id:
+ - 7RZUq1g5o1C5ws_e3ppKf
+ - XcmNByL-bsDQ15jLHBUwr
+ inline_parameters: []
+ parameter_mappings:
+ - card_id: h5F2EjHsRd73Dqqh8sAtd
+ parameter_id: b0000001-0000-0000-0000-000000000001
+ target:
+ - dimension
+ - - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - null
+ series: []
+ visualization_settings:
+ column_settings: null
+ serdes/meta:
+ - id: 7RZUq1g5o1C5ws_e3ppKf
+ model: Dashboard
+ - id: XcmNByL-bsDQ15jLHBUwr
+ model: DashboardTab
+ - id: _Bv8Qc16SHr8CtmMHBEub
+ model: DashboardCard
+- entity_id: uyqXk5DNhkAMTp4W1TD9-
+ card_id: dShCrdProdsTables0007
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 0
+ col: 0
+ size_x: 18
+ size_y: 9
+ dashboard_tab_id:
+ - 7RZUq1g5o1C5ws_e3ppKf
+ - frlnbZFzBEzun9_GwdiZd
+ inline_parameters: []
+ parameter_mappings: []
+ series: []
+ visualization_settings:
+ column_settings: null
+ serdes/meta:
+ - id: 7RZUq1g5o1C5ws_e3ppKf
+ model: Dashboard
+ - id: frlnbZFzBEzun9_GwdiZd
+ model: DashboardTab
+ - id: uyqXk5DNhkAMTp4W1TD9-
+ model: DashboardCard
+tabs:
+- created_at: '2026-04-02T02:59:02.778668Z'
+ entity_id: XcmNByL-bsDQ15jLHBUwr
+ name: Overview
+ position: 0
+ serdes/meta:
+ - id: 7RZUq1g5o1C5ws_e3ppKf
+ model: Dashboard
+ - id: XcmNByL-bsDQ15jLHBUwr
+ model: DashboardTab
+- created_at: '2026-04-02T02:59:02.778668Z'
+ entity_id: frlnbZFzBEzun9_GwdiZd
+ name: Details
+ position: 1
+ serdes/meta:
+ - id: 7RZUq1g5o1C5ws_e3ppKf
+ model: Dashboard
+ - id: frlnbZFzBEzun9_GwdiZd
+ model: DashboardTab
+- created_at: '2026-04-02T02:59:02.778668Z'
+ entity_id: tiXyfAYcKGSBaGMVsqVom
+ name: Analysis
+ position: 2
+ serdes/meta:
+ - id: 7RZUq1g5o1C5ws_e3ppKf
+ model: Dashboard
+ - id: tiXyfAYcKGSBaGMVsqVom
+ model: DashboardTab
+width: full
diff --git a/test_resources/serialization_baseline/collections/main/dashboards/tabbed_dashboard/products_table.yaml b/test_resources/serialization_baseline/collections/main/dashboards/tabbed_dashboard/products_table.yaml
new file mode 100644
index 00000000000..d2d591e62c8
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/dashboards/tabbed_dashboard/products_table.yaml
@@ -0,0 +1,263 @@
+name: Products Table
+entity_id: dShCrdProdsTables0007
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlDaShBoArDs0ExAmPlx
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/BigInteger
+ database_type: BIGINT
+ display_name: ID
+ effective_type: type/BigInteger
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ name: ID
+ position: 0
+ semantic_type: type/PK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: ID
+ lib/desired-column-alias: ID
+ lib/original-display-name: ID
+ lib/original-name: ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Ean
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ name: EAN
+ position: 1
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: EAN
+ lib/desired-column-alias: EAN
+ lib/original-display-name: Ean
+ lib/original-name: EAN
+ lib/source: source/table-defaults
+ lib/source-column-alias: EAN
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Title
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ name: TITLE
+ position: 2
+ semantic_type: type/Title
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: TITLE
+ lib/desired-column-alias: TITLE
+ lib/original-display-name: Title
+ lib/original-name: TITLE
+ lib/source: source/table-defaults
+ lib/source-column-alias: TITLE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Category
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ name: CATEGORY
+ position: 3
+ semantic_type: type/Category
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: CATEGORY
+ lib/desired-column-alias: CATEGORY
+ lib/original-display-name: Category
+ lib/original-name: CATEGORY
+ lib/source: source/table-defaults
+ lib/source-column-alias: CATEGORY
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Vendor
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ name: VENDOR
+ position: 4
+ semantic_type: type/Company
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: VENDOR
+ lib/desired-column-alias: VENDOR
+ lib/original-display-name: Vendor
+ lib/original-name: VENDOR
+ lib/source: source/table-defaults
+ lib/source-column-alias: VENDOR
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Price
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ name: PRICE
+ position: 5
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: PRICE
+ lib/desired-column-alias: PRICE
+ lib/original-display-name: Price
+ lib/original-name: PRICE
+ lib/source: source/table-defaults
+ lib/source-column-alias: PRICE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Rating
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ name: RATING
+ position: 6
+ semantic_type: type/Score
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: RATING
+ lib/desired-column-alias: RATING
+ lib/original-display-name: Rating
+ lib/original-name: RATING
+ lib/source: source/table-defaults
+ lib/source-column-alias: RATING
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: dShCrdProdsTables0007
+ label: products_table
+ model: Card
+dashboard_id: 7RZUq1g5o1C5ws_e3ppKf
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/dashboards/virtual_cards_dashboard.yaml b/test_resources/serialization_baseline/collections/main/dashboards/virtual_cards_dashboard.yaml
new file mode 100644
index 00000000000..1cdba4fd183
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/dashboards/virtual_cards_dashboard.yaml
@@ -0,0 +1,133 @@
+name: Virtual Cards Dashboard
+entity_id: Ylbpm_iPeEYav_o0kpUVD
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+collection_id: cOlDaShBoArDs0ExAmPlx
+parameters: []
+serdes/meta:
+- id: Ylbpm_iPeEYav_o0kpUVD
+ label: virtual_cards_dashboard
+ model: Dashboard
+dashcards:
+- entity_id: WcNpxqVEO_rIeWZwjYv7Z
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 0
+ col: 0
+ size_x: 24
+ size_y: 1
+ inline_parameters: []
+ parameter_mappings: []
+ series: []
+ visualization_settings:
+ column_settings: null
+ text: Sales Overview
+ virtual_card:
+ display: heading
+ serdes/meta:
+ - id: Ylbpm_iPeEYav_o0kpUVD
+ model: Dashboard
+ - id: WcNpxqVEO_rIeWZwjYv7Z
+ model: DashboardCard
+- entity_id: TF6Oiw2C13CgEKtPyHIow
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 1
+ col: 0
+ size_x: 12
+ size_y: 3
+ inline_parameters: []
+ parameter_mappings: []
+ series: []
+ visualization_settings:
+ column_settings: null
+ text: |-
+ This dashboard provides an overview of sales metrics.
+ **Key metrics** include revenue, order count, and average order value.
+ Use the filters above to narrow down the data.
+ virtual_card:
+ display: text
+ serdes/meta:
+ - id: Ylbpm_iPeEYav_o0kpUVD
+ model: Dashboard
+ - id: TF6Oiw2C13CgEKtPyHIow
+ model: DashboardCard
+- entity_id: oGC6qBNiHOKo0tWAHWC1m
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 1
+ col: 12
+ size_x: 8
+ size_y: 1
+ inline_parameters: []
+ parameter_mappings: []
+ series: []
+ visualization_settings:
+ column_settings: null
+ link:
+ url: https://metabase.com/docs
+ virtual_card:
+ display: link
+ serdes/meta:
+ - id: Ylbpm_iPeEYav_o0kpUVD
+ model: Dashboard
+ - id: oGC6qBNiHOKo0tWAHWC1m
+ model: DashboardCard
+- entity_id: 7jlJ-VFISvhlHqxeW7rWp
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 2
+ col: 12
+ size_x: 8
+ size_y: 1
+ inline_parameters: []
+ parameter_mappings: []
+ series: []
+ visualization_settings:
+ column_settings: null
+ link:
+ entity:
+ id: Q_jD-f-9clKLFZ2TfUG2h
+ model: dashboard
+ virtual_card:
+ display: link
+ serdes/meta:
+ - id: Ylbpm_iPeEYav_o0kpUVD
+ model: Dashboard
+ - id: 7jlJ-VFISvhlHqxeW7rWp
+ model: DashboardCard
+- entity_id: wn16Kfjjjik8153kj14yI
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 4
+ col: 0
+ size_x: 12
+ size_y: 8
+ inline_parameters: []
+ parameter_mappings: []
+ series: []
+ visualization_settings:
+ column_settings: null
+ iframe: <iframe src="https://example.com/embed" width="100%" height="400"></iframe>
+ virtual_card:
+ display: iframe
+ serdes/meta:
+ - id: Ylbpm_iPeEYav_o0kpUVD
+ model: Dashboard
+ - id: wn16Kfjjjik8153kj14yI
+ model: DashboardCard
+- entity_id: HZ_JpYrkE8fMEYJg93RKd
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 5
+ col: 12
+ size_x: 4
+ size_y: 4
+ inline_parameters: []
+ parameter_mappings: []
+ series: []
+ visualization_settings:
+ column_settings: null
+ virtual_card:
+ display: placeholder
+ serdes/meta:
+ - id: Ylbpm_iPeEYav_o0kpUVD
+ model: Dashboard
+ - id: HZ_JpYrkE8fMEYJg93RKd
+ model: DashboardCard
+tabs: []
+width: fixed
diff --git a/test_resources/serialization_baseline/collections/main/documents.yaml b/test_resources/serialization_baseline/collections/main/documents.yaml
new file mode 100644
index 00000000000..13f42d5a11f
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/documents.yaml
@@ -0,0 +1,8 @@
+name: Documents
+entity_id: cOlDoCuMeNtS0ExAmPlx2
+slug: documents
+created_at: '2026-04-02T02:59:02.778668Z'
+serdes/meta:
+- id: cOlDoCuMeNtS0ExAmPlx2
+ label: documents
+ model: Collection
diff --git a/test_resources/serialization_baseline/collections/main/documents/product_analysis_report.yaml b/test_resources/serialization_baseline/collections/main/documents/product_analysis_report.yaml
new file mode 100644
index 00000000000..33fa90feac7
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/documents/product_analysis_report.yaml
@@ -0,0 +1,90 @@
+collection_id: cOlDoCuMeNtS0ExAmPlx2
+content_type: application/json+vnd.prose-mirror
+created_at: '2025-01-15T10:00:00Z'
+creator_id: [email protected]
+document:
+ content:
+ - attrs:
+ level: 1
+ content:
+ - text: Product Analysis Report
+ type: text
+ type: heading
+ - content:
+ - text: This document provides an overview of product performance metrics. The embedded query below shows aggregated stats by category.
+ type: text
+ type: paragraph
+ - attrs:
+ id:
+ - id: cRdCaTbReAkDoWn0ExMp1
+ model: Card
+ name: Category Breakdown
+ type: cardEmbed
+ - content:
+ - text: 'As shown above, the '
+ type: text
+ - marks:
+ - type: bold
+ text: Widget
+ type: text
+ - text: ' category dominates in total revenue.'
+ type: text
+ type: paragraph
+ - attrs:
+ level: 2
+ content:
+ - text: Key Findings
+ type: text
+ type: heading
+ - content:
+ - content:
+ - content:
+ - text: Revenue increased 15% quarter over quarter
+ type: text
+ type: paragraph
+ type: listItem
+ - content:
+ - content:
+ - text: Widget category remains the top performer
+ type: text
+ type: paragraph
+ type: listItem
+ - content:
+ - content:
+ - text: Average order value is trending upward
+ type: text
+ type: paragraph
+ type: listItem
+ type: bulletList
+ - attrs:
+ level: 2
+ content:
+ - text: Next Steps
+ type: text
+ type: heading
+ - content:
+ - text: 'See the '
+ type: text
+ - marks:
+ - attrs:
+ href: /dashboard/Q_jD-f-9clKLFZ2TfUG2h
+ type: link
+ text: Product Dashboard
+ type: text
+ type: paragraph
+ - content:
+ - content:
+ - marks:
+ - type: italic
+ text: 'Note: All figures reflect the trailing 12-month period.'
+ type: text
+ type: paragraph
+ type: blockquote
+ type: doc
+entity_id: dOc1PrOdAnAlYsIsRpTx2
+name: Product Analysis Report
+updated_at: '2026-04-02T02:59:02.778668Z'
+serdes/meta:
+- id: dOc1PrOdAnAlYsIsRpTx2
+ label: product_analysis_report
+ model: Document
diff --git a/test_resources/serialization_baseline/collections/main/documents/product_analysis_report/category_breakdown.yaml b/test_resources/serialization_baseline/collections/main/documents/product_analysis_report/category_breakdown.yaml
new file mode 100644
index 00000000000..5ef03dcfc89
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/documents/product_analysis_report/category_breakdown.yaml
@@ -0,0 +1,43 @@
+name: Category Breakdown
+entity_id: cRdCaTbReAkDoWn0ExMp1
+created_at: '2025-01-15T10:00:00Z'
+creator_id: [email protected]
+display: bar
+collection_id: cOlDoCuMeNtS0ExAmPlx2
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - count
+ - {}
+ breakout:
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: cRdCaTbReAkDoWn0ExMp1
+ label: category_breakdown
+ model: Card
+document_id: dOc1PrOdAnAlYsIsRpTx2
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/embedded_metabot.yaml b/test_resources/serialization_baseline/collections/main/embedded_metabot.yaml
index c0ffcf25503..d46863d72ab 100644
--- a/test_resources/serialization_baseline/collections/main/embedded_metabot.yaml
+++ b/test_resources/serialization_baseline/collections/main/embedded_metabot.yaml
@@ -1,8 +1,8 @@
name: Embedded Metabot
description: Metabot instance for embedded metabase users.
-created_at: '2025-05-28T17:49:20.649159Z'
+created_at: '2026-04-02T02:59:01.370515Z'
entity_id: embeddedmetabotmetabo
-updated_at: '2025-05-28T17:49:20.649159Z'
+updated_at: '2026-04-02T02:59:01.370515Z'
serdes/meta:
- id: embeddedmetabotmetabo
model: Metabot
diff --git a/test_resources/serialization_baseline/collections/main/grandparent_collection.yaml b/test_resources/serialization_baseline/collections/main/grandparent_collection.yaml
deleted file mode 100644
index 2e8740d6327..00000000000
--- a/test_resources/serialization_baseline/collections/main/grandparent_collection.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-name: Grandparent Collection
-entity_id: olgKH56lYOjakuobH4zPz
-slug: grandparent_collection
-created_at: '2024-08-28T12:50:13.265991Z'
-serdes/meta:
-- id: olgKH56lYOjakuobH4zPz
- label: grandparent_collection
- model: Collection
diff --git a/test_resources/serialization_baseline/collections/main/grandparent_collection/grandparent_card.yaml b/test_resources/serialization_baseline/collections/main/grandparent_collection/grandparent_card.yaml
deleted file mode 100644
index f0791d06147..00000000000
--- a/test_resources/serialization_baseline/collections/main/grandparent_collection/grandparent_card.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: grandparent card
-entity_id: m98z04nYGCF5n7cvOTfbj
-created_at: '2024-08-28T12:50:14.408123Z'
-creator_id: [email protected]
-display: table
-collection_id: olgKH56lYOjakuobH4zPz
-database_id: test-data (h2)
-parameters: []
-parameter_mappings: []
-dataset_query: {}
-visualization_settings:
- column_settings: null
-card_schema: 23
-serdes/meta:
-- id: m98z04nYGCF5n7cvOTfbj
- label: grandparent_card
- model: Card
-metabase_version: v1.57.1-SNAPSHOT (14ff27d)
-type: question
diff --git a/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection.yaml b/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection.yaml
deleted file mode 100644
index cb604576933..00000000000
--- a/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-name: Parent Collection
-entity_id: qPZhJMPNGkfd3sq8jWiZS
-slug: parent_collection
-created_at: '2024-08-28T12:50:13.270754Z'
-parent_id: olgKH56lYOjakuobH4zPz
-serdes/meta:
-- id: qPZhJMPNGkfd3sq8jWiZS
- label: parent_collection
- model: Collection
diff --git a/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection/child_collection.yaml b/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection/child_collection.yaml
deleted file mode 100644
index a2dcf6880db..00000000000
--- a/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection/child_collection.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-name: Child Collection
-entity_id: fJVsXIDzzipSZsaro9Pvu
-slug: child_collection
-created_at: '2024-08-28T12:50:13.31301Z'
-parent_id: qPZhJMPNGkfd3sq8jWiZS
-serdes/meta:
-- id: fJVsXIDzzipSZsaro9Pvu
- label: child_collection
- model: Collection
diff --git a/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection/child_collection/child_card.yaml b/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection/child_collection/child_card.yaml
deleted file mode 100644
index a838d1a8b29..00000000000
--- a/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection/child_collection/child_card.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: child card
-entity_id: Ra0JVOCXKTxH5TPbwZm0x
-created_at: '2024-08-28T12:50:14.415343Z'
-creator_id: [email protected]
-display: table
-collection_id: fJVsXIDzzipSZsaro9Pvu
-database_id: test-data (h2)
-parameters: []
-parameter_mappings: []
-dataset_query: {}
-visualization_settings:
- column_settings: null
-card_schema: 23
-serdes/meta:
-- id: Ra0JVOCXKTxH5TPbwZm0x
- label: child_card
- model: Card
-metabase_version: v1.57.1-SNAPSHOT (14ff27d)
-type: question
diff --git a/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection/parent_card.yaml b/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection/parent_card.yaml
deleted file mode 100644
index c62298e3ca3..00000000000
--- a/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection/parent_card.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: parent card
-entity_id: IBZSKSt2-QOMviIaGcQE6
-created_at: '2024-08-28T12:50:14.411803Z'
-creator_id: [email protected]
-display: table
-collection_id: qPZhJMPNGkfd3sq8jWiZS
-database_id: test-data (h2)
-parameters: []
-parameter_mappings: []
-dataset_query: {}
-visualization_settings:
- column_settings: null
-card_schema: 23
-serdes/meta:
-- id: IBZSKSt2-QOMviIaGcQE6
- label: parent_card
- model: Card
-metabase_version: v1.57.1-SNAPSHOT (14ff27d)
-type: question
diff --git a/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection/parent_dash.yaml b/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection/parent_dash.yaml
deleted file mode 100644
index 446313bdc30..00000000000
--- a/test_resources/serialization_baseline/collections/main/grandparent_collection/parent_collection/parent_dash.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
-name: parent dash
-entity_id: JT3BKJwNCfhUHnd9oqQ_1
-created_at: '2024-08-28T12:50:14.419489Z'
-creator_id: [email protected]
-collection_id: qPZhJMPNGkfd3sq8jWiZS
-parameters: []
-serdes/meta:
-- id: JT3BKJwNCfhUHnd9oqQ_1
- label: parent_dash
- model: Dashboard
-dashcards: []
-tabs: []
-width: fixed
diff --git a/test_resources/serialization_baseline/collections/main/linked_card.yaml b/test_resources/serialization_baseline/collections/main/linked_card.yaml
deleted file mode 100644
index 9f9c0ce03c6..00000000000
--- a/test_resources/serialization_baseline/collections/main/linked_card.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: Linked Card
-entity_id: 1z82DAj_YUJAsCZZaacxK
-created_at: '2025-08-11T16:53:07.267346Z'
-creator_id: [email protected]
-display: table
-database_id: test-data (h2)
-parameters: []
-parameter_mappings: []
-dataset_query: {}
-visualization_settings:
- column_settings: null
-card_schema: 23
-serdes/meta:
-- id: 1z82DAj_YUJAsCZZaacxK
- label: linked_card
- model: Card
-metabase_version: v1.57.1-SNAPSHOT (14ff27d)
-type: question
diff --git a/test_resources/serialization_baseline/collections/main/minimal.yaml b/test_resources/serialization_baseline/collections/main/minimal.yaml
new file mode 100644
index 00000000000..a336a2099a6
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/minimal.yaml
@@ -0,0 +1,8 @@
+name: Minimal
+entity_id: cOlMiNiMaL000ExAmPlx2
+slug: minimal
+created_at: '2026-04-02T02:59:02.778668Z'
+serdes/meta:
+- id: cOlMiNiMaL000ExAmPlx2
+ label: minimal
+ model: Collection
diff --git a/test_resources/serialization_baseline/collections/main/minimal/marketing_analytics.yaml b/test_resources/serialization_baseline/collections/main/minimal/marketing_analytics.yaml
new file mode 100644
index 00000000000..f7b0cbc038a
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/minimal/marketing_analytics.yaml
@@ -0,0 +1,9 @@
+name: Marketing Analytics
+entity_id: M-Q4pcV0qkiyJ0kiSWECl
+slug: marketing_analytics
+created_at: '2026-04-02T02:59:02.778668Z'
+parent_id: cOlMiNiMaL000ExAmPlx2
+serdes/meta:
+- id: M-Q4pcV0qkiyJ0kiSWECl
+ label: marketing_analytics
+ model: Collection
diff --git a/test_resources/serialization_baseline/collections/main/minimal/marketing_analytics/product_dashboard.yaml b/test_resources/serialization_baseline/collections/main/minimal/marketing_analytics/product_dashboard.yaml
new file mode 100644
index 00000000000..b46d9fed410
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/minimal/marketing_analytics/product_dashboard.yaml
@@ -0,0 +1,46 @@
+name: Product Dashboard
+entity_id: Q_jD-f-9clKLFZ2TfUG2h
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+collection_id: M-Q4pcV0qkiyJ0kiSWECl
+parameters:
+- id: c3d4e5f6-7890-abcd-ef12-34567890abcd
+ name: Category
+ position: 0
+ sectionId: string
+ slug: category
+ type: string/=
+serdes/meta:
+- id: Q_jD-f-9clKLFZ2TfUG2h
+ label: product_dashboard
+ model: Dashboard
+dashcards:
+- entity_id: UkpFcfUZMZt9ehChwnrAO
+ card_id: f1C68pznmrpN1F5xFDj6d
+ created_at: '2026-04-02T02:59:02.778668Z'
+ row: 0
+ col: 0
+ size_x: 18
+ size_y: 9
+ inline_parameters: []
+ parameter_mappings:
+ - card_id: f1C68pznmrpN1F5xFDj6d
+ parameter_id: c3d4e5f6-7890-abcd-ef12-34567890abcd
+ target:
+ - dimension
+ - - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - null
+ series: []
+ visualization_settings:
+ column_settings: null
+ serdes/meta:
+ - id: Q_jD-f-9clKLFZ2TfUG2h
+ model: Dashboard
+ - id: UkpFcfUZMZt9ehChwnrAO
+ model: DashboardCard
+tabs: []
+width: fixed
diff --git a/test_resources/serialization_baseline/collections/main/minimal/marketing_analytics/product_overview.yaml b/test_resources/serialization_baseline/collections/main/minimal/marketing_analytics/product_overview.yaml
new file mode 100644
index 00000000000..89b9a37382c
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/minimal/marketing_analytics/product_overview.yaml
@@ -0,0 +1,139 @@
+name: Product Overview
+entity_id: f1C68pznmrpN1F5xFDj6d
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: M-Q4pcV0qkiyJ0kiSWECl
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - count
+ - lib/uuid: 11111111-1111-1111-1111-111111111111
+ - - avg
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - - avg
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ breakout:
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ order-by:
+ - - desc
+ - {}
+ - - aggregation
+ - {}
+ - 11111111-1111-1111-1111-111111111111
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Category
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ name: CATEGORY
+ position: 3
+ semantic_type: type/Category
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CATEGORY
+ lib/desired-column-alias: CATEGORY
+ lib/original-display-name: Category
+ lib/original-name: CATEGORY
+ lib/source: source/table-defaults
+ lib/source-column-alias: CATEGORY
+- base_type: type/Integer
+ display_name: Count
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 0
+ name: count
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: count
+ lib/desired-column-alias: count
+ lib/original-name: count
+ lib/source: source/aggregations
+ lib/source-column-alias: count
+- base_type: type/Float
+ display_name: Average of Price
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 1
+ name: avg
+ source: aggregation
+ lib/deduplicated-name: avg
+ lib/desired-column-alias: avg
+ lib/original-name: avg
+ lib/source: source/aggregations
+ lib/source-column-alias: avg
+- base_type: type/Float
+ display_name: Average of Rating
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 2
+ name: avg_2
+ semantic_type: type/Score
+ source: aggregation
+ lib/deduplicated-name: avg_2
+ lib/desired-column-alias: avg_2
+ lib/original-name: avg
+ lib/source: source/aggregations
+ lib/source-column-alias: avg
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: f1C68pznmrpN1F5xFDj6d
+ label: product_overview
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/minimal/marketing_analytics/top_products_by_revenue.yaml b/test_resources/serialization_baseline/collections/main/minimal/marketing_analytics/top_products_by_revenue.yaml
new file mode 100644
index 00000000000..7f0ea13d010
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/minimal/marketing_analytics/top_products_by_revenue.yaml
@@ -0,0 +1,42 @@
+name: Top Products by Revenue
+entity_id: FTxpeL9vY5pyb6Lc6lCDK
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: bar
+collection_id: M-Q4pcV0qkiyJ0kiSWECl
+query_type: native
+database_id: Sample Database
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - native: |-
+ SELECT
+ p.TITLE,
+ p.CATEGORY,
+ SUM(o.TOTAL) AS revenue
+ FROM ORDERS o
+ JOIN PRODUCTS p ON o.PRODUCT_ID = p.ID
+ WHERE p.CATEGORY = {{category}}
+ GROUP BY p.TITLE, p.CATEGORY
+ ORDER BY revenue DESC
+ LIMIT 10
+ template-tags:
+ category:
+ default: Widget
+ display-name: Category
+ id: b2c3d4e5-f678-90ab-cdef-1234567890ab
+ name: category
+ type: text
+ lib/type: mbql.stage/native
+ lib/type: mbql/query
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: FTxpeL9vY5pyb6Lc6lCDK
+ label: top_products_by_revenue
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/shared_collection/populated_timeline.yaml b/test_resources/serialization_baseline/collections/main/minimal/populated_timeline.yaml
similarity index 81%
rename from test_resources/serialization_baseline/collections/main/shared_collection/populated_timeline.yaml
rename to test_resources/serialization_baseline/collections/main/minimal/populated_timeline.yaml
index 35493d88aaf..7ca225f05f4 100644
--- a/test_resources/serialization_baseline/collections/main/shared_collection/populated_timeline.yaml
+++ b/test_resources/serialization_baseline/collections/main/minimal/populated_timeline.yaml
@@ -1,10 +1,10 @@
-collection_id: p8Zq2ud7JlSoSBXdJWIaW
+collection_id: cOlMiNiMaL000ExAmPlx2
created_at: '2024-08-28T14:31:56.940526Z'
-creator_id: [email protected]
+creator_id: [email protected]
entity_id: jqbQYdaqb_vXFlZnjvshP
events:
- created_at: '2024-08-28T14:31:56.942571Z'
- creator_id: [email protected]
+ creator_id: [email protected]
icon: star
name: First Event
time_matters: true
diff --git a/test_resources/serialization_baseline/collections/main/qdlkexrocaxgnecmryqu.yaml b/test_resources/serialization_baseline/collections/main/qdlkexrocaxgnecmryqu.yaml
deleted file mode 100644
index d095653406d..00000000000
--- a/test_resources/serialization_baseline/collections/main/qdlkexrocaxgnecmryqu.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-name: QDLKEXROCAXGNECMRYQU
-entity_id: JS5JHDitDkWEtTt1-N7zr
-slug: qdlkexrocaxgnecmryqu
-created_at: '2025-08-11T16:53:06.39458Z'
-serdes/meta:
-- id: JS5JHDitDkWEtTt1-N7zr
- label: qdlkexrocaxgnecmryqu
- model: Collection
diff --git a/test_resources/serialization_baseline/collections/main/qdlkexrocaxgnecmryqu/dependent_card.yaml b/test_resources/serialization_baseline/collections/main/qdlkexrocaxgnecmryqu/dependent_card.yaml
deleted file mode 100644
index 150b2d217dc..00000000000
--- a/test_resources/serialization_baseline/collections/main/qdlkexrocaxgnecmryqu/dependent_card.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: Dependent Card
-entity_id: _DexsxY2EQdmhwMZU4BCs
-created_at: '2025-08-11T16:53:07.263347Z'
-creator_id: [email protected]
-display: table
-collection_id: JS5JHDitDkWEtTt1-N7zr
-database_id: test-data (h2)
-parameters: []
-parameter_mappings: []
-dataset_query: {}
-visualization_settings:
- column_settings: null
-card_schema: 23
-serdes/meta:
-- id: _DexsxY2EQdmhwMZU4BCs
- label: dependent_card
- model: Card
-metabase_version: v1.57.1-SNAPSHOT (14ff27d)
-type: question
diff --git a/test_resources/serialization_baseline/collections/main/qdlkexrocaxgnecmryqu/test_document.yaml b/test_resources/serialization_baseline/collections/main/qdlkexrocaxgnecmryqu/test_document.yaml
deleted file mode 100644
index 13bec74c294..00000000000
--- a/test_resources/serialization_baseline/collections/main/qdlkexrocaxgnecmryqu/test_document.yaml
+++ /dev/null
@@ -1,39 +0,0 @@
-collection_id: JS5JHDitDkWEtTt1-N7zr
-content_type: application/json+vnd.prose-mirror
-created_at: '2025-08-11T16:53:06.890467Z'
-creator_id: [email protected]
-document:
- content:
- - attrs:
- id:
- - id: _DexsxY2EQdmhwMZU4BCs
- model: Card
- type: cardEmbed
- - attrs:
- entityId:
- - id: 1z82DAj_YUJAsCZZaacxK
- model: Card
- model: card
- type: smartLink
- - attrs:
- entityId:
- - id: test-data (h2)
- model: Database
- - id: linked_table
- model: Table
- model: table
- type: smartLink
- - attrs:
- entityId:
- - id: ziLZTiwSdz6aJaB9VhGiO
- model: Dashboard
- model: dashboard
- type: smartLink
- type: doc
-entity_id: FLTBqagEX0mNl33ZZvFDa
-name: Test Document
-updated_at: '2025-08-11T16:53:06.454259Z'
-serdes/meta:
-- id: FLTBqagEX0mNl33ZZvFDa
- label: test_document
- model: Document
diff --git a/test_resources/serialization_baseline/collections/main/queries.yaml b/test_resources/serialization_baseline/collections/main/queries.yaml
new file mode 100644
index 00000000000..f9026e3147b
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries.yaml
@@ -0,0 +1,8 @@
+name: Queries
+entity_id: cOlQuErIeS0ExAmPlE2x1
+slug: queries
+created_at: '2026-04-02T02:59:02.778668Z'
+serdes/meta:
+- id: cOlQuErIeS0ExAmPlE2x1
+ label: queries
+ model: Collection
diff --git a/test_resources/serialization_baseline/collections/main/queries/arithmetic_expressions.yaml b/test_resources/serialization_baseline/collections/main/queries/arithmetic_expressions.yaml
new file mode 100644
index 00000000000..7d3aab9d41a
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/arithmetic_expressions.yaml
@@ -0,0 +1,221 @@
+name: Arithmetic Expressions
+entity_id: 1O_2jSo2fD6m3Qr6My7aa
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - SUBTOTAL
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - avg
+ - {}
+ - - field
+ - base-type: type/Integer
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - QUANTITY
+ breakout:
+ - - field
+ - temporal-unit: month
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ expressions:
+ - - +
+ - lib/expression-name: Total Plus Tax
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - SUBTOTAL
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ - - '-'
+ - lib/expression-name: Price Difference
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - SUBTOTAL
+ - - '*'
+ - lib/expression-name: Double Quantity
+ - - field
+ - base-type: type/Integer
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - QUANTITY
+ - 2
+ - - /
+ - lib/expression-name: Per Unit Price
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - field
+ - base-type: type/Integer
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - QUANTITY
+ filters:
+ - - '>'
+ - {}
+ - - expression
+ - {}
+ - Per Unit Price
+ - 10
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: 'Created At: Month'
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - temporal-unit: month
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ inherited_temporal_unit: month
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ unit: month
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ lib/temporal-unit: month
+- base_type: type/Float
+ display_name: Sum of Subtotal
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 0
+ name: sum
+ source: aggregation
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+- base_type: type/Float
+ display_name: Sum of Tax
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 1
+ name: sum_2
+ source: aggregation
+ lib/deduplicated-name: sum_2
+ lib/desired-column-alias: sum_2
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+- base_type: type/Float
+ display_name: Sum of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 2
+ name: sum_3
+ source: aggregation
+ lib/deduplicated-name: sum_3
+ lib/desired-column-alias: sum_3
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+- base_type: type/Float
+ display_name: Average of Quantity
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 3
+ name: avg
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: avg
+ lib/desired-column-alias: avg
+ lib/original-name: avg
+ lib/source: source/aggregations
+ lib/source-column-alias: avg
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: 1O_2jSo2fD6m3Qr6My7aa
+ label: arithmetic_expressions
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/basic_aggregations.yaml b/test_resources/serialization_baseline/collections/main/queries/basic_aggregations.yaml
new file mode 100644
index 00000000000..67f979e095b
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/basic_aggregations.yaml
@@ -0,0 +1,255 @@
+name: Basic Aggregations
+entity_id: h5F2EjHsRd73Dqqh8sAtd
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - count
+ - lib/uuid: 11111111-1111-1111-1111-111111111111
+ - - sum
+ - lib/uuid: 22222222-2222-2222-2222-222222222222
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - avg
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - min
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - max
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - count
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ - - distinct
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ - - sum
+ - display-name: Total Revenue
+ name: total_revenue
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ breakout:
+ - - field
+ - temporal-unit: month
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ limit: 12
+ order-by:
+ - - desc
+ - {}
+ - - aggregation
+ - {}
+ - 11111111-1111-1111-1111-111111111111
+ - - asc
+ - {}
+ - - aggregation
+ - {}
+ - 22222222-2222-2222-2222-222222222222
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: 'Created At: Month'
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - temporal-unit: month
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ inherited_temporal_unit: month
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ unit: month
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ lib/temporal-unit: month
+- base_type: type/Integer
+ display_name: Count
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 0
+ name: count
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: count
+ lib/desired-column-alias: count
+ lib/original-name: count
+ lib/source: source/aggregations
+ lib/source-column-alias: count
+- base_type: type/Float
+ display_name: Sum of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 1
+ name: sum
+ source: aggregation
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+- base_type: type/Float
+ display_name: Average of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 2
+ name: avg
+ source: aggregation
+ lib/deduplicated-name: avg
+ lib/desired-column-alias: avg
+ lib/original-name: avg
+ lib/source: source/aggregations
+ lib/source-column-alias: avg
+- base_type: type/Float
+ display_name: Min of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 3
+ name: min
+ source: aggregation
+ lib/deduplicated-name: min
+ lib/desired-column-alias: min
+ lib/original-name: min
+ lib/source: source/aggregations
+ lib/source-column-alias: min
+- base_type: type/Float
+ display_name: Max of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 4
+ name: max
+ source: aggregation
+ lib/deduplicated-name: max
+ lib/desired-column-alias: max
+ lib/original-name: max
+ lib/source: source/aggregations
+ lib/source-column-alias: max
+- base_type: type/Integer
+ display_name: Count of Product ID
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 5
+ name: count_2
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: count_2
+ lib/desired-column-alias: count_2
+ lib/original-name: count
+ lib/source: source/aggregations
+ lib/source-column-alias: count
+- base_type: type/Integer
+ display_name: Distinct values of Product ID
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 6
+ name: count_3
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: count_3
+ lib/desired-column-alias: count_3
+ lib/original-name: count
+ lib/source: source/aggregations
+ lib/source-column-alias: count
+- base_type: type/Float
+ display_name: Total Revenue
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 7
+ name: total_revenue
+ source: aggregation
+ lib/deduplicated-name: total_revenue
+ lib/desired-column-alias: total_revenue
+ lib/original-name: total_revenue
+ lib/source: source/aggregations
+ lib/source-column-alias: total_revenue
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: h5F2EjHsRd73Dqqh8sAtd
+ label: basic_aggregations
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/comparison_filters.yaml b/test_resources/serialization_baseline/collections/main/queries/comparison_filters.yaml
new file mode 100644
index 00000000000..b396322596d
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/comparison_filters.yaml
@@ -0,0 +1,244 @@
+name: Comparison Filters
+entity_id: 8kTL-8IzNdWMtXfaMPZaE
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - filters:
+ - - between
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - 10
+ - 200
+ - - '>'
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - 3
+ - - <=
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - 5
+ - - '!='
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - Doohickey
+ - - =
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - Widget
+ - Gadget
+ - Gizmo
+ - - in
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - Widget
+ - Gadget
+ - - not-in
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - Doohickey
+ - Gizmo
+ - - =
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - - value
+ - effective-type: type/Float
+ - 42.0
+ limit: 20
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Ean
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ name: EAN
+ position: 1
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: EAN
+ lib/desired-column-alias: EAN
+ lib/original-display-name: Ean
+ lib/original-name: EAN
+ lib/source: source/table-defaults
+ lib/source-column-alias: EAN
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Category
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ name: CATEGORY
+ position: 3
+ semantic_type: type/Category
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: CATEGORY
+ lib/desired-column-alias: CATEGORY
+ lib/original-display-name: Category
+ lib/original-name: CATEGORY
+ lib/source: source/table-defaults
+ lib/source-column-alias: CATEGORY
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Price
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ name: PRICE
+ position: 5
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: PRICE
+ lib/desired-column-alias: PRICE
+ lib/original-display-name: Price
+ lib/original-name: PRICE
+ lib/source: source/table-defaults
+ lib/source-column-alias: PRICE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Rating
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ name: RATING
+ position: 6
+ semantic_type: type/Score
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: RATING
+ lib/desired-column-alias: RATING
+ lib/original-display-name: Rating
+ lib/original-name: RATING
+ lib/source: source/table-defaults
+ lib/source-column-alias: RATING
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: 8kTL-8IzNdWMtXfaMPZaE
+ label: comparison_filters
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/conditional_aggregations.yaml b/test_resources/serialization_baseline/collections/main/queries/conditional_aggregations.yaml
new file mode 100644
index 00000000000..2af59af8991
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/conditional_aggregations.yaml
@@ -0,0 +1,186 @@
+name: Conditional Aggregations
+entity_id: irROiaJoSsiXPKGxwWvWY
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - count-where
+ - {}
+ - - '>'
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - 100
+ - - sum-where
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - '>'
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - DISCOUNT
+ - 0
+ - - distinct-where
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ - - '>'
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - 50
+ - - share
+ - {}
+ - - not-null
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - DISCOUNT
+ breakout:
+ - - field
+ - temporal-unit: quarter
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: 'Created At: Quarter'
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - temporal-unit: quarter
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ inherited_temporal_unit: quarter
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ unit: quarter
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ lib/temporal-unit: quarter
+- base_type: type/Integer
+ display_name: Count of rows matching condition
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 0
+ name: count_where
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: count_where
+ lib/desired-column-alias: count_where
+ lib/original-name: count_where
+ lib/source: source/aggregations
+ lib/source-column-alias: count_where
+- base_type: type/Float
+ display_name: Sum of Total matching condition
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 1
+ name: sum_where_TOTAL
+ source: aggregation
+ lib/deduplicated-name: sum_where_TOTAL
+ lib/desired-column-alias: sum_where_TOTAL
+ lib/original-name: sum_where_TOTAL
+ lib/source: source/aggregations
+ lib/source-column-alias: sum_where_TOTAL
+- base_type: type/Integer
+ display_name: distinct-where
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 2
+ name: distinct_where
+ source: aggregation
+ lib/deduplicated-name: distinct_where
+ lib/desired-column-alias: distinct_where
+ lib/original-name: distinct_where
+ lib/source: source/aggregations
+ lib/source-column-alias: distinct_where
+- base_type: type/Float
+ display_name: Share of rows matching condition
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 3
+ name: share
+ semantic_type: type/Percentage
+ source: aggregation
+ lib/deduplicated-name: share
+ lib/desired-column-alias: share
+ lib/original-name: share
+ lib/source: source/aggregations
+ lib/source-column-alias: share
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: irROiaJoSsiXPKGxwWvWY
+ label: conditional_aggregations
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/conditional_and_type_conversion.yaml b/test_resources/serialization_baseline/collections/main/queries/conditional_and_type_conversion.yaml
new file mode 100644
index 00000000000..b2744ccc3ef
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/conditional_and_type_conversion.yaml
@@ -0,0 +1,483 @@
+name: Conditional and Type Conversion
+entity_id: 1hsUzNOepulZo3Jamzd1R
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - expressions:
+ - - case
+ - default: Budget
+ lib/expression-name: Price Tier
+ - - - - '>'
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - 100
+ - Premium
+ - - - '>'
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - 30
+ - Standard
+ - - if
+ - default: false
+ lib/expression-name: Is Premium
+ - - - - '>'
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - 100
+ - true
+ - - case
+ - lib/expression-name: Simple Category
+ - - - - '>'
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - 4
+ - Popular
+ - - coalesce
+ - lib/expression-name: Effective Price
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - 0
+ - - text
+ - lib/expression-name: Price as Text
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - - integer
+ - lib/expression-name: Rating as Integer
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - - float
+ - lib/expression-name: Rating as Float
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ limit: 10
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/BigInteger
+ database_type: BIGINT
+ display_name: ID
+ effective_type: type/BigInteger
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ name: ID
+ position: 0
+ semantic_type: type/PK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: ID
+ lib/desired-column-alias: ID
+ lib/original-display-name: ID
+ lib/original-name: ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Ean
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ name: EAN
+ position: 1
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: EAN
+ lib/desired-column-alias: EAN
+ lib/original-display-name: Ean
+ lib/original-name: EAN
+ lib/source: source/table-defaults
+ lib/source-column-alias: EAN
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Title
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ name: TITLE
+ position: 2
+ semantic_type: type/Title
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: TITLE
+ lib/desired-column-alias: TITLE
+ lib/original-display-name: Title
+ lib/original-name: TITLE
+ lib/source: source/table-defaults
+ lib/source-column-alias: TITLE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Category
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ name: CATEGORY
+ position: 3
+ semantic_type: type/Category
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: CATEGORY
+ lib/desired-column-alias: CATEGORY
+ lib/original-display-name: Category
+ lib/original-name: CATEGORY
+ lib/source: source/table-defaults
+ lib/source-column-alias: CATEGORY
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Vendor
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ name: VENDOR
+ position: 4
+ semantic_type: type/Company
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: VENDOR
+ lib/desired-column-alias: VENDOR
+ lib/original-display-name: Vendor
+ lib/original-name: VENDOR
+ lib/source: source/table-defaults
+ lib/source-column-alias: VENDOR
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Price
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ name: PRICE
+ position: 5
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: PRICE
+ lib/desired-column-alias: PRICE
+ lib/original-display-name: Price
+ lib/original-name: PRICE
+ lib/source: source/table-defaults
+ lib/source-column-alias: PRICE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Rating
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ name: RATING
+ position: 6
+ semantic_type: type/Score
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: RATING
+ lib/desired-column-alias: RATING
+ lib/original-display-name: Rating
+ lib/original-name: RATING
+ lib/source: source/table-defaults
+ lib/source-column-alias: RATING
+ qp/implicit-field?: true
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: Created At
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CREATED_AT
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Price Tier
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Price Tier
+ name: Price Tier
+ source: fields
+ lib/deduplicated-name: Price Tier
+ lib/desired-column-alias: Price Tier
+ lib/expression-name: Price Tier
+ lib/original-name: Price Tier
+ lib/source: source/expressions
+ lib/source-column-alias: Price Tier
+ qp/implicit-field?: true
+- base_type: type/Boolean
+ display_name: Is Premium
+ effective_type: type/Boolean
+ field_ref:
+ - expression
+ - Is Premium
+ name: Is Premium
+ source: fields
+ lib/deduplicated-name: Is Premium
+ lib/desired-column-alias: Is Premium
+ lib/expression-name: Is Premium
+ lib/original-name: Is Premium
+ lib/source: source/expressions
+ lib/source-column-alias: Is Premium
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Simple Category
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Simple Category
+ name: Simple Category
+ source: fields
+ lib/deduplicated-name: Simple Category
+ lib/desired-column-alias: Simple Category
+ lib/expression-name: Simple Category
+ lib/original-name: Simple Category
+ lib/source: source/expressions
+ lib/source-column-alias: Simple Category
+ qp/implicit-field?: true
+- base_type: type/Float
+ display_name: Effective Price
+ effective_type: type/Float
+ field_ref:
+ - expression
+ - Effective Price
+ name: Effective Price
+ source: fields
+ lib/deduplicated-name: Effective Price
+ lib/desired-column-alias: Effective Price
+ lib/expression-name: Effective Price
+ lib/original-name: Effective Price
+ lib/source: source/expressions
+ lib/source-column-alias: Effective Price
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Price as Text
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Price as Text
+ name: Price as Text
+ source: fields
+ lib/deduplicated-name: Price as Text
+ lib/desired-column-alias: Price as Text
+ lib/expression-name: Price as Text
+ lib/original-name: Price as Text
+ lib/source: source/expressions
+ lib/source-column-alias: Price as Text
+ qp/implicit-field?: true
+- base_type: type/BigInteger
+ display_name: Rating as Integer
+ effective_type: type/BigInteger
+ field_ref:
+ - expression
+ - Rating as Integer
+ name: Rating as Integer
+ source: fields
+ lib/deduplicated-name: Rating as Integer
+ lib/desired-column-alias: Rating as Integer
+ lib/expression-name: Rating as Integer
+ lib/original-name: Rating as Integer
+ lib/source: source/expressions
+ lib/source-column-alias: Rating as Integer
+ qp/implicit-field?: true
+- base_type: type/Float
+ display_name: Rating as Float
+ effective_type: type/Float
+ field_ref:
+ - expression
+ - Rating as Float
+ name: Rating as Float
+ source: fields
+ lib/deduplicated-name: Rating as Float
+ lib/desired-column-alias: Rating as Float
+ lib/expression-name: Rating as Float
+ lib/original-name: Rating as Float
+ lib/source: source/expressions
+ lib/source-column-alias: Rating as Float
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: 1hsUzNOepulZo3Jamzd1R
+ label: conditional_and_type_conversion
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/cumulative_and_statistical_aggregations.yaml b/test_resources/serialization_baseline/collections/main/queries/cumulative_and_statistical_aggregations.yaml
new file mode 100644
index 00000000000..848190a75cf
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/cumulative_and_statistical_aggregations.yaml
@@ -0,0 +1,221 @@
+name: Cumulative and Statistical Aggregations
+entity_id: x61UtCMCuBNjw0TEFQeWG
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: line
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - cum-count
+ - {}
+ - - cum-count
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ - - cum-sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - stddev
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - var
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - median
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - percentile
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - 0.9
+ breakout:
+ - - field
+ - temporal-unit: month
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: 'Created At: Month'
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - temporal-unit: month
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ inherited_temporal_unit: month
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ unit: month
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ lib/temporal-unit: month
+- base_type: type/Integer
+ display_name: Cumulative count
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 0
+ name: count
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: count
+ lib/desired-column-alias: count
+ lib/original-name: count
+ lib/source: source/aggregations
+ lib/source-column-alias: count
+- base_type: type/Integer
+ display_name: Cumulative count of Product ID
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 1
+ name: count_2
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: count_2
+ lib/desired-column-alias: count_2
+ lib/original-name: count
+ lib/source: source/aggregations
+ lib/source-column-alias: count
+- base_type: type/Float
+ display_name: Cumulative sum of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 2
+ name: sum
+ source: aggregation
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+- base_type: type/Float
+ display_name: Standard deviation of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 3
+ name: stddev
+ source: aggregation
+ lib/deduplicated-name: stddev
+ lib/desired-column-alias: stddev
+ lib/original-name: stddev
+ lib/source: source/aggregations
+ lib/source-column-alias: stddev
+- base_type: type/Float
+ display_name: Variance of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 4
+ name: var
+ source: aggregation
+ lib/deduplicated-name: var
+ lib/desired-column-alias: var
+ lib/original-name: var
+ lib/source: source/aggregations
+ lib/source-column-alias: var
+- base_type: type/Float
+ display_name: Median of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 5
+ name: median
+ source: aggregation
+ lib/deduplicated-name: median
+ lib/desired-column-alias: median
+ lib/original-name: median
+ lib/source: source/aggregations
+ lib/source-column-alias: median
+- base_type: type/Float
+ display_name: 0.9th percentile of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 6
+ name: percentile
+ source: aggregation
+ lib/deduplicated-name: percentile
+ lib/desired-column-alias: percentile
+ lib/original-name: percentile
+ lib/source: source/aggregations
+ lib/source-column-alias: percentile
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: x61UtCMCuBNjw0TEFQeWG
+ label: cumulative_and_statistical_aggregations
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/fields_and_expressions.yaml b/test_resources/serialization_baseline/collections/main/queries/fields_and_expressions.yaml
new file mode 100644
index 00000000000..67a2c256ca6
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/fields_and_expressions.yaml
@@ -0,0 +1,179 @@
+name: Fields and Expressions
+entity_id: fLdExPr3sS10nS0ExAmPl
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - expressions:
+ - - '-'
+ - lib/expression-name: Profit
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ fields:
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ - - expression
+ - {}
+ - Profit
+ limit: 100
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: Created At
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Total
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ name: TOTAL
+ position: 5
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: TOTAL
+ lib/desired-column-alias: TOTAL
+ lib/original-display-name: Total
+ lib/original-name: TOTAL
+ lib/source: source/table-defaults
+ lib/source-column-alias: TOTAL
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Tax
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ name: TAX
+ position: 4
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: TAX
+ lib/desired-column-alias: TAX
+ lib/original-display-name: Tax
+ lib/original-name: TAX
+ lib/source: source/table-defaults
+ lib/source-column-alias: TAX
+- base_type: type/Float
+ display_name: Profit
+ effective_type: type/Float
+ field_ref:
+ - expression
+ - Profit
+ name: Profit
+ source: fields
+ lib/deduplicated-name: Profit
+ lib/desired-column-alias: Profit
+ lib/expression-name: Profit
+ lib/original-name: Profit
+ lib/source: source/expressions
+ lib/source-column-alias: Profit
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: fLdExPr3sS10nS0ExAmPl
+ label: fields_and_expressions
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/geographic_filter__inside_.yaml b/test_resources/serialization_baseline/collections/main/queries/geographic_filter__inside_.yaml
new file mode 100644
index 00000000000..b1c1759957b
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/geographic_filter__inside_.yaml
@@ -0,0 +1,445 @@
+name: Geographic Filter (Inside)
+entity_id: bK64P6yr9_Nx-A8S3PqOZ
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: map
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- PEOPLE
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - filters:
+ - - inside
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LATITUDE
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LONGITUDE
+ - 40.8
+ - -74.1
+ - 40.6
+ - -73.9
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/BigInteger
+ database_type: BIGINT
+ display_name: ID
+ effective_type: type/BigInteger
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ID
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ID
+ name: ID
+ position: 0
+ semantic_type: type/PK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: ID
+ lib/desired-column-alias: ID
+ lib/original-display-name: ID
+ lib/original-name: ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Address
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ADDRESS
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ADDRESS
+ name: ADDRESS
+ position: 1
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: ADDRESS
+ lib/desired-column-alias: ADDRESS
+ lib/original-display-name: Address
+ lib/original-name: ADDRESS
+ lib/source: source/table-defaults
+ lib/source-column-alias: ADDRESS
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Email
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - EMAIL
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - EMAIL
+ name: EMAIL
+ position: 2
+ semantic_type: type/Email
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: EMAIL
+ lib/desired-column-alias: EMAIL
+ lib/original-display-name: Email
+ lib/original-name: EMAIL
+ lib/source: source/table-defaults
+ lib/source-column-alias: EMAIL
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Password
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - PASSWORD
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - PASSWORD
+ name: PASSWORD
+ position: 3
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: PASSWORD
+ lib/desired-column-alias: PASSWORD
+ lib/original-display-name: Password
+ lib/original-name: PASSWORD
+ lib/source: source/table-defaults
+ lib/source-column-alias: PASSWORD
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Name
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - NAME
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - NAME
+ name: NAME
+ position: 4
+ semantic_type: type/Name
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: NAME
+ lib/desired-column-alias: NAME
+ lib/original-display-name: Name
+ lib/original-name: NAME
+ lib/source: source/table-defaults
+ lib/source-column-alias: NAME
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: City
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - CITY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - CITY
+ name: CITY
+ position: 5
+ semantic_type: type/City
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: CITY
+ lib/desired-column-alias: CITY
+ lib/original-display-name: City
+ lib/original-name: CITY
+ lib/source: source/table-defaults
+ lib/source-column-alias: CITY
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Longitude
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LONGITUDE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LONGITUDE
+ name: LONGITUDE
+ position: 6
+ semantic_type: type/Longitude
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: LONGITUDE
+ lib/desired-column-alias: LONGITUDE
+ lib/original-display-name: Longitude
+ lib/original-name: LONGITUDE
+ lib/source: source/table-defaults
+ lib/source-column-alias: LONGITUDE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: State
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - STATE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - STATE
+ name: STATE
+ position: 7
+ semantic_type: type/State
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: STATE
+ lib/desired-column-alias: STATE
+ lib/original-display-name: State
+ lib/original-name: STATE
+ lib/source: source/table-defaults
+ lib/source-column-alias: STATE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Source
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - SOURCE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - SOURCE
+ name: SOURCE
+ position: 8
+ semantic_type: type/Source
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: SOURCE
+ lib/desired-column-alias: SOURCE
+ lib/original-display-name: Source
+ lib/original-name: SOURCE
+ lib/source: source/table-defaults
+ lib/source-column-alias: SOURCE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Zip
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ZIP
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ZIP
+ name: ZIP
+ position: 10
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: ZIP
+ lib/desired-column-alias: ZIP
+ lib/original-display-name: Zip
+ lib/original-name: ZIP
+ lib/source: source/table-defaults
+ lib/source-column-alias: ZIP
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Latitude
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LATITUDE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LATITUDE
+ name: LATITUDE
+ position: 11
+ semantic_type: type/Latitude
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: LATITUDE
+ lib/desired-column-alias: LATITUDE
+ lib/original-display-name: Latitude
+ lib/original-name: LATITUDE
+ lib/source: source/table-defaults
+ lib/source-column-alias: LATITUDE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: Created At
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - CREATED_AT
+ name: CREATED_AT
+ position: 12
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: bK64P6yr9_Nx-A8S3PqOZ
+ label: geographic_filter__inside_
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/joins___strategies_and_compound_conditions.yaml b/test_resources/serialization_baseline/collections/main/queries/joins___strategies_and_compound_conditions.yaml
new file mode 100644
index 00000000000..6539e4fed84
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/joins___strategies_and_compound_conditions.yaml
@@ -0,0 +1,679 @@
+name: Joins - Strategies and Compound Conditions
+entity_id: wpW9JO5MsHQd0-7WrR7gN
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - joins:
+ - alias: Products
+ conditions:
+ - - =
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ fields: all
+ stages:
+ - source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ strategy: left-join
+ lib/type: mbql/join
+ - alias: People
+ conditions:
+ - - =
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ID
+ fields:
+ - - field
+ - join-alias: People
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - NAME
+ - - field
+ - join-alias: People
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - STATE
+ stages:
+ - source-table:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ lib/type: mbql.stage/mbql
+ strategy: inner-join
+ lib/type: mbql/join
+ - alias: GoodReviews
+ conditions:
+ - - and
+ - {}
+ - - =
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - REVIEWS
+ - PRODUCT_ID
+ - - '>='
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - REVIEWS
+ - RATING
+ - 4
+ fields: none
+ stages:
+ - source-table:
+ - Sample Database
+ - PUBLIC
+ - REVIEWS
+ lib/type: mbql.stage/mbql
+ strategy: left-join
+ lib/type: mbql/join
+ limit: 10
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: User ID
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ - null
+ fk_target_field_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ID
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ name: USER_ID
+ position: 1
+ semantic_type: type/FK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: USER_ID
+ lib/desired-column-alias: USER_ID
+ lib/original-display-name: User ID
+ lib/original-name: USER_ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: USER_ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: Product ID
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ - null
+ fk_target_field_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ name: PRODUCT_ID
+ position: 2
+ semantic_type: type/FK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: PRODUCT_ID
+ lib/desired-column-alias: PRODUCT_ID
+ lib/original-display-name: Product ID
+ lib/original-name: PRODUCT_ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: PRODUCT_ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Tax
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ name: TAX
+ position: 4
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: TAX
+ lib/desired-column-alias: TAX
+ lib/original-display-name: Tax
+ lib/original-name: TAX
+ lib/source: source/table-defaults
+ lib/source-column-alias: TAX
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Total
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ name: TOTAL
+ position: 5
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: TOTAL
+ lib/desired-column-alias: TOTAL
+ lib/original-display-name: Total
+ lib/original-name: TOTAL
+ lib/source: source/table-defaults
+ lib/source-column-alias: TOTAL
+ qp/implicit-field?: true
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: Created At
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: Quantity
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - QUANTITY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - QUANTITY
+ name: QUANTITY
+ position: 8
+ semantic_type: type/Quantity
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: QUANTITY
+ lib/desired-column-alias: QUANTITY
+ lib/original-display-name: Quantity
+ lib/original-name: QUANTITY
+ lib/source: source/table-defaults
+ lib/source-column-alias: QUANTITY
+ qp/implicit-field?: true
+- active: true
+ base_type: type/BigInteger
+ database_type: BIGINT
+ display_name: Products → ID
+ effective_type: type/BigInteger
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ - join-alias: Products
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ name: ID
+ options:
+ qp/ignore-coercion: true
+ position: 0
+ semantic_type: type/PK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/breakout?: false
+ lib/deduplicated-name: ID
+ lib/desired-column-alias: Products__ID
+ lib/join-alias: Products
+ lib/original-display-name: ID
+ lib/original-join-alias: Products
+ lib/original-name: ID
+ lib/source: source/joins
+ lib/source-column-alias: ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Products → Ean
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ - join-alias: Products
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ name: EAN
+ options:
+ qp/ignore-coercion: true
+ position: 1
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/breakout?: false
+ lib/deduplicated-name: EAN
+ lib/desired-column-alias: Products__EAN
+ lib/join-alias: Products
+ lib/original-display-name: Ean
+ lib/original-join-alias: Products
+ lib/original-name: EAN
+ lib/source: source/joins
+ lib/source-column-alias: EAN
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Products → Title
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - join-alias: Products
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ name: TITLE
+ options:
+ qp/ignore-coercion: true
+ position: 2
+ semantic_type: type/Title
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/breakout?: false
+ lib/deduplicated-name: TITLE
+ lib/desired-column-alias: Products__TITLE
+ lib/join-alias: Products
+ lib/original-display-name: Title
+ lib/original-join-alias: Products
+ lib/original-name: TITLE
+ lib/source: source/joins
+ lib/source-column-alias: TITLE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Products → Category
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - join-alias: Products
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ name: CATEGORY
+ options:
+ qp/ignore-coercion: true
+ position: 3
+ semantic_type: type/Category
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/breakout?: false
+ lib/deduplicated-name: CATEGORY
+ lib/desired-column-alias: Products__CATEGORY
+ lib/join-alias: Products
+ lib/original-display-name: Category
+ lib/original-join-alias: Products
+ lib/original-name: CATEGORY
+ lib/source: source/joins
+ lib/source-column-alias: CATEGORY
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Products → Vendor
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ - join-alias: Products
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ name: VENDOR
+ options:
+ qp/ignore-coercion: true
+ position: 4
+ semantic_type: type/Company
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/breakout?: false
+ lib/deduplicated-name: VENDOR
+ lib/desired-column-alias: Products__VENDOR
+ lib/join-alias: Products
+ lib/original-display-name: Vendor
+ lib/original-join-alias: Products
+ lib/original-name: VENDOR
+ lib/source: source/joins
+ lib/source-column-alias: VENDOR
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Products → Price
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - join-alias: Products
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ name: PRICE
+ options:
+ qp/ignore-coercion: true
+ position: 5
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/breakout?: false
+ lib/deduplicated-name: PRICE
+ lib/desired-column-alias: Products__PRICE
+ lib/join-alias: Products
+ lib/original-display-name: Price
+ lib/original-join-alias: Products
+ lib/original-name: PRICE
+ lib/source: source/joins
+ lib/source-column-alias: PRICE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Products → Rating
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - join-alias: Products
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ name: RATING
+ options:
+ qp/ignore-coercion: true
+ position: 6
+ semantic_type: type/Score
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/breakout?: false
+ lib/deduplicated-name: RATING
+ lib/desired-column-alias: Products__RATING
+ lib/join-alias: Products
+ lib/original-display-name: Rating
+ lib/original-join-alias: Products
+ lib/original-name: RATING
+ lib/source: source/joins
+ lib/source-column-alias: RATING
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: People → Name
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - NAME
+ - join-alias: People
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - NAME
+ name: NAME
+ options:
+ qp/ignore-coercion: true
+ position: 4
+ semantic_type: type/Name
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/breakout?: false
+ lib/deduplicated-name: NAME
+ lib/desired-column-alias: People__NAME
+ lib/join-alias: People
+ lib/original-display-name: Name
+ lib/original-join-alias: People
+ lib/original-name: NAME
+ lib/source: source/joins
+ lib/source-column-alias: NAME
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: People → State
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - STATE
+ - join-alias: People
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - STATE
+ name: STATE
+ options:
+ qp/ignore-coercion: true
+ position: 7
+ semantic_type: type/State
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/breakout?: false
+ lib/deduplicated-name: STATE
+ lib/desired-column-alias: People__STATE
+ lib/join-alias: People
+ lib/original-display-name: State
+ lib/original-join-alias: People
+ lib/original-name: STATE
+ lib/source: source/joins
+ lib/source-column-alias: STATE
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: wpW9JO5MsHQd0-7WrR7gN
+ label: joins___strategies_and_compound_conditions
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/math_functions.yaml b/test_resources/serialization_baseline/collections/main/queries/math_functions.yaml
new file mode 100644
index 00000000000..7ab92edad28
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/math_functions.yaml
@@ -0,0 +1,485 @@
+name: Math Functions
+entity_id: jPrM-oh3r1BR42xSs4Ipj
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - expressions:
+ - - abs
+ - lib/expression-name: Absolute Discount
+ - - '-'
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - 50
+ - - ceil
+ - lib/expression-name: Price Ceiling
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - - floor
+ - lib/expression-name: Price Floor
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - - round
+ - lib/expression-name: Rounded Price
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - - power
+ - lib/expression-name: Rating Squared
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - 2
+ - - sqrt
+ - lib/expression-name: Price Sqrt
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - - exp
+ - lib/expression-name: Price Exp
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - - log
+ - lib/expression-name: Price Log
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ limit: 10
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/BigInteger
+ database_type: BIGINT
+ display_name: ID
+ effective_type: type/BigInteger
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ name: ID
+ position: 0
+ semantic_type: type/PK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: ID
+ lib/desired-column-alias: ID
+ lib/original-display-name: ID
+ lib/original-name: ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Ean
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ name: EAN
+ position: 1
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: EAN
+ lib/desired-column-alias: EAN
+ lib/original-display-name: Ean
+ lib/original-name: EAN
+ lib/source: source/table-defaults
+ lib/source-column-alias: EAN
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Title
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ name: TITLE
+ position: 2
+ semantic_type: type/Title
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: TITLE
+ lib/desired-column-alias: TITLE
+ lib/original-display-name: Title
+ lib/original-name: TITLE
+ lib/source: source/table-defaults
+ lib/source-column-alias: TITLE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Category
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ name: CATEGORY
+ position: 3
+ semantic_type: type/Category
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: CATEGORY
+ lib/desired-column-alias: CATEGORY
+ lib/original-display-name: Category
+ lib/original-name: CATEGORY
+ lib/source: source/table-defaults
+ lib/source-column-alias: CATEGORY
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Vendor
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ name: VENDOR
+ position: 4
+ semantic_type: type/Company
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: VENDOR
+ lib/desired-column-alias: VENDOR
+ lib/original-display-name: Vendor
+ lib/original-name: VENDOR
+ lib/source: source/table-defaults
+ lib/source-column-alias: VENDOR
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Price
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ name: PRICE
+ position: 5
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: PRICE
+ lib/desired-column-alias: PRICE
+ lib/original-display-name: Price
+ lib/original-name: PRICE
+ lib/source: source/table-defaults
+ lib/source-column-alias: PRICE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Rating
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ name: RATING
+ position: 6
+ semantic_type: type/Score
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: RATING
+ lib/desired-column-alias: RATING
+ lib/original-display-name: Rating
+ lib/original-name: RATING
+ lib/source: source/table-defaults
+ lib/source-column-alias: RATING
+ qp/implicit-field?: true
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: Created At
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CREATED_AT
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ qp/implicit-field?: true
+- base_type: type/Float
+ display_name: Absolute Discount
+ effective_type: type/Float
+ field_ref:
+ - expression
+ - Absolute Discount
+ name: Absolute Discount
+ source: fields
+ lib/deduplicated-name: Absolute Discount
+ lib/desired-column-alias: Absolute Discount
+ lib/expression-name: Absolute Discount
+ lib/original-name: Absolute Discount
+ lib/source: source/expressions
+ lib/source-column-alias: Absolute Discount
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Price Ceiling
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Price Ceiling
+ name: Price Ceiling
+ source: fields
+ lib/deduplicated-name: Price Ceiling
+ lib/desired-column-alias: Price Ceiling
+ lib/expression-name: Price Ceiling
+ lib/original-name: Price Ceiling
+ lib/source: source/expressions
+ lib/source-column-alias: Price Ceiling
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Price Floor
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Price Floor
+ name: Price Floor
+ source: fields
+ lib/deduplicated-name: Price Floor
+ lib/desired-column-alias: Price Floor
+ lib/expression-name: Price Floor
+ lib/original-name: Price Floor
+ lib/source: source/expressions
+ lib/source-column-alias: Price Floor
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Rounded Price
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Rounded Price
+ name: Rounded Price
+ source: fields
+ lib/deduplicated-name: Rounded Price
+ lib/desired-column-alias: Rounded Price
+ lib/expression-name: Rounded Price
+ lib/original-name: Rounded Price
+ lib/source: source/expressions
+ lib/source-column-alias: Rounded Price
+ qp/implicit-field?: true
+- base_type: type/Float
+ display_name: Rating Squared
+ effective_type: type/Float
+ field_ref:
+ - expression
+ - Rating Squared
+ name: Rating Squared
+ source: fields
+ lib/deduplicated-name: Rating Squared
+ lib/desired-column-alias: Rating Squared
+ lib/expression-name: Rating Squared
+ lib/original-name: Rating Squared
+ lib/source: source/expressions
+ lib/source-column-alias: Rating Squared
+ qp/implicit-field?: true
+- base_type: type/Float
+ display_name: Price Sqrt
+ effective_type: type/Float
+ field_ref:
+ - expression
+ - Price Sqrt
+ name: Price Sqrt
+ source: fields
+ lib/deduplicated-name: Price Sqrt
+ lib/desired-column-alias: Price Sqrt
+ lib/expression-name: Price Sqrt
+ lib/original-name: Price Sqrt
+ lib/source: source/expressions
+ lib/source-column-alias: Price Sqrt
+ qp/implicit-field?: true
+- base_type: type/Float
+ display_name: Price Exp
+ effective_type: type/Float
+ field_ref:
+ - expression
+ - Price Exp
+ name: Price Exp
+ source: fields
+ lib/deduplicated-name: Price Exp
+ lib/desired-column-alias: Price Exp
+ lib/expression-name: Price Exp
+ lib/original-name: Price Exp
+ lib/source: source/expressions
+ lib/source-column-alias: Price Exp
+ qp/implicit-field?: true
+- base_type: type/Float
+ display_name: Price Log
+ effective_type: type/Float
+ field_ref:
+ - expression
+ - Price Log
+ name: Price Log
+ source: fields
+ lib/deduplicated-name: Price Log
+ lib/desired-column-alias: Price Log
+ lib/expression-name: Price Log
+ lib/original-name: Price Log
+ lib/source: source/expressions
+ lib/source-column-alias: Price Log
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: jPrM-oh3r1BR42xSs4Ipj
+ label: math_functions
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/metric__measure__and_segment_references.yaml b/test_resources/serialization_baseline/collections/main/queries/metric__measure__and_segment_references.yaml
new file mode 100644
index 00000000000..8e24c326406
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/metric__measure__and_segment_references.yaml
@@ -0,0 +1,71 @@
+name: Metric, Measure, and Segment References
+entity_id: kBjQ5VXJ5z3vYSW72J6qa
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - metric
+ - {}
+ - IW8kbqZVaMxdGtCM2F4U6
+ - - measure
+ - {}
+ - DBap2523KuN4Lt-cYrUjF
+ filters:
+ - - segment
+ - {}
+ - OaFXAvEzPvu9ZXW5PUMRa
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- base_type: type/Float
+ display_name: Sum of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 0
+ name: sum
+ source: aggregation
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+- base_type: type/Integer
+ display_name: Count
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 1
+ name: count
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: count
+ lib/desired-column-alias: count
+ lib/original-name: count
+ lib/source: source/aggregations
+ lib/source-column-alias: count
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: kBjQ5VXJ5z3vYSW72J6qa
+ label: metric__measure__and_segment_references
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/native_query___card_and_snippet_references.yaml b/test_resources/serialization_baseline/collections/main/queries/native_query___card_and_snippet_references.yaml
new file mode 100644
index 00000000000..8158c41b90b
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/native_query___card_and_snippet_references.yaml
@@ -0,0 +1,44 @@
+name: Native Query - Card and Snippet References
+entity_id: HiBFSt0BNx5s5MxVDLLKB
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: native
+database_id: Sample Database
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - native: |-
+ SELECT *
+ FROM {{#1-basic_aggregations}}
+ WHERE {{snippet: Active Product Filter}}
+ ORDER BY "count" DESC
+ LIMIT 10
+ template-tags:
+ '#1-basic_aggregations':
+ card-id: h5F2EjHsRd73Dqqh8sAtd
+ display-name: Basic Aggregations
+ id: cc000001-0000-0000-0000-000000000001
+ name: '#1-basic_aggregations'
+ type: card
+ 'snippet: Active Product Filter':
+ display-name: 'Snippet: Active Product Filter'
+ id: cc000002-0000-0000-0000-000000000002
+ name: 'snippet: Active Product Filter'
+ snippet-id: WyQWnT23PF-SfbYLROllJ
+ snippet-name: Active Product Filter
+ type: snippet
+ lib/type: mbql.stage/native
+ lib/type: mbql/query
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: HiBFSt0BNx5s5MxVDLLKB
+ label: native_query___card_and_snippet_references
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/native_query___field_filter_and_temporal_unit.yaml b/test_resources/serialization_baseline/collections/main/queries/native_query___field_filter_and_temporal_unit.yaml
new file mode 100644
index 00000000000..46efd41239e
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/native_query___field_filter_and_temporal_unit.yaml
@@ -0,0 +1,72 @@
+name: Native Query - Field Filter and Temporal Unit
+entity_id: sk02d7sPWAk2TYH2Y7JhZ
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: line
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: native
+database_id: Sample Database
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - native: |-
+ SELECT {{created_at}} AS period, PRODUCTS.CATEGORY, COUNT(*) AS cnt
+ FROM ORDERS
+ JOIN PRODUCTS ON ORDERS.PRODUCT_ID = PRODUCTS.ID
+ WHERE {{category_filter}}
+ AND {{date_filter}}
+ GROUP BY {{created_at}}, PRODUCTS.CATEGORY
+ template-tags:
+ category_filter:
+ dimension:
+ - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ display-name: Category
+ id: bb000001-0000-0000-0000-000000000001
+ name: category_filter
+ type: dimension
+ widget-type: string/=
+ created_at:
+ default: month
+ dimension:
+ - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ display-name: Group By
+ id: bb000003-0000-0000-0000-000000000003
+ name: created_at
+ sectionid: date
+ type: temporal-unit
+ date_filter:
+ dimension:
+ - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ display-name: Order Date
+ id: bb000002-0000-0000-0000-000000000002
+ name: date_filter
+ type: dimension
+ widget-type: date/range
+ lib/type: mbql.stage/native
+ lib/type: mbql/query
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: sk02d7sPWAk2TYH2Y7JhZ
+ label: native_query___field_filter_and_temporal_unit
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/native_query___variables.yaml b/test_resources/serialization_baseline/collections/main/queries/native_query___variables.yaml
new file mode 100644
index 00000000000..db29bded0cf
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/native_query___variables.yaml
@@ -0,0 +1,60 @@
+name: Native Query - Variables
+entity_id: 2u10n8GV6u0LFYrq8yV5p
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: native
+database_id: Sample Database
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - native: |-
+ SELECT *
+ FROM ORDERS
+ WHERE TOTAL > {{min_total}}
+ AND CREATED_AT > {{after_date}}
+ AND USER_ID = {{user_id}}
+ AND {{is_active}}
+ template-tags:
+ after_date:
+ default: '2024-01-01'
+ display-name: After Date
+ id: aa000002-0000-0000-0000-000000000002
+ name: after_date
+ sectionid: date
+ type: date
+ is_active:
+ default: true
+ display-name: Is Active
+ id: aa000004-0000-0000-0000-000000000004
+ name: is_active
+ sectionid: boolean
+ type: boolean
+ min_total:
+ default: 50
+ display-name: Minimum Total
+ id: aa000001-0000-0000-0000-000000000001
+ name: min_total
+ required: true
+ sectionid: number
+ type: number
+ user_id:
+ default: '1'
+ display-name: User ID
+ id: aa000003-0000-0000-0000-000000000003
+ name: user_id
+ type: text
+ lib/type: mbql.stage/native
+ lib/type: mbql/query
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: 2u10n8GV6u0LFYrq8yV5p
+ label: native_query___variables
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/nested_query.yaml b/test_resources/serialization_baseline/collections/main/queries/nested_query.yaml
new file mode 100644
index 00000000000..1625a198a83
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/nested_query.yaml
@@ -0,0 +1,140 @@
+name: Nested Query
+entity_id: 1t9TE-8T-AlaM19nx3yQV
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - count
+ - {}
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ breakout:
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ - filters:
+ - - '>'
+ - {}
+ - - field
+ - base-type: type/Integer
+ lib/uuid: 95bea6bf-64d4-4603-b47d-437d22bf6cab
+ - count
+ - 5
+ limit: 20
+ order-by:
+ - - desc
+ - {}
+ - - field
+ - base-type: type/Float
+ lib/uuid: 4726a0dd-12b3-4721-8941-c2ec9510dac1
+ - sum
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: User ID
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ - null
+ fk_target_field_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ID
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ name: USER_ID
+ position: 1
+ semantic_type: type/FK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/breakout?: false
+ lib/deduplicated-name: USER_ID
+ lib/desired-column-alias: USER_ID
+ lib/original-display-name: User ID
+ lib/original-name: USER_ID
+ lib/source: source/previous-stage
+ lib/source-column-alias: USER_ID
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Count
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - count
+ - base-type: type/Integer
+ name: count
+ semantic_type: type/Quantity
+ source: fields
+ lib/breakout?: false
+ lib/deduplicated-name: count
+ lib/desired-column-alias: count
+ lib/original-name: count
+ lib/source: source/previous-stage
+ lib/source-column-alias: count
+ qp/implicit-field?: true
+- base_type: type/Float
+ display_name: Sum of Total
+ effective_type: type/Float
+ field_ref:
+ - field
+ - sum
+ - base-type: type/Float
+ name: sum
+ source: fields
+ lib/breakout?: false
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/previous-stage
+ lib/source-column-alias: sum
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: 1t9TE-8T-AlaM19nx3yQV
+ label: nested_query
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/null__empty__and_string_filters.yaml b/test_resources/serialization_baseline/collections/main/queries/null__empty__and_string_filters.yaml
new file mode 100644
index 00000000000..dc4455c8d5f
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/null__empty__and_string_filters.yaml
@@ -0,0 +1,433 @@
+name: Null, Empty, and String Filters
+entity_id: ZvHEBpdFQ-VSvem16KCkL
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - filters:
+ - - not-null
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - - not-empty
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ - - is-empty
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ - - contains
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - widget
+ - - contains
+ - case-sensitive: false
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - gadget
+ - - contains
+ - case-sensitive: false
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - widget
+ - gadget
+ - - does-not-contain
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ - LLC
+ - - does-not-contain
+ - case-sensitive: false
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ - inc
+ - - does-not-contain
+ - case-sensitive: true
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ - LLC
+ - Corp
+ - - starts-with
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - Awesome
+ - - starts-with
+ - case-sensitive: false
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - awesome
+ - - starts-with
+ - case-sensitive: false
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - Awesome
+ - Incredible
+ - - ends-with
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ - '0'
+ - - ends-with
+ - case-sensitive: false
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ - '9'
+ - - ends-with
+ - case-sensitive: true
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ - '0'
+ - '5'
+ limit: 20
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/BigInteger
+ database_type: BIGINT
+ display_name: ID
+ effective_type: type/BigInteger
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ name: ID
+ position: 0
+ semantic_type: type/PK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: ID
+ lib/desired-column-alias: ID
+ lib/original-display-name: ID
+ lib/original-name: ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Ean
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ name: EAN
+ position: 1
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: EAN
+ lib/desired-column-alias: EAN
+ lib/original-display-name: Ean
+ lib/original-name: EAN
+ lib/source: source/table-defaults
+ lib/source-column-alias: EAN
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Title
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ name: TITLE
+ position: 2
+ semantic_type: type/Title
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: TITLE
+ lib/desired-column-alias: TITLE
+ lib/original-display-name: Title
+ lib/original-name: TITLE
+ lib/source: source/table-defaults
+ lib/source-column-alias: TITLE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Category
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ name: CATEGORY
+ position: 3
+ semantic_type: type/Category
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: CATEGORY
+ lib/desired-column-alias: CATEGORY
+ lib/original-display-name: Category
+ lib/original-name: CATEGORY
+ lib/source: source/table-defaults
+ lib/source-column-alias: CATEGORY
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Vendor
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ name: VENDOR
+ position: 4
+ semantic_type: type/Company
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: VENDOR
+ lib/desired-column-alias: VENDOR
+ lib/original-display-name: Vendor
+ lib/original-name: VENDOR
+ lib/source: source/table-defaults
+ lib/source-column-alias: VENDOR
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Price
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ name: PRICE
+ position: 5
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: PRICE
+ lib/desired-column-alias: PRICE
+ lib/original-display-name: Price
+ lib/original-name: PRICE
+ lib/source: source/table-defaults
+ lib/source-column-alias: PRICE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Rating
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ name: RATING
+ position: 6
+ semantic_type: type/Score
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: RATING
+ lib/desired-column-alias: RATING
+ lib/original-display-name: Rating
+ lib/original-name: RATING
+ lib/source: source/table-defaults
+ lib/source-column-alias: RATING
+ qp/implicit-field?: true
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: Created At
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CREATED_AT
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: ZvHEBpdFQ-VSvem16KCkL
+ label: null__empty__and_string_filters
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/source_card_reference.yaml b/test_resources/serialization_baseline/collections/main/queries/source_card_reference.yaml
new file mode 100644
index 00000000000..22aa80754de
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/source_card_reference.yaml
@@ -0,0 +1,222 @@
+name: Source Card Reference
+entity_id: gt4OaWYAuDWRHn5Irnd4h
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - filters:
+ - - '>'
+ - {}
+ - - field
+ - base-type: type/Integer
+ lib/uuid: d32f8053-f5b8-4e94-8768-32eb7b5a576f
+ - count
+ - 100
+ order-by:
+ - - desc
+ - {}
+ - - field
+ - base-type: type/Integer
+ lib/uuid: c7c318b1-34bb-488a-bc9a-8e8ccd476336
+ - count
+ source-card: h5F2EjHsRd73Dqqh8sAtd
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: 'Created At: Month'
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ inherited_temporal_unit: month
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ unit: month
+ visibility_type: normal
+ lib/breakout?: false
+ lib/card-id: 5
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/previous-stage
+ lib/source-column-alias: CREATED_AT
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Count
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - count
+ - base-type: type/Integer
+ name: count
+ semantic_type: type/Quantity
+ source: fields
+ lib/breakout?: false
+ lib/card-id: 5
+ lib/deduplicated-name: count
+ lib/desired-column-alias: count
+ lib/original-name: count
+ lib/source: source/previous-stage
+ lib/source-column-alias: count
+ qp/implicit-field?: true
+- base_type: type/Float
+ display_name: Sum of Total
+ effective_type: type/Float
+ field_ref:
+ - field
+ - sum
+ - base-type: type/Float
+ name: sum
+ source: fields
+ lib/breakout?: false
+ lib/card-id: 5
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/previous-stage
+ lib/source-column-alias: sum
+ qp/implicit-field?: true
+- base_type: type/Float
+ display_name: Average of Total
+ effective_type: type/Float
+ field_ref:
+ - field
+ - avg
+ - base-type: type/Float
+ name: avg
+ source: fields
+ lib/breakout?: false
+ lib/card-id: 5
+ lib/deduplicated-name: avg
+ lib/desired-column-alias: avg
+ lib/original-name: avg
+ lib/source: source/previous-stage
+ lib/source-column-alias: avg
+ qp/implicit-field?: true
+- base_type: type/Float
+ display_name: Min of Total
+ effective_type: type/Float
+ field_ref:
+ - field
+ - min
+ - base-type: type/Float
+ name: min
+ source: fields
+ lib/breakout?: false
+ lib/card-id: 5
+ lib/deduplicated-name: min
+ lib/desired-column-alias: min
+ lib/original-name: min
+ lib/source: source/previous-stage
+ lib/source-column-alias: min
+ qp/implicit-field?: true
+- base_type: type/Float
+ display_name: Max of Total
+ effective_type: type/Float
+ field_ref:
+ - field
+ - max
+ - base-type: type/Float
+ name: max
+ source: fields
+ lib/breakout?: false
+ lib/card-id: 5
+ lib/deduplicated-name: max
+ lib/desired-column-alias: max
+ lib/original-name: max
+ lib/source: source/previous-stage
+ lib/source-column-alias: max
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Count of Product ID
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - count_2
+ - base-type: type/Integer
+ name: count_2
+ semantic_type: type/Quantity
+ source: fields
+ lib/breakout?: false
+ lib/card-id: 5
+ lib/deduplicated-name: count_2
+ lib/desired-column-alias: count_2
+ lib/original-name: count
+ lib/source: source/previous-stage
+ lib/source-column-alias: count_2
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Distinct values of Product ID
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - count_3
+ - base-type: type/Integer
+ name: count_3
+ semantic_type: type/Quantity
+ source: fields
+ lib/breakout?: false
+ lib/card-id: 5
+ lib/deduplicated-name: count_3
+ lib/desired-column-alias: count_3
+ lib/original-name: count
+ lib/source: source/previous-stage
+ lib/source-column-alias: count_3
+ qp/implicit-field?: true
+- base_type: type/Float
+ display_name: Total Revenue
+ effective_type: type/Float
+ field_ref:
+ - field
+ - total_revenue
+ - base-type: type/Float
+ name: total_revenue
+ source: fields
+ lib/breakout?: false
+ lib/card-id: 5
+ lib/deduplicated-name: total_revenue
+ lib/desired-column-alias: total_revenue
+ lib/original-name: total_revenue
+ lib/source: source/previous-stage
+ lib/source-column-alias: total_revenue
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: gt4OaWYAuDWRHn5Irnd4h
+ label: source_card_reference
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+source_card_id: h5F2EjHsRd73Dqqh8sAtd
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/string_functions.yaml b/test_resources/serialization_baseline/collections/main/queries/string_functions.yaml
new file mode 100644
index 00000000000..96e45b7c7fa
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/string_functions.yaml
@@ -0,0 +1,564 @@
+name: String Functions
+entity_id: HeLFZSVb4Jm25p4tWfVP9
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - expressions:
+ - - concat
+ - lib/expression-name: Title and Category
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - ' ('
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - )
+ - - substring
+ - lib/expression-name: First 10 Chars
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - 1
+ - 10
+ - - replace
+ - lib/expression-name: Cleaned Vendor
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ - Inc.
+ - Incorporated
+ - - regex-match-first
+ - lib/expression-name: EAN Prefix
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ - ^\d{3}
+ - - trim
+ - lib/expression-name: Trimmed Title
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - - ltrim
+ - lib/expression-name: Left Trimmed
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - - rtrim
+ - lib/expression-name: Right Trimmed
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - - upper
+ - lib/expression-name: Upper Category
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - - lower
+ - lib/expression-name: Lower Title
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - - length
+ - lib/expression-name: Title Length
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - - substring
+ - lib/expression-name: Title From 5th Char
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - 5
+ limit: 10
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/BigInteger
+ database_type: BIGINT
+ display_name: ID
+ effective_type: type/BigInteger
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ name: ID
+ position: 0
+ semantic_type: type/PK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: ID
+ lib/desired-column-alias: ID
+ lib/original-display-name: ID
+ lib/original-name: ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Ean
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ name: EAN
+ position: 1
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: EAN
+ lib/desired-column-alias: EAN
+ lib/original-display-name: Ean
+ lib/original-name: EAN
+ lib/source: source/table-defaults
+ lib/source-column-alias: EAN
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Title
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ name: TITLE
+ position: 2
+ semantic_type: type/Title
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: TITLE
+ lib/desired-column-alias: TITLE
+ lib/original-display-name: Title
+ lib/original-name: TITLE
+ lib/source: source/table-defaults
+ lib/source-column-alias: TITLE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Category
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ name: CATEGORY
+ position: 3
+ semantic_type: type/Category
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: CATEGORY
+ lib/desired-column-alias: CATEGORY
+ lib/original-display-name: Category
+ lib/original-name: CATEGORY
+ lib/source: source/table-defaults
+ lib/source-column-alias: CATEGORY
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Vendor
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ name: VENDOR
+ position: 4
+ semantic_type: type/Company
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: VENDOR
+ lib/desired-column-alias: VENDOR
+ lib/original-display-name: Vendor
+ lib/original-name: VENDOR
+ lib/source: source/table-defaults
+ lib/source-column-alias: VENDOR
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Price
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ name: PRICE
+ position: 5
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: PRICE
+ lib/desired-column-alias: PRICE
+ lib/original-display-name: Price
+ lib/original-name: PRICE
+ lib/source: source/table-defaults
+ lib/source-column-alias: PRICE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Rating
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ name: RATING
+ position: 6
+ semantic_type: type/Score
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: RATING
+ lib/desired-column-alias: RATING
+ lib/original-display-name: Rating
+ lib/original-name: RATING
+ lib/source: source/table-defaults
+ lib/source-column-alias: RATING
+ qp/implicit-field?: true
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: Created At
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CREATED_AT
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Title and Category
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Title and Category
+ name: Title and Category
+ source: fields
+ lib/deduplicated-name: Title and Category
+ lib/desired-column-alias: Title and Category
+ lib/expression-name: Title and Category
+ lib/original-name: Title and Category
+ lib/source: source/expressions
+ lib/source-column-alias: Title and Category
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: First 10 Chars
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - First 10 Chars
+ name: First 10 Chars
+ source: fields
+ lib/deduplicated-name: First 10 Chars
+ lib/desired-column-alias: First 10 Chars
+ lib/expression-name: First 10 Chars
+ lib/original-name: First 10 Chars
+ lib/source: source/expressions
+ lib/source-column-alias: First 10 Chars
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Cleaned Vendor
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Cleaned Vendor
+ name: Cleaned Vendor
+ source: fields
+ lib/deduplicated-name: Cleaned Vendor
+ lib/desired-column-alias: Cleaned Vendor
+ lib/expression-name: Cleaned Vendor
+ lib/original-name: Cleaned Vendor
+ lib/source: source/expressions
+ lib/source-column-alias: Cleaned Vendor
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: EAN Prefix
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - EAN Prefix
+ name: EAN Prefix
+ source: fields
+ lib/deduplicated-name: EAN Prefix
+ lib/desired-column-alias: EAN Prefix
+ lib/expression-name: EAN Prefix
+ lib/original-name: EAN Prefix
+ lib/source: source/expressions
+ lib/source-column-alias: EAN Prefix
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Trimmed Title
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Trimmed Title
+ name: Trimmed Title
+ source: fields
+ lib/deduplicated-name: Trimmed Title
+ lib/desired-column-alias: Trimmed Title
+ lib/expression-name: Trimmed Title
+ lib/original-name: Trimmed Title
+ lib/source: source/expressions
+ lib/source-column-alias: Trimmed Title
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Left Trimmed
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Left Trimmed
+ name: Left Trimmed
+ source: fields
+ lib/deduplicated-name: Left Trimmed
+ lib/desired-column-alias: Left Trimmed
+ lib/expression-name: Left Trimmed
+ lib/original-name: Left Trimmed
+ lib/source: source/expressions
+ lib/source-column-alias: Left Trimmed
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Right Trimmed
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Right Trimmed
+ name: Right Trimmed
+ source: fields
+ lib/deduplicated-name: Right Trimmed
+ lib/desired-column-alias: Right Trimmed
+ lib/expression-name: Right Trimmed
+ lib/original-name: Right Trimmed
+ lib/source: source/expressions
+ lib/source-column-alias: Right Trimmed
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Upper Category
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Upper Category
+ name: Upper Category
+ source: fields
+ lib/deduplicated-name: Upper Category
+ lib/desired-column-alias: Upper Category
+ lib/expression-name: Upper Category
+ lib/original-name: Upper Category
+ lib/source: source/expressions
+ lib/source-column-alias: Upper Category
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Lower Title
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Lower Title
+ name: Lower Title
+ source: fields
+ lib/deduplicated-name: Lower Title
+ lib/desired-column-alias: Lower Title
+ lib/expression-name: Lower Title
+ lib/original-name: Lower Title
+ lib/source: source/expressions
+ lib/source-column-alias: Lower Title
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Title Length
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Title Length
+ name: Title Length
+ source: fields
+ lib/deduplicated-name: Title Length
+ lib/desired-column-alias: Title Length
+ lib/expression-name: Title Length
+ lib/original-name: Title Length
+ lib/source: source/expressions
+ lib/source-column-alias: Title Length
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Title From 5th Char
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Title From 5th Char
+ name: Title From 5th Char
+ source: fields
+ lib/deduplicated-name: Title From 5th Char
+ lib/desired-column-alias: Title From 5th Char
+ lib/expression-name: Title From 5th Char
+ lib/original-name: Title From 5th Char
+ lib/source: source/expressions
+ lib/source-column-alias: Title From 5th Char
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: HeLFZSVb4Jm25p4tWfVP9
+ label: string_functions
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/temporal_and_logical_filters.yaml b/test_resources/serialization_baseline/collections/main/queries/temporal_and_logical_filters.yaml
new file mode 100644
index 00000000000..5018dc02355
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/temporal_and_logical_filters.yaml
@@ -0,0 +1,316 @@
+name: Temporal and Logical Filters
+entity_id: BMx-SlSPsSfGSKaEgOzn0
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - filters:
+ - - time-interval
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - -30
+ - day
+ - - time-interval
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - current
+ - month
+ - - relative-time-interval
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - -30
+ - day
+ - -1
+ - month
+ - - not
+ - {}
+ - - is-null
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - DISCOUNT
+ limit: 20
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: User ID
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ - null
+ fk_target_field_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ID
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ name: USER_ID
+ position: 1
+ semantic_type: type/FK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: USER_ID
+ lib/desired-column-alias: USER_ID
+ lib/original-display-name: User ID
+ lib/original-name: USER_ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: USER_ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: Product ID
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ - null
+ fk_target_field_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ name: PRODUCT_ID
+ position: 2
+ semantic_type: type/FK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: PRODUCT_ID
+ lib/desired-column-alias: PRODUCT_ID
+ lib/original-display-name: Product ID
+ lib/original-name: PRODUCT_ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: PRODUCT_ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Tax
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ name: TAX
+ position: 4
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: TAX
+ lib/desired-column-alias: TAX
+ lib/original-display-name: Tax
+ lib/original-name: TAX
+ lib/source: source/table-defaults
+ lib/source-column-alias: TAX
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Total
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ name: TOTAL
+ position: 5
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: TOTAL
+ lib/desired-column-alias: TOTAL
+ lib/original-display-name: Total
+ lib/original-name: TOTAL
+ lib/source: source/table-defaults
+ lib/source-column-alias: TOTAL
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Discount
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - DISCOUNT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - DISCOUNT
+ name: DISCOUNT
+ position: 6
+ semantic_type: type/Discount
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: DISCOUNT
+ lib/desired-column-alias: DISCOUNT
+ lib/original-display-name: Discount
+ lib/original-name: DISCOUNT
+ lib/source: source/table-defaults
+ lib/source-column-alias: DISCOUNT
+ qp/implicit-field?: true
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: Created At
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: Quantity
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - QUANTITY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - QUANTITY
+ name: QUANTITY
+ position: 8
+ semantic_type: type/Quantity
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: QUANTITY
+ lib/desired-column-alias: QUANTITY
+ lib/original-display-name: Quantity
+ lib/original-name: QUANTITY
+ lib/source: source/table-defaults
+ lib/source-column-alias: QUANTITY
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: BMx-SlSPsSfGSKaEgOzn0
+ label: temporal_and_logical_filters
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/temporal_expressions.yaml b/test_resources/serialization_baseline/collections/main/queries/temporal_expressions.yaml
new file mode 100644
index 00000000000..4a0c348a421
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/temporal_expressions.yaml
@@ -0,0 +1,476 @@
+name: Temporal Expressions
+entity_id: DBBrqcMAmOO0sbM_CzM_Z
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - expressions:
+ - - datetime-add
+ - lib/expression-name: Ship By
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - 7
+ - day
+ - - datetime-subtract
+ - lib/expression-name: Week Before
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - 1
+ - week
+ - - datetime-diff
+ - lib/expression-name: Days Since Order
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - now
+ - {}
+ - day
+ - - +
+ - lib/expression-name: Ship By Deadline
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - interval
+ - {}
+ - 7
+ - day
+ - - date
+ - lib/expression-name: Order Date
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - datetime
+ - lib/expression-name: Parsed Datetime
+ - '2024-06-15T10:30:00'
+ - - datetime
+ - mode: unix-seconds
+ lib/expression-name: Parsed Unix
+ - - field
+ - base-type: type/Integer
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - QUANTITY
+ - - now
+ - lib/expression-name: Current Time
+ - - today
+ - lib/expression-name: Today Date
+ limit: 10
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: User ID
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ - null
+ fk_target_field_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ID
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ name: USER_ID
+ position: 1
+ semantic_type: type/FK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: USER_ID
+ lib/desired-column-alias: USER_ID
+ lib/original-display-name: User ID
+ lib/original-name: USER_ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: USER_ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: Product ID
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ - null
+ fk_target_field_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ name: PRODUCT_ID
+ position: 2
+ semantic_type: type/FK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: PRODUCT_ID
+ lib/desired-column-alias: PRODUCT_ID
+ lib/original-display-name: Product ID
+ lib/original-name: PRODUCT_ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: PRODUCT_ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Tax
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ name: TAX
+ position: 4
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: TAX
+ lib/desired-column-alias: TAX
+ lib/original-display-name: Tax
+ lib/original-name: TAX
+ lib/source: source/table-defaults
+ lib/source-column-alias: TAX
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Total
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ name: TOTAL
+ position: 5
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: TOTAL
+ lib/desired-column-alias: TOTAL
+ lib/original-display-name: Total
+ lib/original-name: TOTAL
+ lib/source: source/table-defaults
+ lib/source-column-alias: TOTAL
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Discount
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - DISCOUNT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - DISCOUNT
+ name: DISCOUNT
+ position: 6
+ semantic_type: type/Discount
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: DISCOUNT
+ lib/desired-column-alias: DISCOUNT
+ lib/original-display-name: Discount
+ lib/original-name: DISCOUNT
+ lib/source: source/table-defaults
+ lib/source-column-alias: DISCOUNT
+ qp/implicit-field?: true
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: Created At
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: Quantity
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - QUANTITY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - QUANTITY
+ name: QUANTITY
+ position: 8
+ semantic_type: type/Quantity
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: QUANTITY
+ lib/desired-column-alias: QUANTITY
+ lib/original-display-name: Quantity
+ lib/original-name: QUANTITY
+ lib/source: source/table-defaults
+ lib/source-column-alias: QUANTITY
+ qp/implicit-field?: true
+- base_type: type/DateTimeWithLocalTZ
+ display_name: Ship By
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - expression
+ - Ship By
+ name: Ship By
+ source: fields
+ lib/deduplicated-name: Ship By
+ lib/desired-column-alias: Ship By
+ lib/expression-name: Ship By
+ lib/original-name: Ship By
+ lib/source: source/expressions
+ lib/source-column-alias: Ship By
+ qp/implicit-field?: true
+- base_type: type/DateTimeWithLocalTZ
+ display_name: Week Before
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - expression
+ - Week Before
+ name: Week Before
+ source: fields
+ lib/deduplicated-name: Week Before
+ lib/desired-column-alias: Week Before
+ lib/expression-name: Week Before
+ lib/original-name: Week Before
+ lib/source: source/expressions
+ lib/source-column-alias: Week Before
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Days Since Order
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Days Since Order
+ name: Days Since Order
+ source: fields
+ lib/deduplicated-name: Days Since Order
+ lib/desired-column-alias: Days Since Order
+ lib/expression-name: Days Since Order
+ lib/original-name: Days Since Order
+ lib/source: source/expressions
+ lib/source-column-alias: Days Since Order
+ qp/implicit-field?: true
+- base_type: type/Temporal
+ display_name: Ship By Deadline
+ effective_type: type/Temporal
+ field_ref:
+ - expression
+ - Ship By Deadline
+ name: Ship By Deadline
+ source: fields
+ lib/deduplicated-name: Ship By Deadline
+ lib/desired-column-alias: Ship By Deadline
+ lib/expression-name: Ship By Deadline
+ lib/original-name: Ship By Deadline
+ lib/source: source/expressions
+ lib/source-column-alias: Ship By Deadline
+ qp/implicit-field?: true
+- base_type: type/Date
+ display_name: Order Date
+ effective_type: type/Date
+ field_ref:
+ - expression
+ - Order Date
+ name: Order Date
+ source: fields
+ lib/deduplicated-name: Order Date
+ lib/desired-column-alias: Order Date
+ lib/expression-name: Order Date
+ lib/original-name: Order Date
+ lib/source: source/expressions
+ lib/source-column-alias: Order Date
+ qp/implicit-field?: true
+- base_type: type/DateTime
+ display_name: Parsed Datetime
+ effective_type: type/DateTime
+ field_ref:
+ - expression
+ - Parsed Datetime
+ name: Parsed Datetime
+ source: fields
+ lib/deduplicated-name: Parsed Datetime
+ lib/desired-column-alias: Parsed Datetime
+ lib/expression-name: Parsed Datetime
+ lib/original-name: Parsed Datetime
+ lib/source: source/expressions
+ lib/source-column-alias: Parsed Datetime
+ qp/implicit-field?: true
+- base_type: type/DateTime
+ display_name: Parsed Unix
+ effective_type: type/DateTime
+ field_ref:
+ - expression
+ - Parsed Unix
+ name: Parsed Unix
+ source: fields
+ lib/deduplicated-name: Parsed Unix
+ lib/desired-column-alias: Parsed Unix
+ lib/expression-name: Parsed Unix
+ lib/original-name: Parsed Unix
+ lib/source: source/expressions
+ lib/source-column-alias: Parsed Unix
+ qp/implicit-field?: true
+- base_type: type/DateTimeWithTZ
+ display_name: Current Time
+ effective_type: type/DateTimeWithTZ
+ field_ref:
+ - expression
+ - Current Time
+ name: Current Time
+ source: fields
+ lib/deduplicated-name: Current Time
+ lib/desired-column-alias: Current Time
+ lib/expression-name: Current Time
+ lib/original-name: Current Time
+ lib/source: source/expressions
+ lib/source-column-alias: Current Time
+ qp/implicit-field?: true
+- base_type: type/Date
+ display_name: Today Date
+ effective_type: type/Date
+ field_ref:
+ - expression
+ - Today Date
+ name: Today Date
+ source: fields
+ lib/deduplicated-name: Today Date
+ lib/desired-column-alias: Today Date
+ lib/expression-name: Today Date
+ lib/original-name: Today Date
+ lib/source: source/expressions
+ lib/source-column-alias: Today Date
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: DBBrqcMAmOO0sbM_CzM_Z
+ label: temporal_expressions
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/temporal_extraction.yaml b/test_resources/serialization_baseline/collections/main/queries/temporal_extraction.yaml
new file mode 100644
index 00000000000..5f69811546e
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/temporal_extraction.yaml
@@ -0,0 +1,719 @@
+name: Temporal Extraction
+entity_id: bDK7jyPszEHzHh4aG4_SV
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - expressions:
+ - - get-year
+ - lib/expression-name: Order Year
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - get-quarter
+ - lib/expression-name: Order Quarter
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - get-month
+ - lib/expression-name: Order Month
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - get-day
+ - lib/expression-name: Order Day
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - get-hour
+ - lib/expression-name: Order Hour
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - get-minute
+ - lib/expression-name: Order Minute
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - get-second
+ - lib/expression-name: Order Second
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - get-day-of-week
+ - lib/expression-name: Day of Week ISO
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - iso
+ - - get-week
+ - lib/expression-name: Week Number
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - us
+ - - month-name
+ - lib/expression-name: Month Name
+ - - get-month
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - quarter-name
+ - lib/expression-name: Quarter Name
+ - - get-quarter
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - day-name
+ - lib/expression-name: Day Name
+ - - get-day-of-week
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - iso
+ - - get-day-of-week
+ - lib/expression-name: Day of Week Default
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - get-week
+ - lib/expression-name: Week Number Default
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - - temporal-extract
+ - lib/expression-name: Extracted Month
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - month-of-year
+ - - temporal-extract
+ - lib/expression-name: Extracted Day of Week ISO
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - day-of-week
+ - iso
+ limit: 10
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/BigInteger
+ database_type: BIGINT
+ display_name: ID
+ effective_type: type/BigInteger
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - ID
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - ID
+ name: ID
+ position: 0
+ semantic_type: type/PK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: ID
+ lib/desired-column-alias: ID
+ lib/original-display-name: ID
+ lib/original-name: ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: User ID
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ - null
+ fk_target_field_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ID
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ name: USER_ID
+ position: 1
+ semantic_type: type/FK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: USER_ID
+ lib/desired-column-alias: USER_ID
+ lib/original-display-name: User ID
+ lib/original-name: USER_ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: USER_ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: Product ID
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ - null
+ fk_target_field_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ name: PRODUCT_ID
+ position: 2
+ semantic_type: type/FK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: PRODUCT_ID
+ lib/desired-column-alias: PRODUCT_ID
+ lib/original-display-name: Product ID
+ lib/original-name: PRODUCT_ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: PRODUCT_ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Subtotal
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - SUBTOTAL
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - SUBTOTAL
+ name: SUBTOTAL
+ position: 3
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: SUBTOTAL
+ lib/desired-column-alias: SUBTOTAL
+ lib/original-display-name: Subtotal
+ lib/original-name: SUBTOTAL
+ lib/source: source/table-defaults
+ lib/source-column-alias: SUBTOTAL
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Tax
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ name: TAX
+ position: 4
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: TAX
+ lib/desired-column-alias: TAX
+ lib/original-display-name: Tax
+ lib/original-name: TAX
+ lib/source: source/table-defaults
+ lib/source-column-alias: TAX
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Total
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ name: TOTAL
+ position: 5
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: TOTAL
+ lib/desired-column-alias: TOTAL
+ lib/original-display-name: Total
+ lib/original-name: TOTAL
+ lib/source: source/table-defaults
+ lib/source-column-alias: TOTAL
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Discount
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - DISCOUNT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - DISCOUNT
+ name: DISCOUNT
+ position: 6
+ semantic_type: type/Discount
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: DISCOUNT
+ lib/desired-column-alias: DISCOUNT
+ lib/original-display-name: Discount
+ lib/original-name: DISCOUNT
+ lib/source: source/table-defaults
+ lib/source-column-alias: DISCOUNT
+ qp/implicit-field?: true
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: Created At
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: Quantity
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - QUANTITY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - QUANTITY
+ name: QUANTITY
+ position: 8
+ semantic_type: type/Quantity
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: QUANTITY
+ lib/desired-column-alias: QUANTITY
+ lib/original-display-name: Quantity
+ lib/original-name: QUANTITY
+ lib/source: source/table-defaults
+ lib/source-column-alias: QUANTITY
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Order Year
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Order Year
+ name: Order Year
+ source: fields
+ lib/deduplicated-name: Order Year
+ lib/desired-column-alias: Order Year
+ lib/expression-name: Order Year
+ lib/original-name: Order Year
+ lib/source: source/expressions
+ lib/source-column-alias: Order Year
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Order Quarter
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Order Quarter
+ name: Order Quarter
+ source: fields
+ lib/deduplicated-name: Order Quarter
+ lib/desired-column-alias: Order Quarter
+ lib/expression-name: Order Quarter
+ lib/original-name: Order Quarter
+ lib/source: source/expressions
+ lib/source-column-alias: Order Quarter
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Order Month
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Order Month
+ name: Order Month
+ source: fields
+ lib/deduplicated-name: Order Month
+ lib/desired-column-alias: Order Month
+ lib/expression-name: Order Month
+ lib/original-name: Order Month
+ lib/source: source/expressions
+ lib/source-column-alias: Order Month
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Order Day
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Order Day
+ name: Order Day
+ source: fields
+ lib/deduplicated-name: Order Day
+ lib/desired-column-alias: Order Day
+ lib/expression-name: Order Day
+ lib/original-name: Order Day
+ lib/source: source/expressions
+ lib/source-column-alias: Order Day
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Order Hour
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Order Hour
+ name: Order Hour
+ source: fields
+ lib/deduplicated-name: Order Hour
+ lib/desired-column-alias: Order Hour
+ lib/expression-name: Order Hour
+ lib/original-name: Order Hour
+ lib/source: source/expressions
+ lib/source-column-alias: Order Hour
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Order Minute
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Order Minute
+ name: Order Minute
+ source: fields
+ lib/deduplicated-name: Order Minute
+ lib/desired-column-alias: Order Minute
+ lib/expression-name: Order Minute
+ lib/original-name: Order Minute
+ lib/source: source/expressions
+ lib/source-column-alias: Order Minute
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Order Second
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Order Second
+ name: Order Second
+ source: fields
+ lib/deduplicated-name: Order Second
+ lib/desired-column-alias: Order Second
+ lib/expression-name: Order Second
+ lib/original-name: Order Second
+ lib/source: source/expressions
+ lib/source-column-alias: Order Second
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Day of Week ISO
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Day of Week ISO
+ name: Day of Week ISO
+ source: fields
+ lib/deduplicated-name: Day of Week ISO
+ lib/desired-column-alias: Day of Week ISO
+ lib/expression-name: Day of Week ISO
+ lib/original-name: Day of Week ISO
+ lib/source: source/expressions
+ lib/source-column-alias: Day of Week ISO
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Week Number
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Week Number
+ name: Week Number
+ source: fields
+ lib/deduplicated-name: Week Number
+ lib/desired-column-alias: Week Number
+ lib/expression-name: Week Number
+ lib/original-name: Week Number
+ lib/source: source/expressions
+ lib/source-column-alias: Week Number
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Month Name
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Month Name
+ name: Month Name
+ source: fields
+ lib/deduplicated-name: Month Name
+ lib/desired-column-alias: Month Name
+ lib/expression-name: Month Name
+ lib/original-name: Month Name
+ lib/source: source/expressions
+ lib/source-column-alias: Month Name
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Quarter Name
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Quarter Name
+ name: Quarter Name
+ source: fields
+ lib/deduplicated-name: Quarter Name
+ lib/desired-column-alias: Quarter Name
+ lib/expression-name: Quarter Name
+ lib/original-name: Quarter Name
+ lib/source: source/expressions
+ lib/source-column-alias: Quarter Name
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Day Name
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Day Name
+ name: Day Name
+ source: fields
+ lib/deduplicated-name: Day Name
+ lib/desired-column-alias: Day Name
+ lib/expression-name: Day Name
+ lib/original-name: Day Name
+ lib/source: source/expressions
+ lib/source-column-alias: Day Name
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Day of Week Default
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Day of Week Default
+ name: Day of Week Default
+ source: fields
+ lib/deduplicated-name: Day of Week Default
+ lib/desired-column-alias: Day of Week Default
+ lib/expression-name: Day of Week Default
+ lib/original-name: Day of Week Default
+ lib/source: source/expressions
+ lib/source-column-alias: Day of Week Default
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Week Number Default
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Week Number Default
+ name: Week Number Default
+ source: fields
+ lib/deduplicated-name: Week Number Default
+ lib/desired-column-alias: Week Number Default
+ lib/expression-name: Week Number Default
+ lib/original-name: Week Number Default
+ lib/source: source/expressions
+ lib/source-column-alias: Week Number Default
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Extracted Month
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Extracted Month
+ name: Extracted Month
+ source: fields
+ lib/deduplicated-name: Extracted Month
+ lib/desired-column-alias: Extracted Month
+ lib/expression-name: Extracted Month
+ lib/original-name: Extracted Month
+ lib/source: source/expressions
+ lib/source-column-alias: Extracted Month
+ qp/implicit-field?: true
+- base_type: type/Integer
+ display_name: Extracted Day of Week ISO
+ effective_type: type/Integer
+ field_ref:
+ - expression
+ - Extracted Day of Week ISO
+ name: Extracted Day of Week ISO
+ source: fields
+ lib/deduplicated-name: Extracted Day of Week ISO
+ lib/desired-column-alias: Extracted Day of Week ISO
+ lib/expression-name: Extracted Day of Week ISO
+ lib/original-name: Extracted Day of Week ISO
+ lib/source: source/expressions
+ lib/source-column-alias: Extracted Day of Week ISO
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: bDK7jyPszEHzHh4aG4_SV
+ label: temporal_extraction
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/total_revenue.yaml b/test_resources/serialization_baseline/collections/main/queries/total_revenue.yaml
new file mode 100644
index 00000000000..18d44adc766
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/total_revenue.yaml
@@ -0,0 +1,55 @@
+name: Total Revenue
+entity_id: IW8kbqZVaMxdGtCM2F4U6
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: scalar
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- base_type: type/Float
+ display_name: Sum of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 0
+ name: sum
+ source: aggregation
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: IW8kbqZVaMxdGtCM2F4U6
+ label: total_revenue
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: metric
diff --git a/test_resources/serialization_baseline/collections/main/queries/url_functions.yaml b/test_resources/serialization_baseline/collections/main/queries/url_functions.yaml
new file mode 100644
index 00000000000..7ec4505a708
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/url_functions.yaml
@@ -0,0 +1,552 @@
+name: URL Functions
+entity_id: uwAeNRHymXTD1G_7lWV1d
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- PEOPLE
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - expressions:
+ - - host
+ - lib/expression-name: Source Host
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - SOURCE
+ - - domain
+ - lib/expression-name: Source Domain
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - SOURCE
+ - - subdomain
+ - lib/expression-name: Source Subdomain
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - SOURCE
+ - - path
+ - lib/expression-name: Source Path
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - SOURCE
+ limit: 10
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/BigInteger
+ database_type: BIGINT
+ display_name: ID
+ effective_type: type/BigInteger
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ID
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ID
+ name: ID
+ position: 0
+ semantic_type: type/PK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: ID
+ lib/desired-column-alias: ID
+ lib/original-display-name: ID
+ lib/original-name: ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Address
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ADDRESS
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ADDRESS
+ name: ADDRESS
+ position: 1
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: ADDRESS
+ lib/desired-column-alias: ADDRESS
+ lib/original-display-name: Address
+ lib/original-name: ADDRESS
+ lib/source: source/table-defaults
+ lib/source-column-alias: ADDRESS
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Email
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - EMAIL
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - EMAIL
+ name: EMAIL
+ position: 2
+ semantic_type: type/Email
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: EMAIL
+ lib/desired-column-alias: EMAIL
+ lib/original-display-name: Email
+ lib/original-name: EMAIL
+ lib/source: source/table-defaults
+ lib/source-column-alias: EMAIL
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Password
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - PASSWORD
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - PASSWORD
+ name: PASSWORD
+ position: 3
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: PASSWORD
+ lib/desired-column-alias: PASSWORD
+ lib/original-display-name: Password
+ lib/original-name: PASSWORD
+ lib/source: source/table-defaults
+ lib/source-column-alias: PASSWORD
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Name
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - NAME
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - NAME
+ name: NAME
+ position: 4
+ semantic_type: type/Name
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: NAME
+ lib/desired-column-alias: NAME
+ lib/original-display-name: Name
+ lib/original-name: NAME
+ lib/source: source/table-defaults
+ lib/source-column-alias: NAME
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: City
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - CITY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - CITY
+ name: CITY
+ position: 5
+ semantic_type: type/City
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: CITY
+ lib/desired-column-alias: CITY
+ lib/original-display-name: City
+ lib/original-name: CITY
+ lib/source: source/table-defaults
+ lib/source-column-alias: CITY
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Longitude
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LONGITUDE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LONGITUDE
+ name: LONGITUDE
+ position: 6
+ semantic_type: type/Longitude
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: LONGITUDE
+ lib/desired-column-alias: LONGITUDE
+ lib/original-display-name: Longitude
+ lib/original-name: LONGITUDE
+ lib/source: source/table-defaults
+ lib/source-column-alias: LONGITUDE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: State
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - STATE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - STATE
+ name: STATE
+ position: 7
+ semantic_type: type/State
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: STATE
+ lib/desired-column-alias: STATE
+ lib/original-display-name: State
+ lib/original-name: STATE
+ lib/source: source/table-defaults
+ lib/source-column-alias: STATE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Source
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - SOURCE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - SOURCE
+ name: SOURCE
+ position: 8
+ semantic_type: type/Source
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: SOURCE
+ lib/desired-column-alias: SOURCE
+ lib/original-display-name: Source
+ lib/original-name: SOURCE
+ lib/source: source/table-defaults
+ lib/source-column-alias: SOURCE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Date
+ database_type: DATE
+ display_name: Birth Date
+ effective_type: type/Date
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - BIRTH_DATE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - BIRTH_DATE
+ name: BIRTH_DATE
+ position: 9
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: BIRTH_DATE
+ lib/desired-column-alias: BIRTH_DATE
+ lib/original-display-name: Birth Date
+ lib/original-name: BIRTH_DATE
+ lib/source: source/table-defaults
+ lib/source-column-alias: BIRTH_DATE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Zip
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ZIP
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ZIP
+ name: ZIP
+ position: 10
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: ZIP
+ lib/desired-column-alias: ZIP
+ lib/original-display-name: Zip
+ lib/original-name: ZIP
+ lib/source: source/table-defaults
+ lib/source-column-alias: ZIP
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Latitude
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LATITUDE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LATITUDE
+ name: LATITUDE
+ position: 11
+ semantic_type: type/Latitude
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: LATITUDE
+ lib/desired-column-alias: LATITUDE
+ lib/original-display-name: Latitude
+ lib/original-name: LATITUDE
+ lib/source: source/table-defaults
+ lib/source-column-alias: LATITUDE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: Created At
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - CREATED_AT
+ name: CREATED_AT
+ position: 12
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Source Host
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Source Host
+ name: Source Host
+ source: fields
+ lib/deduplicated-name: Source Host
+ lib/desired-column-alias: Source Host
+ lib/expression-name: Source Host
+ lib/original-name: Source Host
+ lib/source: source/expressions
+ lib/source-column-alias: Source Host
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Source Domain
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Source Domain
+ name: Source Domain
+ source: fields
+ lib/deduplicated-name: Source Domain
+ lib/desired-column-alias: Source Domain
+ lib/expression-name: Source Domain
+ lib/original-name: Source Domain
+ lib/source: source/expressions
+ lib/source-column-alias: Source Domain
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Source Subdomain
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Source Subdomain
+ name: Source Subdomain
+ source: fields
+ lib/deduplicated-name: Source Subdomain
+ lib/desired-column-alias: Source Subdomain
+ lib/expression-name: Source Subdomain
+ lib/original-name: Source Subdomain
+ lib/source: source/expressions
+ lib/source-column-alias: Source Subdomain
+ qp/implicit-field?: true
+- base_type: type/Text
+ display_name: Source Path
+ effective_type: type/Text
+ field_ref:
+ - expression
+ - Source Path
+ name: Source Path
+ source: fields
+ lib/deduplicated-name: Source Path
+ lib/desired-column-alias: Source Path
+ lib/expression-name: Source Path
+ lib/original-name: Source Path
+ lib/source: source/expressions
+ lib/source-column-alias: Source Path
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: uwAeNRHymXTD1G_7lWV1d
+ label: url_functions
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/queries/window_function___offset.yaml b/test_resources/serialization_baseline/collections/main/queries/window_function___offset.yaml
new file mode 100644
index 00000000000..dc5c1042279
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/queries/window_function___offset.yaml
@@ -0,0 +1,122 @@
+name: Window Function - Offset
+entity_id: ErQY8K5Tep4xBc3VY_-1e
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: line
+collection_id: cOlQuErIeS0ExAmPlE2x1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - - offset
+ - {}
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - -1
+ breakout:
+ - - field
+ - temporal-unit: month
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: 'Created At: Month'
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - temporal-unit: month
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ inherited_temporal_unit: month
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ unit: month
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ lib/temporal-unit: month
+- base_type: type/Float
+ display_name: Sum of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 0
+ name: sum
+ source: aggregation
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+- base_type: type/Float
+ display_name: offset
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 1
+ name: offset
+ source: aggregation
+ lib/deduplicated-name: offset
+ lib/desired-column-alias: offset
+ lib/original-name: offset
+ lib/source: source/aggregations
+ lib/source-column-alias: offset
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: ErQY8K5Tep4xBc3VY_-1e
+ label: window_function___offset
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/root_card.yaml b/test_resources/serialization_baseline/collections/main/root_card.yaml
deleted file mode 100644
index 002190614ce..00000000000
--- a/test_resources/serialization_baseline/collections/main/root_card.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: root card
-entity_id: ze7O4-8qRFH1v2Ho2apT1
-created_at: '2024-08-28T12:50:14.404226Z'
-creator_id: [email protected]
-display: table
-database_id: test-data (h2)
-parameters: []
-parameter_mappings: []
-dataset_query: {}
-visualization_settings:
- column_settings: null
-card_schema: 23
-serdes/meta:
-- id: ze7O4-8qRFH1v2Ho2apT1
- label: root_card
- model: Card
-metabase_version: v1.57.1-SNAPSHOT (14ff27d)
-type: question
diff --git a/test_resources/serialization_baseline/collections/main/shared_collection.yaml b/test_resources/serialization_baseline/collections/main/shared_collection.yaml
deleted file mode 100644
index 156b3a954c7..00000000000
--- a/test_resources/serialization_baseline/collections/main/shared_collection.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-name: Shared Collection
-entity_id: p8Zq2ud7JlSoSBXdJWIaW
-slug: shared_collection
-created_at: '2024-08-28T14:31:56.872211Z'
-serdes/meta:
-- id: p8Zq2ud7JlSoSBXdJWIaW
- label: shared_collection
- model: Collection
diff --git a/test_resources/serialization_baseline/collections/main/shared_collection/empty_timeline.yaml b/test_resources/serialization_baseline/collections/main/shared_collection/empty_timeline.yaml
deleted file mode 100644
index 1b408d87bbe..00000000000
--- a/test_resources/serialization_baseline/collections/main/shared_collection/empty_timeline.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-collection_id: p8Zq2ud7JlSoSBXdJWIaW
-created_at: '2024-08-28T14:31:56.93662Z'
-creator_id: [email protected]
-entity_id: PsHfXHhETFiTIRQODuYB8
-events: []
-icon: star
-name: Empty Timeline
-serdes/meta:
-- id: PsHfXHhETFiTIRQODuYB8
- label: empty_timeline
- model: Timeline
diff --git a/test_resources/serialization_baseline/collections/main/slack_metabot.yaml b/test_resources/serialization_baseline/collections/main/slack_metabot.yaml
index 8dcb5e2ad33..7ea7acff15e 100644
--- a/test_resources/serialization_baseline/collections/main/slack_metabot.yaml
+++ b/test_resources/serialization_baseline/collections/main/slack_metabot.yaml
@@ -1,8 +1,8 @@
name: Slack Metabot
description: Metabot instance for Slack users.
-created_at: '2025-05-28T17:49:20.649159Z'
+created_at: '2026-04-02T02:59:01.71366Z'
entity_id: slackbotmetabotmetabo
-updated_at: '2025-05-28T17:49:20.649159Z'
+updated_at: '2026-04-02T02:59:01.71366Z'
serdes/meta:
- id: slackbotmetabotmetabo
model: Metabot
diff --git a/test_resources/serialization_baseline/collections/main/smart_linked_dashboard.yaml b/test_resources/serialization_baseline/collections/main/smart_linked_dashboard.yaml
deleted file mode 100644
index 6359649cd84..00000000000
--- a/test_resources/serialization_baseline/collections/main/smart_linked_dashboard.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-name: Smart Linked Dashboard
-entity_id: ziLZTiwSdz6aJaB9VhGiO
-created_at: '2025-08-11T16:53:07.281153Z'
-creator_id: [email protected]
-parameters: []
-serdes/meta:
-- id: ziLZTiwSdz6aJaB9VhGiO
- label: smart_linked_dashboard
- model: Dashboard
-dashcards: []
-tabs: []
-width: fixed
diff --git a/test_resources/serialization_baseline/collections/main/some_collection.yaml b/test_resources/serialization_baseline/collections/main/some_collection.yaml
deleted file mode 100644
index 2b5175068d0..00000000000
--- a/test_resources/serialization_baseline/collections/main/some_collection.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-name: Some Collection
-entity_id: M-Q4pcV0qkiyJ0kiSWECl
-slug: some_collection
-created_at: '2024-08-28T09:46:18.671622Z'
-serdes/meta:
-- id: M-Q4pcV0qkiyJ0kiSWECl
- label: some_collection
- model: Collection
diff --git a/test_resources/serialization_baseline/collections/main/some_collection/series_question_a.yaml b/test_resources/serialization_baseline/collections/main/some_collection/series_question_a.yaml
deleted file mode 100644
index e067cbd6c13..00000000000
--- a/test_resources/serialization_baseline/collections/main/some_collection/series_question_a.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: Series Question A
-entity_id: OMuZ0wHe2O5Z_59-cLmn4
-created_at: '2024-08-28T09:46:24.719281Z'
-creator_id: [email protected]
-display: table
-collection_id: M-Q4pcV0qkiyJ0kiSWECl
-database_id: test-data (h2)
-parameters: []
-parameter_mappings: []
-dataset_query: {}
-visualization_settings:
- column_settings: null
-card_schema: 23
-serdes/meta:
-- id: OMuZ0wHe2O5Z_59-cLmn4
- label: series_question_a
- model: Card
-metabase_version: v1.57.1-SNAPSHOT (14ff27d)
-type: question
diff --git a/test_resources/serialization_baseline/collections/main/some_collection/series_question_b.yaml b/test_resources/serialization_baseline/collections/main/some_collection/series_question_b.yaml
deleted file mode 100644
index 65715515171..00000000000
--- a/test_resources/serialization_baseline/collections/main/some_collection/series_question_b.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: Series Question B
-entity_id: XsxiHuzwlGIFNq245HdZC
-created_at: '2024-08-28T09:46:24.72343Z'
-creator_id: [email protected]
-display: table
-collection_id: M-Q4pcV0qkiyJ0kiSWECl
-database_id: test-data (h2)
-parameters: []
-parameter_mappings: []
-dataset_query: {}
-visualization_settings:
- column_settings: null
-card_schema: 23
-serdes/meta:
-- id: XsxiHuzwlGIFNq245HdZC
- label: series_question_b
- model: Card
-metabase_version: v1.57.1-SNAPSHOT (14ff27d)
-type: question
diff --git a/test_resources/serialization_baseline/collections/main/some_collection/shared_dashboard.yaml b/test_resources/serialization_baseline/collections/main/some_collection/shared_dashboard.yaml
deleted file mode 100644
index 134f84cea1f..00000000000
--- a/test_resources/serialization_baseline/collections/main/some_collection/shared_dashboard.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-name: Shared Dashboard
-entity_id: Q_jD-f-9clKLFZ2TfUG2h
-created_at: '2024-08-28T09:46:24.726993Z'
-creator_id: [email protected]
-collection_id: M-Q4pcV0qkiyJ0kiSWECl
-parameters: []
-serdes/meta:
-- id: Q_jD-f-9clKLFZ2TfUG2h
- label: shared_dashboard
- model: Dashboard
-dashcards:
-- entity_id: UkpFcfUZMZt9ehChwnrAO
- card_id: f1C68pznmrpN1F5xFDj6d
- created_at: '2024-08-28T09:46:24.733016Z'
- row: 0
- col: 0
- size_x: 4
- size_y: 4
- inline_parameters: []
- parameter_mappings: []
- series:
- - card_id: OMuZ0wHe2O5Z_59-cLmn4
- position: 0
- - card_id: XsxiHuzwlGIFNq245HdZC
- position: 1
- visualization_settings:
- column_settings: null
- serdes/meta:
- - id: Q_jD-f-9clKLFZ2TfUG2h
- model: Dashboard
- - id: UkpFcfUZMZt9ehChwnrAO
- model: DashboardCard
-- entity_id: AlYMOYAhCXhr1VIiH5umt
- card_id: OMuZ0wHe2O5Z_59-cLmn4
- created_at: '2024-08-28T09:46:24.737505Z'
- row: 0
- col: 0
- size_x: 4
- size_y: 4
- inline_parameters: []
- parameter_mappings: []
- series: []
- visualization_settings:
- column_settings: null
- serdes/meta:
- - id: Q_jD-f-9clKLFZ2TfUG2h
- model: Dashboard
- - id: AlYMOYAhCXhr1VIiH5umt
- model: DashboardCard
-tabs: []
-width: fixed
diff --git a/test_resources/serialization_baseline/collections/main/some_collection/some_question.yaml b/test_resources/serialization_baseline/collections/main/some_collection/some_question.yaml
deleted file mode 100644
index 3a240393bd4..00000000000
--- a/test_resources/serialization_baseline/collections/main/some_collection/some_question.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: Some Question
-entity_id: f1C68pznmrpN1F5xFDj6d
-created_at: '2024-08-28T09:46:24.692002Z'
-creator_id: [email protected]
-display: table
-collection_id: M-Q4pcV0qkiyJ0kiSWECl
-database_id: test-data (h2)
-parameters: []
-parameter_mappings: []
-dataset_query: {}
-visualization_settings:
- column_settings: null
-card_schema: 23
-serdes/meta:
-- id: f1C68pznmrpN1F5xFDj6d
- label: some_question
- model: Card
-metabase_version: v1.57.1-SNAPSHOT (14ff27d)
-type: question
diff --git a/test_resources/serialization_baseline/collections/main/source_model.yaml b/test_resources/serialization_baseline/collections/main/source_model.yaml
new file mode 100644
index 00000000000..634f62d506b
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/source_model.yaml
@@ -0,0 +1,336 @@
+name: Source Model
+entity_id: sRcMoDeL00ExAmPlEx001
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/BigInteger
+ database_type: BIGINT
+ display_name: ID
+ effective_type: type/BigInteger
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - ID
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - ID
+ name: ID
+ position: 0
+ semantic_type: type/PK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: ID
+ lib/desired-column-alias: ID
+ lib/original-display-name: ID
+ lib/original-name: ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: User ID
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ - null
+ fk_target_field_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ID
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - USER_ID
+ name: USER_ID
+ position: 1
+ semantic_type: type/FK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: USER_ID
+ lib/desired-column-alias: USER_ID
+ lib/original-display-name: User ID
+ lib/original-name: USER_ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: USER_ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: Product ID
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ - null
+ fk_target_field_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ name: PRODUCT_ID
+ position: 2
+ semantic_type: type/FK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: PRODUCT_ID
+ lib/desired-column-alias: PRODUCT_ID
+ lib/original-display-name: Product ID
+ lib/original-name: PRODUCT_ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: PRODUCT_ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Subtotal
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - SUBTOTAL
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - SUBTOTAL
+ name: SUBTOTAL
+ position: 3
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: SUBTOTAL
+ lib/desired-column-alias: SUBTOTAL
+ lib/original-display-name: Subtotal
+ lib/original-name: SUBTOTAL
+ lib/source: source/table-defaults
+ lib/source-column-alias: SUBTOTAL
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Tax
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TAX
+ name: TAX
+ position: 4
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: TAX
+ lib/desired-column-alias: TAX
+ lib/original-display-name: Tax
+ lib/original-name: TAX
+ lib/source: source/table-defaults
+ lib/source-column-alias: TAX
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Total
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ name: TOTAL
+ position: 5
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: TOTAL
+ lib/desired-column-alias: TOTAL
+ lib/original-display-name: Total
+ lib/original-name: TOTAL
+ lib/source: source/table-defaults
+ lib/source-column-alias: TOTAL
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Discount
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - DISCOUNT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - DISCOUNT
+ name: DISCOUNT
+ position: 6
+ semantic_type: type/Discount
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: DISCOUNT
+ lib/desired-column-alias: DISCOUNT
+ lib/original-display-name: Discount
+ lib/original-name: DISCOUNT
+ lib/source: source/table-defaults
+ lib/source-column-alias: DISCOUNT
+ qp/implicit-field?: true
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: Created At
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Integer
+ database_type: INTEGER
+ display_name: Quantity
+ effective_type: type/Integer
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - QUANTITY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - QUANTITY
+ name: QUANTITY
+ position: 8
+ semantic_type: type/Quantity
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ visibility_type: normal
+ lib/deduplicated-name: QUANTITY
+ lib/desired-column-alias: QUANTITY
+ lib/original-display-name: Quantity
+ lib/original-name: QUANTITY
+ lib/source: source/table-defaults
+ lib/source-column-alias: QUANTITY
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+card_schema: 23
+serdes/meta:
+- id: sRcMoDeL00ExAmPlEx001
+ label: source_model
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: model
diff --git a/test_resources/serialization_baseline/collections/main/source_question.yaml b/test_resources/serialization_baseline/collections/main/source_question.yaml
deleted file mode 100644
index a05e3b1ebad..00000000000
--- a/test_resources/serialization_baseline/collections/main/source_question.yaml
+++ /dev/null
@@ -1,24 +0,0 @@
-name: Source question
-entity_id: aqpA3mIKUnfzYUlwjuGwT
-created_at: '2024-08-28T14:29:47.378643Z'
-creator_id: [email protected]
-display: table
-query_type: native
-database_id: My Database
-parameters: []
-parameter_mappings: []
-dataset_query:
- "lib/type": mbql/query
- database: My Database
- stages:
- - "lib/type": mbql.stage/native
- native: select 1
-visualization_settings:
- column_settings: null
-card_schema: 23
-serdes/meta:
-- id: aqpA3mIKUnfzYUlwjuGwT
- label: source_question
- model: Card
-metabase_version: v1.57.1-SNAPSHOT (14ff27d)
-type: model
diff --git a/test_resources/serialization_baseline/collections/main/test_metabot.yaml b/test_resources/serialization_baseline/collections/main/test_metabot.yaml
deleted file mode 100644
index f56c6330a59..00000000000
--- a/test_resources/serialization_baseline/collections/main/test_metabot.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-name: Test Metabot
-description: A test metabot
-created_at: '2025-05-21T13:50:15.894507Z'
-entity_id: CyLr7tYRKiOoTWlcbl36q
-updated_at: '2025-05-21T13:50:15.894507Z'
-serdes/meta:
-- id: CyLr7tYRKiOoTWlcbl36q
- model: Metabot
-prompts: []
diff --git a/test_resources/serialization_baseline/collections/main/test_metabot_2.yaml b/test_resources/serialization_baseline/collections/main/test_metabot_2.yaml
deleted file mode 100644
index 567d7a5af86..00000000000
--- a/test_resources/serialization_baseline/collections/main/test_metabot_2.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-name: Test Metabot
-description: A test metabot
-created_at: '2025-05-28T17:49:20.813848Z'
-entity_id: zXxMBaxni6nRGRhD7vmPc
-updated_at: '2025-05-28T17:49:20.813848Z'
-serdes/meta:
-- id: zXxMBaxni6nRGRhD7vmPc
- model: Metabot
-prompts: []
diff --git a/test_resources/serialization_baseline/collections/main/test_metabot_3.yaml b/test_resources/serialization_baseline/collections/main/test_metabot_3.yaml
deleted file mode 100644
index d6e463fd910..00000000000
--- a/test_resources/serialization_baseline/collections/main/test_metabot_3.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-name: Test Metabot
-description: A test metabot
-created_at: '2025-06-09T20:12:07.978442Z'
-entity_id: OYeHvLi8mMGwwMwJpetYw
-updated_at: '2025-06-09T20:12:07.978442Z'
-serdes/meta:
-- id: OYeHvLi8mMGwwMwJpetYw
- model: Metabot
-prompts:
-- card_id: 4ahdpFn43jybRFVQTRjX_
- created_at: '2025-06-09T20:12:07.978442Z'
- entity_id: SNoFh7dZXzjvgeNp5aJJY
- model: model
- prompt: A sample prompt
- updated_at: '2025-06-09T20:12:07.978442Z'
- serdes/meta:
- - id: OYeHvLi8mMGwwMwJpetYw
- model: Metabot
- - id: SNoFh7dZXzjvgeNp5aJJY
- model: MetabotPrompt
diff --git a/test_resources/serialization_baseline/collections/main/visualization_settings.yaml b/test_resources/serialization_baseline/collections/main/visualization_settings.yaml
new file mode 100644
index 00000000000..05f348e3277
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/visualization_settings.yaml
@@ -0,0 +1,8 @@
+name: Visualization Settings
+entity_id: cOlViZsEtTiNgS0ExAmP1
+slug: visualization_settings
+created_at: '2026-04-02T02:59:02.778668Z'
+serdes/meta:
+- id: cOlViZsEtTiNgS0ExAmP1
+ label: visualization_settings
+ model: Collection
diff --git a/test_resources/serialization_baseline/collections/main/visualization_settings/customer_locations__map_.yaml b/test_resources/serialization_baseline/collections/main/visualization_settings/customer_locations__map_.yaml
new file mode 100644
index 00000000000..61c09687a79
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/visualization_settings/customer_locations__map_.yaml
@@ -0,0 +1,465 @@
+name: Customer Locations (Map)
+entity_id: CI61cHgBAKPBEDTxhK8X3
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: map
+collection_id: cOlViZsEtTiNgS0ExAmP1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- PEOPLE
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - source-table:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/BigInteger
+ database_type: BIGINT
+ display_name: ID
+ effective_type: type/BigInteger
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ID
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ID
+ name: ID
+ position: 0
+ semantic_type: type/PK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: ID
+ lib/desired-column-alias: ID
+ lib/original-display-name: ID
+ lib/original-name: ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Address
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ADDRESS
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ADDRESS
+ name: ADDRESS
+ position: 1
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: ADDRESS
+ lib/desired-column-alias: ADDRESS
+ lib/original-display-name: Address
+ lib/original-name: ADDRESS
+ lib/source: source/table-defaults
+ lib/source-column-alias: ADDRESS
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Email
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - EMAIL
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - EMAIL
+ name: EMAIL
+ position: 2
+ semantic_type: type/Email
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: EMAIL
+ lib/desired-column-alias: EMAIL
+ lib/original-display-name: Email
+ lib/original-name: EMAIL
+ lib/source: source/table-defaults
+ lib/source-column-alias: EMAIL
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Password
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - PASSWORD
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - PASSWORD
+ name: PASSWORD
+ position: 3
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: PASSWORD
+ lib/desired-column-alias: PASSWORD
+ lib/original-display-name: Password
+ lib/original-name: PASSWORD
+ lib/source: source/table-defaults
+ lib/source-column-alias: PASSWORD
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Name
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - NAME
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - NAME
+ name: NAME
+ position: 4
+ semantic_type: type/Name
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: NAME
+ lib/desired-column-alias: NAME
+ lib/original-display-name: Name
+ lib/original-name: NAME
+ lib/source: source/table-defaults
+ lib/source-column-alias: NAME
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: City
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - CITY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - CITY
+ name: CITY
+ position: 5
+ semantic_type: type/City
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: CITY
+ lib/desired-column-alias: CITY
+ lib/original-display-name: City
+ lib/original-name: CITY
+ lib/source: source/table-defaults
+ lib/source-column-alias: CITY
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Longitude
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LONGITUDE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LONGITUDE
+ name: LONGITUDE
+ position: 6
+ semantic_type: type/Longitude
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: LONGITUDE
+ lib/desired-column-alias: LONGITUDE
+ lib/original-display-name: Longitude
+ lib/original-name: LONGITUDE
+ lib/source: source/table-defaults
+ lib/source-column-alias: LONGITUDE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: State
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - STATE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - STATE
+ name: STATE
+ position: 7
+ semantic_type: type/State
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: STATE
+ lib/desired-column-alias: STATE
+ lib/original-display-name: State
+ lib/original-name: STATE
+ lib/source: source/table-defaults
+ lib/source-column-alias: STATE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Source
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - SOURCE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - SOURCE
+ name: SOURCE
+ position: 8
+ semantic_type: type/Source
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: SOURCE
+ lib/desired-column-alias: SOURCE
+ lib/original-display-name: Source
+ lib/original-name: SOURCE
+ lib/source: source/table-defaults
+ lib/source-column-alias: SOURCE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Date
+ database_type: DATE
+ display_name: Birth Date
+ effective_type: type/Date
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - BIRTH_DATE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - BIRTH_DATE
+ name: BIRTH_DATE
+ position: 9
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: BIRTH_DATE
+ lib/desired-column-alias: BIRTH_DATE
+ lib/original-display-name: Birth Date
+ lib/original-name: BIRTH_DATE
+ lib/source: source/table-defaults
+ lib/source-column-alias: BIRTH_DATE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Zip
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ZIP
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - ZIP
+ name: ZIP
+ position: 10
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: ZIP
+ lib/desired-column-alias: ZIP
+ lib/original-display-name: Zip
+ lib/original-name: ZIP
+ lib/source: source/table-defaults
+ lib/source-column-alias: ZIP
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Latitude
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LATITUDE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LATITUDE
+ name: LATITUDE
+ position: 11
+ semantic_type: type/Latitude
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: LATITUDE
+ lib/desired-column-alias: LATITUDE
+ lib/original-display-name: Latitude
+ lib/original-name: LATITUDE
+ lib/source: source/table-defaults
+ lib/source-column-alias: LATITUDE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: Created At
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - CREATED_AT
+ name: CREATED_AT
+ position: 12
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ visibility_type: normal
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings: null
+ map.center_latitude: 39.5
+ map.center_longitude: -98.35
+ map.latitude_column: LATITUDE
+ map.longitude_column: LONGITUDE
+ map.pin_type: markers
+ map.type: pin
+ map.zoom: 4
+card_schema: 23
+serdes/meta:
+- id: CI61cHgBAKPBEDTxhK8X3
+ label: customer_locations__map_
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/visualization_settings/monthly_revenue_changes__waterfall_.yaml b/test_resources/serialization_baseline/collections/main/visualization_settings/monthly_revenue_changes__waterfall_.yaml
new file mode 100644
index 00000000000..7465bb08a30
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/visualization_settings/monthly_revenue_changes__waterfall_.yaml
@@ -0,0 +1,102 @@
+name: Monthly Revenue Changes (Waterfall)
+entity_id: kJWYpTzyc9ow-75HjyIhf
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: waterfall
+collection_id: cOlViZsEtTiNgS0ExAmP1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ breakout:
+ - - field
+ - temporal-unit: month
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: 'Created At: Month'
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - temporal-unit: month
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ inherited_temporal_unit: month
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ unit: month
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ lib/temporal-unit: month
+- base_type: type/Float
+ display_name: Sum of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 0
+ name: sum
+ source: aggregation
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+visualization_settings:
+ column_settings: null
+ waterfall.decrease_color: '#EF8C8C'
+ waterfall.increase_color: '#88BF4D'
+ waterfall.show_total: true
+ waterfall.total_color: '#509EE3'
+card_schema: 23
+serdes/meta:
+- id: kJWYpTzyc9ow-75HjyIhf
+ label: monthly_revenue_changes__waterfall_
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/visualization_settings/orders_by_category__pie_.yaml b/test_resources/serialization_baseline/collections/main/visualization_settings/orders_by_category__pie_.yaml
new file mode 100644
index 00000000000..934d79b939a
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/visualization_settings/orders_by_category__pie_.yaml
@@ -0,0 +1,102 @@
+name: Orders by Category (Pie)
+entity_id: dYD1j3pQtJdctg8duByUL
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: pie
+collection_id: cOlViZsEtTiNgS0ExAmP1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - count
+ - {}
+ breakout:
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Category
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ name: CATEGORY
+ position: 3
+ semantic_type: type/Category
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CATEGORY
+ lib/desired-column-alias: CATEGORY
+ lib/original-display-name: Category
+ lib/original-name: CATEGORY
+ lib/source: source/table-defaults
+ lib/source-column-alias: CATEGORY
+- base_type: type/Integer
+ display_name: Count
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 0
+ name: count
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: count
+ lib/desired-column-alias: count
+ lib/original-name: count
+ lib/source: source/aggregations
+ lib/source-column-alias: count
+visualization_settings:
+ column_settings: null
+ pie.colors:
+ Doohickey: '#ED6E6E'
+ Gadget: '#88BF4D'
+ Gizmo: '#F9CF48'
+ Widget: '#509EE3'
+ pie.dimension: CATEGORY
+ pie.metric: count
+ pie.percent_visibility: inside
+ pie.show_legend: true
+ pie.show_total: true
+ pie.slice_threshold: 2.5
+ version: 2
+card_schema: 23
+serdes/meta:
+- id: dYD1j3pQtJdctg8duByUL
+ label: orders_by_category__pie_
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/visualization_settings/orders_by_category__stacked_bar_.yaml b/test_resources/serialization_baseline/collections/main/visualization_settings/orders_by_category__stacked_bar_.yaml
new file mode 100644
index 00000000000..73bb2dd9a23
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/visualization_settings/orders_by_category__stacked_bar_.yaml
@@ -0,0 +1,132 @@
+name: Orders by Category (Stacked Bar)
+entity_id: ciG63nSLHKRTImt5iWEte
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: bar
+collection_id: cOlViZsEtTiNgS0ExAmP1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - count
+ - {}
+ breakout:
+ - - field
+ - temporal-unit: quarter
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ joins:
+ - alias: Products
+ conditions:
+ - - =
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ fields: all
+ stages:
+ - source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ strategy: left-join
+ lib/type: mbql/join
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: 'Created At: Quarter'
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - temporal-unit: quarter
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ inherited_temporal_unit: quarter
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ unit: quarter
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ lib/temporal-unit: quarter
+- base_type: type/Integer
+ display_name: Count
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 0
+ name: count
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: count
+ lib/desired-column-alias: count
+ lib/original-name: count
+ lib/source: source/aggregations
+ lib/source-column-alias: count
+visualization_settings:
+ column_settings: null
+ graph.dimensions:
+ - CREATED_AT
+ - CATEGORY
+ graph.max_categories: 4
+ graph.max_categories_enabled: true
+ graph.metrics:
+ - count
+ graph.other_category_aggregation_fn: sum
+ graph.show_stack_values: total
+ graph.show_values: true
+ graph.x_axis.title_text: Quarter
+ graph.y_axis.title_text: Order Count
+ stackable.stack_type: stacked
+card_schema: 23
+serdes/meta:
+- id: ciG63nSLHKRTImt5iWEte
+ label: orders_by_category__stacked_bar_
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/visualization_settings/orders_pivot_table.yaml b/test_resources/serialization_baseline/collections/main/visualization_settings/orders_pivot_table.yaml
new file mode 100644
index 00000000000..f1eee0d88bc
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/visualization_settings/orders_pivot_table.yaml
@@ -0,0 +1,158 @@
+name: Orders Pivot Table
+entity_id: BjwHr6elEuKQuL26BEgno
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: pivot
+collection_id: cOlViZsEtTiNgS0ExAmP1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - count
+ - {}
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ breakout:
+ - - field
+ - temporal-unit: quarter
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ joins:
+ - alias: Products
+ conditions:
+ - - =
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - PRODUCT_ID
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ fields: all
+ stages:
+ - source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ strategy: left-join
+ lib/type: mbql/join
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: 'Created At: Quarter'
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - temporal-unit: quarter
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ inherited_temporal_unit: quarter
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ unit: quarter
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ lib/temporal-unit: quarter
+- base_type: type/Integer
+ display_name: Count
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 0
+ name: count
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: count
+ lib/desired-column-alias: count
+ lib/original-name: count
+ lib/source: source/aggregations
+ lib/source-column-alias: count
+- base_type: type/Float
+ display_name: Sum of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 1
+ name: sum
+ source: aggregation
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+visualization_settings:
+ column_settings:
+ '["name","sum"]':
+ currency: USD
+ currency_style: symbol
+ decimals: 0
+ number_style: currency
+ pivot_table.collapsed_rows:
+ rows: []
+ value: []
+ pivot_table.column_split:
+ columns:
+ - CREATED_AT
+ rows:
+ - CATEGORY
+ values:
+ - count
+ - sum
+ pivot_table.show_column_totals: true
+ pivot_table.show_row_totals: true
+card_schema: 23
+serdes/meta:
+- id: BjwHr6elEuKQuL26BEgno
+ label: orders_pivot_table
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/visualization_settings/products_table__formatted_.yaml b/test_resources/serialization_baseline/collections/main/visualization_settings/products_table__formatted_.yaml
new file mode 100644
index 00000000000..c99f47a5b7d
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/visualization_settings/products_table__formatted_.yaml
@@ -0,0 +1,350 @@
+name: Products Table (Formatted)
+entity_id: Wo5d6IV8lb63wex29uh6H
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: table
+collection_id: cOlViZsEtTiNgS0ExAmP1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/BigInteger
+ database_type: BIGINT
+ display_name: ID
+ effective_type: type/BigInteger
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ name: ID
+ position: 0
+ semantic_type: type/PK
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: ID
+ lib/desired-column-alias: ID
+ lib/original-display-name: ID
+ lib/original-name: ID
+ lib/source: source/table-defaults
+ lib/source-column-alias: ID
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Ean
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ name: EAN
+ position: 1
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: EAN
+ lib/desired-column-alias: EAN
+ lib/original-display-name: Ean
+ lib/original-name: EAN
+ lib/source: source/table-defaults
+ lib/source-column-alias: EAN
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Title
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ name: TITLE
+ position: 2
+ semantic_type: type/Title
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: TITLE
+ lib/desired-column-alias: TITLE
+ lib/original-display-name: Title
+ lib/original-name: TITLE
+ lib/source: source/table-defaults
+ lib/source-column-alias: TITLE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Category
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ name: CATEGORY
+ position: 3
+ semantic_type: type/Category
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: CATEGORY
+ lib/desired-column-alias: CATEGORY
+ lib/original-display-name: Category
+ lib/original-name: CATEGORY
+ lib/source: source/table-defaults
+ lib/source-column-alias: CATEGORY
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Vendor
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ name: VENDOR
+ position: 4
+ semantic_type: type/Company
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: VENDOR
+ lib/desired-column-alias: VENDOR
+ lib/original-display-name: Vendor
+ lib/original-name: VENDOR
+ lib/source: source/table-defaults
+ lib/source-column-alias: VENDOR
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Price
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ name: PRICE
+ position: 5
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: PRICE
+ lib/desired-column-alias: PRICE
+ lib/original-display-name: Price
+ lib/original-name: PRICE
+ lib/source: source/table-defaults
+ lib/source-column-alias: PRICE
+ qp/implicit-field?: true
+- active: true
+ base_type: type/Float
+ database_type: DOUBLE PRECISION
+ display_name: Rating
+ effective_type: type/Float
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ name: RATING
+ position: 6
+ semantic_type: type/Score
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: RATING
+ lib/desired-column-alias: RATING
+ lib/original-display-name: Rating
+ lib/original-name: RATING
+ lib/source: source/table-defaults
+ lib/source-column-alias: RATING
+ qp/implicit-field?: true
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: Created At
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CREATED_AT
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CREATED_AT
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: fields
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ qp/implicit-field?: true
+visualization_settings:
+ column_settings:
+ '["name","CREATED_AT"]':
+ date_abbreviate: true
+ date_style: MMMM D, YYYY
+ time_enabled: null
+ '["name","PRICE"]':
+ column_title: Price (USD)
+ currency: USD
+ currency_style: symbol
+ decimals: 2
+ number_style: currency
+ '["name","RATING"]':
+ decimals: 1
+ number_style: decimal
+ suffix: ' / 5'
+ table.column_formatting:
+ - color: '#84BB4C'
+ columns:
+ - PRICE
+ highlight_row: false
+ operator: '>'
+ type: single
+ value: 100
+ - color: '#ED6E6E'
+ columns:
+ - PRICE
+ highlight_row: true
+ operator: <
+ type: single
+ value: 20
+ - colors:
+ - '#ED6E6E'
+ - '#F9CF48'
+ - '#84BB4C'
+ columns:
+ - RATING
+ max_type: custom
+ max_value: 5
+ min_type: custom
+ min_value: 1
+ type: range
+ table.columns:
+ - enabled: true
+ name: TITLE
+ - enabled: true
+ name: CATEGORY
+ - enabled: true
+ name: PRICE
+ - enabled: true
+ name: RATING
+ - enabled: true
+ name: VENDOR
+ - enabled: true
+ name: CREATED_AT
+ - enabled: false
+ name: EAN
+card_schema: 23
+serdes/meta:
+- id: Wo5d6IV8lb63wex29uh6H
+ label: products_table__formatted_
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/visualization_settings/revenue_gauge.yaml b/test_resources/serialization_baseline/collections/main/visualization_settings/revenue_gauge.yaml
new file mode 100644
index 00000000000..8de72cab9b6
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/visualization_settings/revenue_gauge.yaml
@@ -0,0 +1,68 @@
+name: Revenue Gauge
+entity_id: GWrIQqjbzxysSCm8PLU5j
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: gauge
+collection_id: cOlViZsEtTiNgS0ExAmP1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- base_type: type/Float
+ display_name: Sum of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 0
+ name: sum
+ source: aggregation
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+visualization_settings:
+ column_settings: null
+ gauge.segments:
+ - color: '#ED6E6E'
+ label: Low
+ max: 50000
+ min: 0
+ - color: '#F9CF48'
+ label: Medium
+ max: 150000
+ min: 50000
+ - color: '#84BB4C'
+ label: High
+ max: 300000
+ min: 150000
+card_schema: 23
+serdes/meta:
+- id: GWrIQqjbzxysSCm8PLU5j
+ label: revenue_gauge
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/visualization_settings/revenue_over_time__line_.yaml b/test_resources/serialization_baseline/collections/main/visualization_settings/revenue_over_time__line_.yaml
new file mode 100644
index 00000000000..1e67546bd85
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/visualization_settings/revenue_over_time__line_.yaml
@@ -0,0 +1,121 @@
+name: Revenue Over Time (Line)
+entity_id: UEWVldEEZ-3sYUjjN54qz
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: line
+collection_id: cOlViZsEtTiNgS0ExAmP1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ breakout:
+ - - field
+ - temporal-unit: month
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: 'Created At: Month'
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - temporal-unit: month
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ inherited_temporal_unit: month
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ unit: month
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ lib/temporal-unit: month
+- base_type: type/Float
+ display_name: Sum of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 0
+ name: sum
+ source: aggregation
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+visualization_settings:
+ column_settings: null
+ graph.goal_label: Monthly Target
+ graph.goal_value: 50000
+ graph.label_values_frequency: fit
+ graph.show_goal: true
+ graph.show_trendline: true
+ graph.show_values: true
+ graph.x_axis.scale: timeseries
+ graph.x_axis.title_text: Month
+ graph.y_axis.auto_range: false
+ graph.y_axis.max: 100000
+ graph.y_axis.min: 0
+ graph.y_axis.scale: linear
+ graph.y_axis.title_text: Revenue ($)
+ series_settings:
+ sum:
+ color: '#509EE3'
+ display: line
+ line.interpolate: cardinal
+ line.marker_enabled: true
+ line.missing: interpolate
+ line.size: M
+ line.style: solid
+ show_series_values: true
+card_schema: 23
+serdes/meta:
+- id: UEWVldEEZ-3sYUjjN54qz
+ label: revenue_over_time__line_
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/visualization_settings/sales_funnel.yaml b/test_resources/serialization_baseline/collections/main/visualization_settings/sales_funnel.yaml
new file mode 100644
index 00000000000..1fbb69ce128
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/visualization_settings/sales_funnel.yaml
@@ -0,0 +1,93 @@
+name: Sales Funnel
+entity_id: mkKa6jf-QsuCRnaPOIsYh
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: funnel
+collection_id: cOlViZsEtTiNgS0ExAmP1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - count
+ - {}
+ breakout:
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/Text
+ database_type: CHARACTER VARYING
+ display_name: Category
+ effective_type: type/Text
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - null
+ id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ name: CATEGORY
+ position: 3
+ semantic_type: type/Category
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CATEGORY
+ lib/desired-column-alias: CATEGORY
+ lib/original-display-name: Category
+ lib/original-name: CATEGORY
+ lib/source: source/table-defaults
+ lib/source-column-alias: CATEGORY
+- base_type: type/Integer
+ display_name: Count
+ effective_type: type/Integer
+ field_ref:
+ - aggregation
+ - 0
+ name: count
+ semantic_type: type/Quantity
+ source: aggregation
+ lib/deduplicated-name: count
+ lib/desired-column-alias: count
+ lib/original-name: count
+ lib/source: source/aggregations
+ lib/source-column-alias: count
+visualization_settings:
+ column_settings: null
+ funnel.dimension: CATEGORY
+ funnel.metric: count
+ funnel.type: funnel
+card_schema: 23
+serdes/meta:
+- id: mkKa6jf-QsuCRnaPOIsYh
+ label: sales_funnel
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/main/visualization_settings/total_revenue__smart_scalar_.yaml b/test_resources/serialization_baseline/collections/main/visualization_settings/total_revenue__smart_scalar_.yaml
new file mode 100644
index 00000000000..239e64a9f42
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/main/visualization_settings/total_revenue__smart_scalar_.yaml
@@ -0,0 +1,113 @@
+name: Total Revenue (Smart Scalar)
+entity_id: bSj47tilPIkwDIewvMf8z
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+display: smartscalar
+collection_id: cOlViZsEtTiNgS0ExAmP1
+query_type: query
+database_id: Sample Database
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+parameters: []
+parameter_mappings: []
+dataset_query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ breakout:
+ - - field
+ - temporal-unit: month
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+result_metadata:
+- active: true
+ base_type: type/DateTimeWithLocalTZ
+ database_type: TIMESTAMP WITH TIME ZONE
+ display_name: 'Created At: Month'
+ effective_type: type/DateTimeWithLocalTZ
+ field_ref:
+ - field
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ - temporal-unit: month
+ id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ inherited_temporal_unit: month
+ name: CREATED_AT
+ position: 7
+ semantic_type: type/CreationTimestamp
+ source: breakout
+ table_id:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ unit: month
+ visibility_type: normal
+ lib/breakout?: true
+ lib/deduplicated-name: CREATED_AT
+ lib/desired-column-alias: CREATED_AT
+ lib/original-display-name: Created At
+ lib/original-name: CREATED_AT
+ lib/source: source/table-defaults
+ lib/source-column-alias: CREATED_AT
+ lib/temporal-unit: month
+- base_type: type/Float
+ display_name: Sum of Total
+ effective_type: type/Float
+ field_ref:
+ - aggregation
+ - 0
+ name: sum
+ source: aggregation
+ lib/deduplicated-name: sum
+ lib/desired-column-alias: sum
+ lib/original-name: sum
+ lib/source: source/aggregations
+ lib/source-column-alias: sum
+visualization_settings:
+ column_settings:
+ '["name","sum"]':
+ currency: USD
+ currency_style: symbol
+ number_style: currency
+ scalar.compact_primary_number: auto
+ scalar.comparisons:
+ - id: prev_period
+ type: previousPeriod
+ - id: year_ago
+ type: periodsAgo
+ value: 12
+ - id: target
+ label: Monthly Target
+ type: staticNumber
+ value: 50000
+card_schema: 23
+serdes/meta:
+- id: bSj47tilPIkwDIewvMf8z
+ label: total_revenue__smart_scalar_
+ model: Card
+metabase_version: v1.57.1-SNAPSHOT (14ff27d)
+type: question
diff --git a/test_resources/serialization_baseline/collections/snippets/active_product_filter.yaml b/test_resources/serialization_baseline/collections/snippets/active_product_filter.yaml
new file mode 100644
index 00000000000..59336f1711e
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/snippets/active_product_filter.yaml
@@ -0,0 +1,10 @@
+name: Active Product Filter
+entity_id: WyQWnT23PF-SfbYLROllJ
+created_at: '2026-04-02T02:59:02.778668Z'
+content: '"CREATED_AT" >= DATEADD(''year'', -1, CURRENT_TIMESTAMP) AND "total_revenue" > 100'
+creator_id: [email protected]
+template_tags: {}
+serdes/meta:
+- id: WyQWnT23PF-SfbYLROllJ
+ label: active_product_filter
+ model: NativeQuerySnippet
diff --git a/test_resources/serialization_baseline/collections/snippets/active_recent_filter.yaml b/test_resources/serialization_baseline/collections/snippets/active_recent_filter.yaml
new file mode 100644
index 00000000000..16d7cdb293f
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/snippets/active_recent_filter.yaml
@@ -0,0 +1,24 @@
+name: Active Recent Filter
+description: Combines Active Product Filter with Date Range Filter
+entity_id: c5PMqT66HwWoy0m52WTI5
+created_at: '2026-04-02T02:59:02.778668Z'
+content: '{{snippet: Active Product Filter}} AND {{snippet: Date Range Filter}}'
+creator_id: [email protected]
+template_tags:
+ 'snippet: Active Product Filter':
+ display-name: 'Snippet: Active Product Filter'
+ id: dd000001-0000-0000-0000-000000000001
+ name: 'snippet: Active Product Filter'
+ snippet-id: 1
+ snippet-name: Active Product Filter
+ type: snippet
+ 'snippet: Date Range Filter':
+ display-name: 'Snippet: Date Range Filter'
+ id: dd000002-0000-0000-0000-000000000002
+ name: 'snippet: Date Range Filter'
+ snippet-name: Date Range Filter
+ type: snippet
+serdes/meta:
+- id: c5PMqT66HwWoy0m52WTI5
+ label: active_recent_filter
+ model: NativeQuerySnippet
diff --git a/test_resources/serialization_baseline/collections/snippets/date_range_filter.yaml b/test_resources/serialization_baseline/collections/snippets/date_range_filter.yaml
new file mode 100644
index 00000000000..7b7db2c21b2
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/snippets/date_range_filter.yaml
@@ -0,0 +1,10 @@
+name: Date Range Filter
+entity_id: jpIUEStroQyLnJ-MVfeS4
+created_at: '2026-04-02T02:59:02.778668Z'
+content: CREATED_AT BETWEEN '2024-01-01' AND '2024-12-31'
+creator_id: [email protected]
+template_tags: {}
+serdes/meta:
+- id: jpIUEStroQyLnJ-MVfeS4
+ label: date_range_filter
+ model: NativeQuerySnippet
diff --git a/test_resources/serialization_baseline/collections/snippets/shared_collection_2.yaml b/test_resources/serialization_baseline/collections/snippets/shared_collection_2.yaml
deleted file mode 100644
index 54d4cf43ba0..00000000000
--- a/test_resources/serialization_baseline/collections/snippets/shared_collection_2.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-name: Shared Collection
-entity_id: Y6d4QwJgGKw-X1tRh3ir2
-slug: shared_collection
-created_at: '2024-08-28T14:36:15.259947Z'
-namespace: snippets
-serdes/meta:
-- id: Y6d4QwJgGKw-X1tRh3ir2
- label: shared_collection
- model: Collection
diff --git a/test_resources/serialization_baseline/collections/snippets/shared_collection_2/snippet_1.yaml b/test_resources/serialization_baseline/collections/snippets/shared_collection_2/snippet_1.yaml
deleted file mode 100644
index b7743dacfa8..00000000000
--- a/test_resources/serialization_baseline/collections/snippets/shared_collection_2/snippet_1.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-name: Snippet 1
-entity_id: hcSr4xgVEd8AyElRRLu9w
-created_at: '2024-08-28T14:36:15.324887Z'
-collection_id: Y6d4QwJgGKw-X1tRh3ir2
-content: 1 = 1
-creator_id: [email protected]
-template_tags: {}
-serdes/meta:
-- id: hcSr4xgVEd8AyElRRLu9w
- label: snippet_1
- model: NativeQuerySnippet
diff --git a/test_resources/serialization_baseline/collections/snippets/snippet_2.yaml b/test_resources/serialization_baseline/collections/snippets/snippet_2.yaml
deleted file mode 100644
index abc510d862e..00000000000
--- a/test_resources/serialization_baseline/collections/snippets/snippet_2.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-name: Snippet 2
-entity_id: WyQWnT23PF-SfbYLROllJ
-created_at: '2024-08-28T14:36:15.328717Z'
-content: 1 = 1
-creator_id: [email protected]
-template_tags: {}
-serdes/meta:
-- id: WyQWnT23PF-SfbYLROllJ
- label: snippet_2
- model: NativeQuerySnippet
diff --git a/test_resources/serialization_baseline/collections/transforms/daily_order_summary.yaml b/test_resources/serialization_baseline/collections/transforms/daily_order_summary.yaml
new file mode 100644
index 00000000000..e1fdb371470
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/transforms/daily_order_summary.yaml
@@ -0,0 +1,41 @@
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+entity_id: 7XqqzlsonSq4KFyOvtrAm
+name: Daily Order Summary
+source:
+ query:
+ database: Sample Database
+ stages:
+ - native: |-
+ SELECT
+ DATE_TRUNC('day', CREATED_AT) AS order_date,
+ COUNT(*) AS order_count,
+ SUM(TOTAL) AS total_revenue
+ FROM ORDERS
+ GROUP BY 1
+ lib/type: mbql.stage/native
+ lib/type: mbql/query
+ type: query
+source_database_id: Sample Database
+tags:
+- entity_id: qJU4-opN0IFLKDEdmXiYh
+ position: 0
+ tag_id: dUW7nvQHQBdA0Rx0gJckI
+ serdes/meta:
+ - id: qJU4-opN0IFLKDEdmXiYh
+ model: TransformTransformTag
+- entity_id: hTtmHg0mopz6qzrEDukSm
+ position: 1
+ tag_id: 1uWng5tP1gyxr44PJ5FPb
+ serdes/meta:
+ - id: hTtmHg0mopz6qzrEDukSm
+ model: TransformTransformTag
+target:
+ database: Sample Database
+ name: daily_order_summary
+ schema: TRANSFORMS
+ type: table
+serdes/meta:
+- id: 7XqqzlsonSq4KFyOvtrAm
+ label: daily_order_summary
+ model: Transform
diff --git a/test_resources/serialization_baseline/collections/transforms/hourly_product_stats.yaml b/test_resources/serialization_baseline/collections/transforms/hourly_product_stats.yaml
new file mode 100644
index 00000000000..3159454566e
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/transforms/hourly_product_stats.yaml
@@ -0,0 +1,50 @@
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+entity_id: aWiR53tfmHEibiFGuIQeP
+name: Hourly Product Stats
+source:
+ query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - count
+ - {}
+ - - avg
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ breakout:
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+ type: query
+source_database_id: Sample Database
+tags:
+- entity_id: T3caSScVNDqFF8Q-EsM84
+ position: 0
+ tag_id: wYLcUPbtF7jVPO0duGGHR
+ serdes/meta:
+ - id: T3caSScVNDqFF8Q-EsM84
+ model: TransformTransformTag
+target:
+ database: Sample Database
+ name: hourly_product_stats
+ schema: TRANSFORMS
+ type: table
+serdes/meta:
+- id: aWiR53tfmHEibiFGuIQeP
+ label: hourly_product_stats
+ model: Transform
diff --git a/test_resources/serialization_baseline/collections/transforms/monthly_order_summary.yaml b/test_resources/serialization_baseline/collections/transforms/monthly_order_summary.yaml
new file mode 100644
index 00000000000..61987f94a5b
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/transforms/monthly_order_summary.yaml
@@ -0,0 +1,44 @@
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+entity_id: 1fNzUt_CgppinjPk7pGKH
+name: Monthly Order Summary
+source:
+ query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - count
+ - {}
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ breakout:
+ - - field
+ - temporal-unit: month
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - CREATED_AT
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+ type: query
+source_database_id: Sample Database
+tags: []
+target:
+ database: Sample Database
+ name: monthly_order_summary
+ schema: TRANSFORMS
+ type: table
+serdes/meta:
+- id: 1fNzUt_CgppinjPk7pGKH
+ label: monthly_order_summary
+ model: Transform
diff --git a/test_resources/serialization_baseline/collections/transforms/monthly_sales_summary.yaml b/test_resources/serialization_baseline/collections/transforms/monthly_sales_summary.yaml
new file mode 100644
index 00000000000..362d9e6134b
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/transforms/monthly_sales_summary.yaml
@@ -0,0 +1,31 @@
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+entity_id: w7EfUbsxLA7kXBHVXgeaZ
+name: Monthly Sales Summary
+source:
+ query:
+ database: Sample Database
+ stages:
+ - native: |-
+ SELECT
+ DATE_TRUNC('month', o.CREATED_AT) AS month,
+ p.CATEGORY,
+ COUNT(*) AS order_count,
+ SUM(o.TOTAL) AS total_revenue
+ FROM ORDERS o
+ JOIN PRODUCTS p ON o.PRODUCT_ID = p.ID
+ GROUP BY 1, 2
+ lib/type: mbql.stage/native
+ lib/type: mbql/query
+ type: query
+source_database_id: Sample Database
+tags: []
+target:
+ database: Sample Database
+ name: monthly_sales_summary
+ schema: TRANSFORMS
+ type: table
+serdes/meta:
+- id: w7EfUbsxLA7kXBHVXgeaZ
+ label: monthly_sales_summary
+ model: Transform
diff --git a/test_resources/serialization_baseline/collections/transforms/product_revenue_report.yaml b/test_resources/serialization_baseline/collections/transforms/product_revenue_report.yaml
new file mode 100644
index 00000000000..4251f83b361
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/transforms/product_revenue_report.yaml
@@ -0,0 +1,31 @@
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+entity_id: 7JwIkkAG-06-nsl4jzsaq
+name: Product Revenue Report
+source:
+ query:
+ database: Sample Database
+ stages:
+ - native: |-
+ SELECT
+ p.CATEGORY,
+ COUNT(DISTINCT o.ID) AS order_count,
+ SUM(o.TOTAL) AS total_revenue,
+ AVG(o.TOTAL) AS avg_order_value
+ FROM ORDERS o
+ JOIN PRODUCTS p ON o.PRODUCT_ID = p.ID
+ GROUP BY p.CATEGORY
+ lib/type: mbql.stage/native
+ lib/type: mbql/query
+ type: query
+source_database_id: Sample Database
+tags: []
+target:
+ database: Sample Database
+ name: product_revenue_report
+ schema: TRANSFORMS
+ type: table
+serdes/meta:
+- id: 7JwIkkAG-06-nsl4jzsaq
+ label: product_revenue_report
+ model: Transform
diff --git a/test_resources/serialization_baseline/collections/transforms/product_summary.yaml b/test_resources/serialization_baseline/collections/transforms/product_summary.yaml
new file mode 100644
index 00000000000..13f6c63be95
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/transforms/product_summary.yaml
@@ -0,0 +1,44 @@
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+entity_id: rT5vWxYz1aBcDeFgHiJkL
+name: Product Summary
+source:
+ query:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - count
+ - {}
+ - - avg
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ breakout:
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+ type: query
+source_database_id: Sample Database
+tags: []
+target:
+ database: Sample Database
+ name: product_summary
+ schema: TRANSFORMS
+ type: table
+serdes/meta:
+- id: rT5vWxYz1aBcDeFgHiJkL
+ label: product_summary
+ model: Transform
diff --git a/test_resources/serialization_baseline/collections/transforms/python_etl.yaml b/test_resources/serialization_baseline/collections/transforms/python_etl.yaml
deleted file mode 100644
index 4af199c53f6..00000000000
--- a/test_resources/serialization_baseline/collections/transforms/python_etl.yaml
+++ /dev/null
@@ -1,29 +0,0 @@
-created_at: '2025-10-06T20:41:45.536727Z'
-creator_id: [email protected]
-description: A python transform
-entity_id: pythonEtlPythonEtlxxx
-name: Python ETL
-source:
- body: df = ctx.source.orders
- source-database: My Database
- source-tables:
- - alias: orders
- database_id: My Database
- schema: null
- table: Schemaless Table
- table_id:
- - My Database
- - null
- - Schemaless Table
- type: python
-source_database_id: My Database
-tags: []
-target:
- database: My Database
- name: target_table
- schema: public
- type: table
-serdes/meta:
-- id: pythonEtlPythonEtlxxx
- label: python_etl
- model: Transform
diff --git a/test_resources/serialization_baseline/collections/transforms/python_hello_world.yaml b/test_resources/serialization_baseline/collections/transforms/python_hello_world.yaml
new file mode 100644
index 00000000000..a3e41fb7b2a
--- /dev/null
+++ b/test_resources/serialization_baseline/collections/transforms/python_hello_world.yaml
@@ -0,0 +1,26 @@
+created_at: '2026-04-02T02:59:02.778668Z'
+creator_id: [email protected]
+entity_id: g2cRYwopfoL1BW9Y4n3wb
+name: Python Hello World
+source:
+ body: |-
+ import pandas as pd
+
+ def transform():
+ return pd.DataFrame({
+ "greeting": ["Hello", "World"],
+ "number": [1, 2]
+ })
+ source-tables: []
+ type: python
+source_database_id: Sample Database
+tags: []
+target:
+ database: Sample Database
+ name: hello_world
+ schema: TRANSFORMS
+ type: table
+serdes/meta:
+- id: g2cRYwopfoL1BW9Y4n3wb
+ label: python_hello_world
+ model: Transform
diff --git a/test_resources/serialization_baseline/collections/transforms/test_transform.yaml b/test_resources/serialization_baseline/collections/transforms/test_transform.yaml
deleted file mode 100644
index bd685a14e57..00000000000
--- a/test_resources/serialization_baseline/collections/transforms/test_transform.yaml
+++ /dev/null
@@ -1,45 +0,0 @@
-created_at: '2025-10-06T20:41:45.536727Z'
-creator_id: [email protected]
-description: A test transform for serialization
-entity_id: 2HzIFwJ6720JAx07UMavl
-name: Test Transform
-source:
- query:
- "lib/type": mbql/query
- database: My Database
- stages:
- - "lib/type": mbql.stage/mbql
- source-table:
- - My Database
- - null
- - Schemaless Table
- type: query
-source_database_id: My Database
-tags:
-- entity_id: TUtH6I5SqautNtUZoZ6Ti
- position: 0
- tag_id: hourlyhourlyhourlyxxx
- serdes/meta:
- - id: TUtH6I5SqautNtUZoZ6Ti
- model: TransformTransformTag
-- entity_id: -NmhSWP7nG9123qsSsu5m
- position: 1
- tag_id: custometlcustometlcus
- serdes/meta:
- - id: -NmhSWP7nG9123qsSsu5m
- model: TransformTransformTag
-- entity_id: 7I1qAEC0hr1k5zWtsLkAl
- position: 2
- tag_id: dailydailydailydailyx
- serdes/meta:
- - id: 7I1qAEC0hr1k5zWtsLkAl
- model: TransformTransformTag
-target:
- database: My Database
- name: target_table
- schema: public
- type: table
-serdes/meta:
-- id: 2HzIFwJ6720JAx07UMavl
- label: test_transform
- model: Transform
diff --git a/test_resources/serialization_baseline/databases/my_database/my_database.yaml b/test_resources/serialization_baseline/databases/my_database/my_database.yaml
deleted file mode 100644
index f1e082a0f47..00000000000
--- a/test_resources/serialization_baseline/databases/my_database/my_database.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-name: My Database
-engine: h2
-created_at: '2024-08-28T14:38:42.753121Z'
-metadata_sync_schedule: 0 15 * * * ? *
-cache_field_values_schedule: 0 0 13 * * ? *
-settings:
- database-source-dataset-name: test-data
-initial_sync_status: complete
-serdes/meta:
-- id: My Database
- model: Database
diff --git a/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/fields/some_field.yaml b/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/fields/some_field.yaml
deleted file mode 100644
index ff45d9846ef..00000000000
--- a/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/fields/some_field.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
-name: Some Field
-display_name: Some Field
-created_at: '2024-08-28T14:38:43.323162Z'
-visibility_type: normal
-table_id:
-- My Database
-- null
-- Schemaless Table
-database_type: VARCHAR
-base_type: type/Text
-dimensions: []
-position: 1
-custom_position: 0
-database_position: 0
-serdes/meta:
-- id: My Database
- model: Database
-- id: Schemaless Table
- model: Table
-- id: Some Field
- model: Field
diff --git a/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/fields/some_field___fieldvalues.yaml b/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/fields/some_field___fieldvalues.yaml
deleted file mode 100644
index 2eb9902f1b0..00000000000
--- a/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/fields/some_field___fieldvalues.yaml
+++ /dev/null
@@ -1,33 +0,0 @@
-created_at: '2024-08-28T14:38:42.774331Z'
-human_readable_values: []
-last_used_at: '2024-08-28T14:38:42.774331Z'
-type: full
-values:
-- Artisan
-- Asian
-- BBQ
-- Bakery
-- Bar
-- Brewery
-- Burger
-- Coffee Shop
-- Diner
-- Indian
-- Italian
-- Japanese
-- Mexican
-- Middle Eastern
-- Pizza
-- Seafood
-- Steakhouse
-- Tea Room
-- Winery
-serdes/meta:
-- id: My Database
- model: Database
-- id: Schemaless Table
- model: Table
-- id: Some Field
- model: Field
-- id: '0'
- model: FieldValues
diff --git a/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/measures/my_measure.yaml b/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/measures/my_measure.yaml
deleted file mode 100644
index a7f2ceec0dc..00000000000
--- a/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/measures/my_measure.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
-created_at: '2025-12-16T20:33:13.171335Z'
-creator_id: [email protected]
-definition:
- database: My Database
- "lib/type": mbql/query
- stages:
- - "lib/type": mbql.stage/mbql
- aggregation:
- - - sum
- - {}
- - - field
- - base-type: type/Text
- - - My Database
- - null
- - Schemaless Table
- - Some Field
- source-table:
- - My Database
- - null
- - Schemaless Table
-entity_id: 0SHLtATxX8wbutAOlZAtM
-name: My Measure
-table_id:
-- My Database
-- null
-- Schemaless Table
-serdes/meta:
-- id: 0SHLtATxX8wbutAOlZAtM
- label: my_measure
- model: Measure
diff --git a/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/schemaless_table.yaml b/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/schemaless_table.yaml
deleted file mode 100644
index 8c2c580e433..00000000000
--- a/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/schemaless_table.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-name: Schemaless Table
-display_name: Schemaless Table
-created_at: '2024-08-28T14:38:43.319867Z'
-db_id: My Database
-active: true
-field_order: database
-initial_sync_status: complete
-serdes/meta:
-- id: My Database
- model: Database
-- id: Schemaless Table
- model: Table
-data_authority: unconfigured
-data_layer: internal
diff --git a/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/segments/my_segment.yaml b/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/segments/my_segment.yaml
deleted file mode 100644
index 48f463ebace..00000000000
--- a/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/segments/my_segment.yaml
+++ /dev/null
@@ -1,32 +0,0 @@
-created_at: '2024-08-28T14:28:03.451106Z'
-creator_id: [email protected]
-definition:
- "lib/type": mbql/query
- database: My Database
- stages:
- - "lib/type": mbql.stage/mbql
- filters:
- - - <
- - {}
- - - field
- - {}
- - - My Database
- - null
- - Schemaless Table
- - Some Field
- - 18
- source-table:
- - My Database
- - null
- - Schemaless Table
-description: Lookin' for a blueberry
-entity_id: TNdMrOCMHrQc_UtvCbTC5
-name: My Segment
-table_id:
-- My Database
-- null
-- Schemaless Table
-serdes/meta:
-- id: TNdMrOCMHrQc_UtvCbTC5
- label: my_segment
- model: Segment
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/test_data__h2_.yaml b/test_resources/serialization_baseline/databases/sample_database/sample_database.yaml
similarity index 78%
rename from test_resources/serialization_baseline/databases/test_data__h2_/test_data__h2_.yaml
rename to test_resources/serialization_baseline/databases/sample_database/sample_database.yaml
index 64bf332dfd1..33119db4275 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/test_data__h2_.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/sample_database.yaml
@@ -1,4 +1,4 @@
-name: test-data (h2)
+name: Sample Database
engine: h2
dbms_version:
flavor: H2
@@ -9,10 +9,10 @@ dbms_version:
created_at: '2024-08-28T14:38:42.764234Z'
timezone: UTC
metadata_sync_schedule: 0 22 * * * ? *
-cache_field_values_schedule: 0 0 12 * * ? *
+cache_field_values_schedule: 0 0 7 * * ? *
settings:
database-source-dataset-name: test-data
initial_sync_status: complete
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/created_at.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/created_at.yaml
similarity index 92%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/created_at.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/created_at.yaml
index 7c8d20f5b3a..a211917ebb5 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/created_at.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/created_at.yaml
@@ -3,7 +3,7 @@ display_name: Created At
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- ORDERS
database_type: TIMESTAMP WITH TIME ZONE
@@ -15,7 +15,7 @@ position: 7
custom_position: 0
database_position: 7
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/discount.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/discount.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/discount.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/discount.yaml
index f28eb0cc55e..112e0d246ae 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/discount.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/discount.yaml
@@ -3,7 +3,7 @@ display_name: Discount
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- ORDERS
database_type: DOUBLE PRECISION
@@ -15,7 +15,7 @@ position: 6
custom_position: 0
database_position: 6
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/id.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/id.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/id.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/id.yaml
index 06385ebbf58..bcbcd0fde56 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/id.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/id.yaml
@@ -3,7 +3,7 @@ display_name: ID
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- ORDERS
database_type: BIGINT
@@ -16,7 +16,7 @@ position: 0
custom_position: 0
database_position: 0
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/product_id.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/product_id.yaml
similarity index 89%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/product_id.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/product_id.yaml
index fb5e841f451..866d33c98a7 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/product_id.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/product_id.yaml
@@ -3,7 +3,7 @@ display_name: Product ID
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- ORDERS
database_type: INTEGER
@@ -11,7 +11,7 @@ base_type: type/Integer
effective_type: type/Integer
semantic_type: type/FK
fk_target_field_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PRODUCTS
- ID
@@ -20,7 +20,7 @@ position: 2
custom_position: 0
database_position: 2
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/quantity.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/quantity.yaml
similarity index 92%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/quantity.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/quantity.yaml
index ef8a97948da..79dc14f91be 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/quantity.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/quantity.yaml
@@ -3,7 +3,7 @@ display_name: Quantity
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- ORDERS
database_type: INTEGER
@@ -16,7 +16,7 @@ custom_position: 0
database_position: 8
has_field_values: auto-list
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/quantity___fieldvalues.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/quantity___fieldvalues.yaml
similarity index 96%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/quantity___fieldvalues.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/quantity___fieldvalues.yaml
index 34a1e9e7912..a8cb745cf27 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/quantity___fieldvalues.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/quantity___fieldvalues.yaml
@@ -81,7 +81,7 @@ values:
- 88
- 100
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/subtotal.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/subtotal.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/subtotal.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/subtotal.yaml
index 0e771050076..81bce3623fe 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/subtotal.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/subtotal.yaml
@@ -3,7 +3,7 @@ display_name: Subtotal
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- ORDERS
database_type: DOUBLE PRECISION
@@ -14,7 +14,7 @@ position: 3
custom_position: 0
database_position: 3
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/tax.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/tax.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/tax.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/tax.yaml
index 63ad03bfb0a..04a6b2c0c6f 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/tax.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/tax.yaml
@@ -3,7 +3,7 @@ display_name: Tax
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- ORDERS
database_type: DOUBLE PRECISION
@@ -14,7 +14,7 @@ position: 4
custom_position: 0
database_position: 4
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/total.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/total.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/total.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/total.yaml
index ca70c197802..674ba4a460f 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/total.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/total.yaml
@@ -3,7 +3,7 @@ display_name: Total
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- ORDERS
database_type: DOUBLE PRECISION
@@ -14,7 +14,7 @@ position: 5
custom_position: 0
database_position: 5
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/fields/some_field___fieldusersettings.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/total___fieldusersettings.yaml
similarity index 53%
rename from test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/fields/some_field___fieldusersettings.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/total___fieldusersettings.yaml
index 27993435606..8eeab41c8cc 100644
--- a/test_resources/serialization_baseline/databases/my_database/tables/schemaless_table/fields/some_field___fieldusersettings.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/total___fieldusersettings.yaml
@@ -1,11 +1,13 @@
created_at: '2025-06-13T12:52:06.383265Z'
-description: Some custom Description
+description: Total order amount including tax
serdes/meta:
-- id: My Database
+- id: Sample Database
model: Database
-- id: Schemaless Table
+- id: PUBLIC
+ model: Schema
+- id: ORDERS
model: Table
-- id: Some Field
+- id: TOTAL
model: Field
- id: '1'
model: FieldUserSettings
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/user_id.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/user_id.yaml
similarity index 89%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/user_id.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/user_id.yaml
index 8d1aabf252f..0f1728417eb 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/fields/user_id.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/fields/user_id.yaml
@@ -3,7 +3,7 @@ display_name: User ID
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- ORDERS
database_type: INTEGER
@@ -11,7 +11,7 @@ base_type: type/Integer
effective_type: type/Integer
semantic_type: type/FK
fk_target_field_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PEOPLE
- ID
@@ -20,7 +20,7 @@ position: 1
custom_position: 0
database_position: 1
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/measures/average_revenue_per_order.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/measures/average_revenue_per_order.yaml
new file mode 100644
index 00000000000..0e8d1ea2dc2
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/measures/average_revenue_per_order.yaml
@@ -0,0 +1,31 @@
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+definition:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - avg
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+description: Uses Total Revenue and Order Count measures
+entity_id: dc8eiyLh9S0IKwV_UuvTz
+name: Average Revenue Per Order
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+serdes/meta:
+- id: dc8eiyLh9S0IKwV_UuvTz
+ label: average_revenue_per_order
+ model: Measure
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/measures/median_order_total.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/measures/median_order_total.yaml
new file mode 100644
index 00000000000..a88b81aaf3d
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/measures/median_order_total.yaml
@@ -0,0 +1,30 @@
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+definition:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - median
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+entity_id: d4G5fMj5smJ17Nd0dvE2A
+name: Median Order Total
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+serdes/meta:
+- id: d4G5fMj5smJ17Nd0dvE2A
+ label: median_order_total
+ model: Measure
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/measures/order_count.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/measures/order_count.yaml
new file mode 100644
index 00000000000..a36ac131224
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/measures/order_count.yaml
@@ -0,0 +1,24 @@
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+definition:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - count
+ - {}
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+entity_id: DBap2523KuN4Lt-cYrUjF
+name: Order Count
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+serdes/meta:
+- id: DBap2523KuN4Lt-cYrUjF
+ label: order_count
+ model: Measure
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/measures/total_revenue.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/measures/total_revenue.yaml
new file mode 100644
index 00000000000..943c605433c
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/measures/total_revenue.yaml
@@ -0,0 +1,30 @@
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+definition:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - sum
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+entity_id: 8WteUpyQQqObrxLv4KQ-j
+name: Total Revenue
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+serdes/meta:
+- id: 8WteUpyQQqObrxLv4KQ-j
+ label: total_revenue
+ model: Measure
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/orders.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/orders.yaml
similarity index 88%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/orders.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/orders.yaml
index 542eac77301..a0980a1f2c7 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/orders/orders.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/orders.yaml
@@ -1,14 +1,14 @@
name: ORDERS
display_name: Orders
created_at: '2024-08-28T14:38:42.774331Z'
-db_id: test-data (h2)
+db_id: Sample Database
schema: PUBLIC
entity_type: entity/TransactionTable
active: true
field_order: database
initial_sync_status: complete
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/segments/large_orders.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/segments/large_orders.yaml
new file mode 100644
index 00000000000..94ef632c555
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/orders/segments/large_orders.yaml
@@ -0,0 +1,31 @@
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+definition:
+ database: Sample Database
+ stages:
+ - filters:
+ - - '>'
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - ORDERS
+ - TOTAL
+ - 50
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - ORDERS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+entity_id: OaFXAvEzPvu9ZXW5PUMRa
+name: Large Orders
+table_id:
+- Sample Database
+- PUBLIC
+- ORDERS
+serdes/meta:
+- id: OaFXAvEzPvu9ZXW5PUMRa
+ label: large_orders
+ model: Segment
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/address.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/address.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/address.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/address.yaml
index 5a04aae5f1e..8799f1f85ca 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/address.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/address.yaml
@@ -3,7 +3,7 @@ display_name: Address
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PEOPLE
database_type: CHARACTER VARYING
@@ -14,7 +14,7 @@ position: 1
custom_position: 0
database_position: 1
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/birth_date.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/birth_date.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/birth_date.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/birth_date.yaml
index a1690b97fbe..4683d0d55c4 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/birth_date.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/birth_date.yaml
@@ -3,7 +3,7 @@ display_name: Birth Date
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PEOPLE
database_type: DATE
@@ -14,7 +14,7 @@ position: 9
custom_position: 0
database_position: 9
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/city.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/city.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/city.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/city.yaml
index a433b133f61..02a0085908a 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/city.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/city.yaml
@@ -3,7 +3,7 @@ display_name: City
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PEOPLE
database_type: CHARACTER VARYING
@@ -15,7 +15,7 @@ position: 5
custom_position: 0
database_position: 5
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/created_at.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/created_at.yaml
similarity index 92%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/created_at.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/created_at.yaml
index 1436a74c838..b052728ab8f 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/created_at.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/created_at.yaml
@@ -3,7 +3,7 @@ display_name: Created At
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PEOPLE
database_type: TIMESTAMP WITH TIME ZONE
@@ -15,7 +15,7 @@ position: 12
custom_position: 0
database_position: 12
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/email.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/email.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/email.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/email.yaml
index c575a2ebed0..591a57ed486 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/email.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/email.yaml
@@ -3,7 +3,7 @@ display_name: Email
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PEOPLE
database_type: CHARACTER VARYING
@@ -15,7 +15,7 @@ position: 2
custom_position: 0
database_position: 2
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/id.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/id.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/id.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/id.yaml
index baa613227cf..205d34845bc 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/id.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/id.yaml
@@ -3,7 +3,7 @@ display_name: ID
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PEOPLE
database_type: BIGINT
@@ -16,7 +16,7 @@ position: 0
custom_position: 0
database_position: 0
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/latitude.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/latitude.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/latitude.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/latitude.yaml
index 9426a063209..310961cf5ca 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/latitude.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/latitude.yaml
@@ -3,7 +3,7 @@ display_name: Latitude
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PEOPLE
database_type: DOUBLE PRECISION
@@ -15,7 +15,7 @@ position: 11
custom_position: 0
database_position: 11
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/longitude.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/longitude.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/longitude.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/longitude.yaml
index 2f55043e653..e76d154c4b5 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/longitude.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/longitude.yaml
@@ -3,7 +3,7 @@ display_name: Longitude
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PEOPLE
database_type: DOUBLE PRECISION
@@ -15,7 +15,7 @@ position: 6
custom_position: 0
database_position: 6
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/name.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/name.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/name.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/name.yaml
index ee8a21bc818..19670b2d6b5 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/name.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/name.yaml
@@ -3,7 +3,7 @@ display_name: Name
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PEOPLE
database_type: CHARACTER VARYING
@@ -15,7 +15,7 @@ position: 4
custom_position: 0
database_position: 4
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/password.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/password.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/password.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/password.yaml
index a4d95a76efd..9d9d4e53f8d 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/password.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/password.yaml
@@ -3,7 +3,7 @@ display_name: Password
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PEOPLE
database_type: CHARACTER VARYING
@@ -14,7 +14,7 @@ position: 3
custom_position: 0
database_position: 3
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/source.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/source.yaml
similarity index 92%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/source.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/source.yaml
index 70e1be82882..1e9c4e7e222 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/source.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/source.yaml
@@ -3,7 +3,7 @@ display_name: Source
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PEOPLE
database_type: CHARACTER VARYING
@@ -16,7 +16,7 @@ custom_position: 0
database_position: 8
has_field_values: auto-list
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/source___fieldvalues.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/source___fieldvalues.yaml
similarity index 93%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/source___fieldvalues.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/source___fieldvalues.yaml
index ad6ebf4492f..87f10dca20b 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/source___fieldvalues.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/source___fieldvalues.yaml
@@ -9,7 +9,7 @@ values:
- Organic
- Twitter
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/state.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/state.yaml
similarity index 92%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/state.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/state.yaml
index 51c00d4280c..1e0d6b9cd02 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/state.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/state.yaml
@@ -3,7 +3,7 @@ display_name: State
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PEOPLE
database_type: CHARACTER VARYING
@@ -16,7 +16,7 @@ custom_position: 0
database_position: 7
has_field_values: auto-list
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/state___fieldvalues.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/state___fieldvalues.yaml
similarity index 95%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/state___fieldvalues.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/state___fieldvalues.yaml
index ce85b7c648c..66687e2095a 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/state___fieldvalues.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/state___fieldvalues.yaml
@@ -53,7 +53,7 @@ values:
- WV
- WY
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/zip.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/zip.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/zip.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/zip.yaml
index e821baedfd4..b1a15f40504 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/fields/zip.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/fields/zip.yaml
@@ -3,7 +3,7 @@ display_name: Zip
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PEOPLE
database_type: CHARACTER VARYING
@@ -14,7 +14,7 @@ position: 10
custom_position: 0
database_position: 10
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/people.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/people.yaml
similarity index 87%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/people.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/people.yaml
index 3ac615bfaae..48e9725f584 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/people/people.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/people.yaml
@@ -1,14 +1,14 @@
name: PEOPLE
display_name: People
created_at: '2024-08-28T14:38:42.774331Z'
-db_id: test-data (h2)
+db_id: Sample Database
schema: PUBLIC
entity_type: entity/UserTable
active: true
field_order: database
initial_sync_status: complete
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/segments/nyc_area_people.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/segments/nyc_area_people.yaml
new file mode 100644
index 00000000000..3548c53c66b
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/people/segments/nyc_area_people.yaml
@@ -0,0 +1,41 @@
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+definition:
+ database: Sample Database
+ stages:
+ - filters:
+ - - inside
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LATITUDE
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PEOPLE
+ - LONGITUDE
+ - 40.92
+ - -74.26
+ - 40.49
+ - -73.7
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PEOPLE
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+description: People located within the NYC bounding box
+entity_id: D2R9JpvI8sMfYWqfPsTkx
+name: NYC Area People
+table_id:
+- Sample Database
+- PUBLIC
+- PEOPLE
+serdes/meta:
+- id: D2R9JpvI8sMfYWqfPsTkx
+ label: nyc_area_people
+ model: Segment
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/category.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/category.yaml
similarity index 92%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/category.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/category.yaml
index 85319c26709..18d7d3e4fbd 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/category.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/category.yaml
@@ -3,7 +3,7 @@ display_name: Category
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PRODUCTS
database_type: CHARACTER VARYING
@@ -16,7 +16,7 @@ custom_position: 0
database_position: 3
has_field_values: auto-list
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/category___fieldvalues.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/category___fieldvalues.yaml
similarity index 93%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/category___fieldvalues.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/category___fieldvalues.yaml
index 661b05a99c7..6b641c0e126 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/category___fieldvalues.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/category___fieldvalues.yaml
@@ -8,7 +8,7 @@ values:
- Gizmo
- Widget
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/created_at.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/created_at.yaml
similarity index 92%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/created_at.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/created_at.yaml
index 08cc5d03ede..526c6bb421f 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/created_at.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/created_at.yaml
@@ -3,7 +3,7 @@ display_name: Created At
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PRODUCTS
database_type: TIMESTAMP WITH TIME ZONE
@@ -15,7 +15,7 @@ position: 7
custom_position: 0
database_position: 7
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/ean.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/ean.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/ean.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/ean.yaml
index 54260bec52d..3995a3c84ea 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/ean.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/ean.yaml
@@ -3,7 +3,7 @@ display_name: Ean
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PRODUCTS
database_type: CHARACTER VARYING
@@ -15,7 +15,7 @@ custom_position: 0
database_position: 1
has_field_values: auto-list
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/ean___fieldvalues.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/ean___fieldvalues.yaml
similarity index 99%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/ean___fieldvalues.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/ean___fieldvalues.yaml
index b3dfcbffceb..cb6ff0e68a7 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/ean___fieldvalues.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/ean___fieldvalues.yaml
@@ -204,7 +204,7 @@ values:
- '9802920493181'
- '9978391194435'
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/id.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/id.yaml
similarity index 92%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/id.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/id.yaml
index b4dc49289ee..a9ba2b48d75 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/id.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/id.yaml
@@ -3,7 +3,7 @@ display_name: ID
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PRODUCTS
database_type: BIGINT
@@ -16,7 +16,7 @@ position: 0
custom_position: 0
database_position: 0
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/price.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/price.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/price.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/price.yaml
index 3341c1b1a4a..c9ce63d32fa 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/price.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/price.yaml
@@ -3,7 +3,7 @@ display_name: Price
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PRODUCTS
database_type: DOUBLE PRECISION
@@ -14,7 +14,7 @@ position: 5
custom_position: 0
database_position: 5
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/rating.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/rating.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/rating.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/rating.yaml
index 04fd91ea04c..2ff80cc8807 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/rating.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/rating.yaml
@@ -3,7 +3,7 @@ display_name: Rating
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PRODUCTS
database_type: DOUBLE PRECISION
@@ -15,7 +15,7 @@ position: 6
custom_position: 0
database_position: 6
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/title.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/title.yaml
similarity index 92%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/title.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/title.yaml
index 8b874693628..d144cc26791 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/title.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/title.yaml
@@ -3,7 +3,7 @@ display_name: Title
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PRODUCTS
database_type: CHARACTER VARYING
@@ -16,7 +16,7 @@ custom_position: 0
database_position: 2
has_field_values: auto-list
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/title___fieldvalues.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/title___fieldvalues.yaml
similarity index 99%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/title___fieldvalues.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/title___fieldvalues.yaml
index b84c8ee0b22..e1edfca9035 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/title___fieldvalues.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/title___fieldvalues.yaml
@@ -203,7 +203,7 @@ values:
- Synergistic Steel Chair
- Synergistic Wool Coat
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/vendor.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/vendor.yaml
similarity index 92%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/vendor.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/vendor.yaml
index c2c6ef63757..581d6982367 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/vendor.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/vendor.yaml
@@ -3,7 +3,7 @@ display_name: Vendor
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PRODUCTS
database_type: CHARACTER VARYING
@@ -16,7 +16,7 @@ custom_position: 0
database_position: 4
has_field_values: auto-list
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/vendor___fieldvalues.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/vendor___fieldvalues.yaml
similarity index 99%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/vendor___fieldvalues.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/vendor___fieldvalues.yaml
index 8922c0898a1..e5c9c1b52b8 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/fields/vendor___fieldvalues.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/fields/vendor___fieldvalues.yaml
@@ -204,7 +204,7 @@ values:
- Zemlak, Botsford and Corkery
- Zemlak-Wiegand
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/measures/average_product_price.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/measures/average_product_price.yaml
new file mode 100644
index 00000000000..c0f0fb4211d
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/measures/average_product_price.yaml
@@ -0,0 +1,30 @@
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+definition:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - avg
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+entity_id: xK7mPqR2sT4uVwXyZ9a1b
+name: Average Product Price
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+serdes/meta:
+- id: xK7mPqR2sT4uVwXyZ9a1b
+ label: average_product_price
+ model: Measure
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/measures/average_product_price_2.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/measures/average_product_price_2.yaml
new file mode 100644
index 00000000000..e3e71b2acc5
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/measures/average_product_price_2.yaml
@@ -0,0 +1,30 @@
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+definition:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - avg
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+entity_id: mSrAvgProdPrice00008x
+name: Average Product Price
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+serdes/meta:
+- id: mSrAvgProdPrice00008x
+ label: average_product_price
+ model: Measure
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/measures/average_widget_price.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/measures/average_widget_price.yaml
new file mode 100644
index 00000000000..50d610a421f
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/measures/average_widget_price.yaml
@@ -0,0 +1,31 @@
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+definition:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - avg
+ - {}
+ - - field
+ - base-type: type/Float
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+description: Average price of Widget products — uses Widget Products segment and Average Product Price measure
+entity_id: K7cMzOau9SI2h8hCx936w
+name: Average Widget Price
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+serdes/meta:
+- id: K7cMzOau9SI2h8hCx936w
+ label: average_widget_price
+ model: Measure
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/measures/product_count.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/measures/product_count.yaml
new file mode 100644
index 00000000000..ec4d593dfb9
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/measures/product_count.yaml
@@ -0,0 +1,30 @@
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+definition:
+ database: Sample Database
+ stages:
+ - aggregation:
+ - - distinct
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - ID
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+entity_id: 8kxQ2Wr7PmN5dLf3hYz9v
+name: Product Count
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+serdes/meta:
+- id: 8kxQ2Wr7PmN5dLf3hYz9v
+ label: product_count
+ model: Measure
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/products.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/products.yaml
similarity index 88%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/products.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/products.yaml
index c2275f5bb17..daf95beb220 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/products/products.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/products.yaml
@@ -1,14 +1,14 @@
name: PRODUCTS
display_name: Products
created_at: '2024-08-28T14:38:42.774331Z'
-db_id: test-data (h2)
+db_id: Sample Database
schema: PUBLIC
entity_type: entity/ProductTable
active: true
field_order: database
initial_sync_status: complete
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/segments/premium_widgets.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/segments/premium_widgets.yaml
new file mode 100644
index 00000000000..d6d42e7b567
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/segments/premium_widgets.yaml
@@ -0,0 +1,35 @@
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+definition:
+ database: Sample Database
+ stages:
+ - filters:
+ - - segment
+ - {}
+ - aB3kLmN9pQrStUvWxYz1a
+ - - '>'
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - 50
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+description: Widget products priced above $50 — refines the Widget Products segment
+entity_id: 2hxhoN3HrQJIaWc5umpBn
+name: Premium Widgets
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+serdes/meta:
+- id: 2hxhoN3HrQJIaWc5umpBn
+ label: premium_widgets
+ model: Segment
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/segments/recent_mid_range_products.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/segments/recent_mid_range_products.yaml
new file mode 100644
index 00000000000..de1e9b27086
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/segments/recent_mid_range_products.yaml
@@ -0,0 +1,61 @@
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+definition:
+ database: Sample Database
+ stages:
+ - filters:
+ - - between
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - PRICE
+ - 20
+ - 100
+ - - not-null
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - RATING
+ - - time-interval
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CREATED_AT
+ - -1
+ - year
+ - - not
+ - {}
+ - - is-null
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+description: Products created in last year, priced 20-100, not null rating
+entity_id: wdYkSSArR5ymVGa0pvb47
+name: Recent Mid-Range Products
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+serdes/meta:
+- id: wdYkSSArR5ymVGa0pvb47
+ label: recent_mid_range_products
+ model: Segment
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/segments/searchable_products.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/segments/searchable_products.yaml
new file mode 100644
index 00000000000..94e373c6094
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/segments/searchable_products.yaml
@@ -0,0 +1,67 @@
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+definition:
+ database: Sample Database
+ stages:
+ - filters:
+ - - not-empty
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - - contains
+ - case-sensitive: false
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - awesome
+ - - starts-with
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - VENDOR
+ - A
+ - - does-not-contain
+ - case-sensitive: false
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - TITLE
+ - discontinued
+ - - ends-with
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - EAN
+ - '0'
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+description: Products with non-empty title containing "awesome", vendor starting with "A"
+entity_id: yZptbJRR3S8L9S9r0ZF8M
+name: Searchable Products
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+serdes/meta:
+- id: yZptbJRR3S8L9S9r0ZF8M
+ label: searchable_products
+ model: Segment
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/segments/widget_products.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/segments/widget_products.yaml
new file mode 100644
index 00000000000..bfba5d34bdf
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/products/segments/widget_products.yaml
@@ -0,0 +1,31 @@
+created_at: '2026-04-02T01:50:06.081195Z'
+creator_id: [email protected]
+definition:
+ database: Sample Database
+ stages:
+ - filters:
+ - - =
+ - {}
+ - - field
+ - {}
+ - - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ - CATEGORY
+ - Widget
+ source-table:
+ - Sample Database
+ - PUBLIC
+ - PRODUCTS
+ lib/type: mbql.stage/mbql
+ lib/type: mbql/query
+entity_id: aB3kLmN9pQrStUvWxYz1a
+name: Widget Products
+table_id:
+- Sample Database
+- PUBLIC
+- PRODUCTS
+serdes/meta:
+- id: aB3kLmN9pQrStUvWxYz1a
+ label: widget_products
+ model: Segment
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/body.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/body.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/body.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/body.yaml
index 3e48beaeeb4..b034f9dea89 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/body.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/body.yaml
@@ -3,7 +3,7 @@ display_name: Body
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- REVIEWS
database_type: CHARACTER VARYING
@@ -15,7 +15,7 @@ position: 4
custom_position: 0
database_position: 4
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/created_at.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/created_at.yaml
similarity index 92%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/created_at.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/created_at.yaml
index 988e94cc007..7e40538f59e 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/created_at.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/created_at.yaml
@@ -3,7 +3,7 @@ display_name: Created At
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- REVIEWS
database_type: TIMESTAMP WITH TIME ZONE
@@ -15,7 +15,7 @@ position: 5
custom_position: 0
database_position: 5
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/id.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/id.yaml
similarity index 92%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/id.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/id.yaml
index d7818000a2a..da92b75c923 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/id.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/id.yaml
@@ -3,7 +3,7 @@ display_name: ID
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- REVIEWS
database_type: BIGINT
@@ -16,7 +16,7 @@ position: 0
custom_position: 0
database_position: 0
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/product_id.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/product_id.yaml
similarity index 89%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/product_id.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/product_id.yaml
index c9aa204d546..fa1cb1448b4 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/product_id.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/product_id.yaml
@@ -3,7 +3,7 @@ display_name: Product ID
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- REVIEWS
database_type: INTEGER
@@ -11,7 +11,7 @@ base_type: type/Integer
effective_type: type/Integer
semantic_type: type/FK
fk_target_field_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- PRODUCTS
- ID
@@ -20,7 +20,7 @@ position: 1
custom_position: 0
database_position: 1
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/rating.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/rating.yaml
similarity index 92%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/rating.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/rating.yaml
index 632ffdcf948..1922f31c087 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/rating.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/rating.yaml
@@ -3,7 +3,7 @@ display_name: Rating
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- REVIEWS
database_type: INTEGER
@@ -16,7 +16,7 @@ custom_position: 0
database_position: 3
has_field_values: auto-list
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/rating___fieldvalues.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/rating___fieldvalues.yaml
similarity index 93%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/rating___fieldvalues.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/rating___fieldvalues.yaml
index 5a297729e3c..af6a8a027f7 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/rating___fieldvalues.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/rating___fieldvalues.yaml
@@ -9,7 +9,7 @@ values:
- 4
- 5
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/reviewer.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/reviewer.yaml
similarity index 91%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/reviewer.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/reviewer.yaml
index d7b900200f0..d608a4526ee 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/fields/reviewer.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/fields/reviewer.yaml
@@ -3,7 +3,7 @@ display_name: Reviewer
created_at: '2024-08-28T14:38:42.774331Z'
visibility_type: normal
table_id:
-- test-data (h2)
+- Sample Database
- PUBLIC
- REVIEWS
database_type: CHARACTER VARYING
@@ -14,7 +14,7 @@ position: 2
custom_position: 0
database_position: 2
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/reviews.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/reviews.yaml
similarity index 88%
rename from test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/reviews.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/reviews.yaml
index ea1365627ed..7c12de7754f 100644
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/reviews/reviews.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/public/tables/reviews/reviews.yaml
@@ -1,14 +1,14 @@
name: REVIEWS
display_name: Reviews
created_at: '2024-08-28T14:38:42.774331Z'
-db_id: test-data (h2)
+db_id: Sample Database
schema: PUBLIC
entity_type: entity/GenericTable
active: true
field_order: database
initial_sync_status: complete
serdes/meta:
-- id: test-data (h2)
+- id: Sample Database
model: Database
- id: PUBLIC
model: Schema
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/daily_order_summary/daily_order_summary.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/daily_order_summary/daily_order_summary.yaml
new file mode 100644
index 00000000000..9d1a3fb3e70
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/daily_order_summary/daily_order_summary.yaml
@@ -0,0 +1,18 @@
+name: daily_order_summary
+display_name: Daily Order Summary
+created_at: '2026-04-02T03:01:23.703545Z'
+db_id: Sample Database
+schema: TRANSFORMS
+active: false
+field_order: database
+initial_sync_status: complete
+serdes/meta:
+- id: Sample Database
+ model: Database
+- id: TRANSFORMS
+ model: Schema
+- id: daily_order_summary
+ model: Table
+data_authority: computed
+data_layer: internal
+data_source: metabase-transform
diff --git a/test_resources/serialization_baseline/databases/my_database/schemas/public_2/tables/target_table/target_table.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/hello_world/hello_world.yaml
similarity index 52%
rename from test_resources/serialization_baseline/databases/my_database/schemas/public_2/tables/target_table/target_table.yaml
rename to test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/hello_world/hello_world.yaml
index 836c8f9814b..b963ffa2895 100644
--- a/test_resources/serialization_baseline/databases/my_database/schemas/public_2/tables/target_table/target_table.yaml
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/hello_world/hello_world.yaml
@@ -1,17 +1,17 @@
-name: target_table
-display_name: Target Table
-created_at: '2026-03-09T17:33:23.746321Z'
-db_id: My Database
-schema: public
+name: hello_world
+display_name: Hello World
+created_at: '2026-04-02T03:01:23.703545Z'
+db_id: Sample Database
+schema: TRANSFORMS
active: false
field_order: database
initial_sync_status: complete
serdes/meta:
-- id: My Database
+- id: Sample Database
model: Database
-- id: public
+- id: TRANSFORMS
model: Schema
-- id: target_table
+- id: hello_world
model: Table
data_authority: computed
data_layer: internal
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/hourly_product_stats/hourly_product_stats.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/hourly_product_stats/hourly_product_stats.yaml
new file mode 100644
index 00000000000..0587ed99a90
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/hourly_product_stats/hourly_product_stats.yaml
@@ -0,0 +1,18 @@
+name: hourly_product_stats
+display_name: Hourly Product Stats
+created_at: '2026-04-02T03:01:23.703545Z'
+db_id: Sample Database
+schema: TRANSFORMS
+active: false
+field_order: database
+initial_sync_status: complete
+serdes/meta:
+- id: Sample Database
+ model: Database
+- id: TRANSFORMS
+ model: Schema
+- id: hourly_product_stats
+ model: Table
+data_authority: computed
+data_layer: internal
+data_source: metabase-transform
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/monthly_order_summary/monthly_order_summary.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/monthly_order_summary/monthly_order_summary.yaml
new file mode 100644
index 00000000000..0b5f9181555
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/monthly_order_summary/monthly_order_summary.yaml
@@ -0,0 +1,18 @@
+name: monthly_order_summary
+display_name: Monthly Order Summary
+created_at: '2026-04-02T03:01:23.703545Z'
+db_id: Sample Database
+schema: TRANSFORMS
+active: false
+field_order: database
+initial_sync_status: complete
+serdes/meta:
+- id: Sample Database
+ model: Database
+- id: TRANSFORMS
+ model: Schema
+- id: monthly_order_summary
+ model: Table
+data_authority: computed
+data_layer: internal
+data_source: metabase-transform
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/monthly_sales_summary/monthly_sales_summary.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/monthly_sales_summary/monthly_sales_summary.yaml
new file mode 100644
index 00000000000..19cac9fb7f1
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/monthly_sales_summary/monthly_sales_summary.yaml
@@ -0,0 +1,18 @@
+name: monthly_sales_summary
+display_name: Monthly Sales Summary
+created_at: '2026-04-02T03:01:23.703545Z'
+db_id: Sample Database
+schema: TRANSFORMS
+active: false
+field_order: database
+initial_sync_status: complete
+serdes/meta:
+- id: Sample Database
+ model: Database
+- id: TRANSFORMS
+ model: Schema
+- id: monthly_sales_summary
+ model: Table
+data_authority: computed
+data_layer: internal
+data_source: metabase-transform
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/product_revenue_report/product_revenue_report.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/product_revenue_report/product_revenue_report.yaml
new file mode 100644
index 00000000000..05ebe49f1e3
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/product_revenue_report/product_revenue_report.yaml
@@ -0,0 +1,18 @@
+name: product_revenue_report
+display_name: Product Revenue Report
+created_at: '2026-04-02T03:01:23.703545Z'
+db_id: Sample Database
+schema: TRANSFORMS
+active: false
+field_order: database
+initial_sync_status: complete
+serdes/meta:
+- id: Sample Database
+ model: Database
+- id: TRANSFORMS
+ model: Schema
+- id: product_revenue_report
+ model: Table
+data_authority: computed
+data_layer: internal
+data_source: metabase-transform
diff --git a/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/product_summary/product_summary.yaml b/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/product_summary/product_summary.yaml
new file mode 100644
index 00000000000..c76153d9dfe
--- /dev/null
+++ b/test_resources/serialization_baseline/databases/sample_database/schemas/transforms/tables/product_summary/product_summary.yaml
@@ -0,0 +1,18 @@
+name: product_summary
+display_name: Product Summary
+created_at: '2026-04-02T03:01:23.703545Z'
+db_id: Sample Database
+schema: TRANSFORMS
+active: false
+field_order: database
+initial_sync_status: complete
+serdes/meta:
+- id: Sample Database
+ model: Database
+- id: TRANSFORMS
+ model: Schema
+- id: product_summary
+ model: Table
+data_authority: computed
+data_layer: internal
+data_source: metabase-transform
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/categories/categories.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/categories/categories.yaml
deleted file mode 100644
index 2f4aea708ca..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/categories/categories.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: CATEGORIES
-display_name: Categories
-created_at: '2024-08-28T14:38:42.774331Z'
-db_id: test-data (h2)
-schema: PUBLIC
-entity_type: entity/GenericTable
-active: true
-field_order: database
-initial_sync_status: complete
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: CATEGORIES
- model: Table
-data_authority: unconfigured
-data_layer: internal
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/categories/fields/id.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/categories/fields/id.yaml
deleted file mode 100644
index 6493c7480cc..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/categories/fields/id.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-name: ID
-display_name: ID
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- CATEGORIES
-database_type: BIGINT
-base_type: type/BigInteger
-effective_type: type/BigInteger
-semantic_type: type/PK
-database_is_auto_increment: true
-dimensions: []
-position: 0
-custom_position: 0
-database_position: 0
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: CATEGORIES
- model: Table
-- id: ID
- model: Field
-database_indexed: true
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/categories/fields/name.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/categories/fields/name.yaml
deleted file mode 100644
index aef6a821d14..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/categories/fields/name.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
-name: NAME
-display_name: Name
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- CATEGORIES
-database_type: CHARACTER VARYING
-base_type: type/Text
-effective_type: type/Text
-semantic_type: type/Name
-database_required: true
-dimensions: []
-position: 1
-custom_position: 0
-database_position: 1
-has_field_values: auto-list
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: CATEGORIES
- model: Table
-- id: NAME
- model: Field
-database_indexed: false
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/categories/fields/name___fieldvalues.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/categories/fields/name___fieldvalues.yaml
deleted file mode 100644
index fb4f5d5bc10..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/categories/fields/name___fieldvalues.yaml
+++ /dev/null
@@ -1,91 +0,0 @@
-created_at: '2024-08-28T14:38:42.774331Z'
-human_readable_values: []
-last_used_at: '2024-08-28T14:38:42.774331Z'
-type: full
-values:
-- African
-- American
-- Artisan
-- Asian
-- BBQ
-- Bakery
-- Bar
-- Beer Garden
-- Breakfast / Brunch
-- Brewery
-- Burger
-- Café
-- Café Sweets
-- Caribbean
-- Chinese
-- Coffee Shop
-- Comedy Club
-- Deli
-- Dim Sum
-- Diner
-- Donut Shop
-- English
-- Entertainment
-- Fashion
-- Fast Food
-- Food Truck
-- French
-- Gay Bar
-- German
-- Gluten-free
-- Greek
-- Grocery
-- Health & Beauty
-- Home
-- Hostel
-- Hot Dog
-- Hotel
-- Indian
-- Italian
-- Japanese
-- Jewish
-- Juice Bar
-- Karaoke
-- Korean
-- Landmark
-- Late Dining
-- Latin American
-- Lounge
-- Mediterannian
-- Mexican
-- Middle Eastern
-- Molecular Gastronomy
-- Moroccan
-- Museum
-- Nightclub
-- Nightlife
-- Outdoors
-- Pizza
-- Ramen
-- Restaurant General
-- Scandinavian
-- Seafood
-- South Pacific
-- Southern
-- Spanish
-- Stadium
-- Steakhouse
-- Strip Club
-- Tapas
-- Tea Room
-- Thai
-- Unknown
-- Vegetarian / Vegan
-- Wine Bar
-- Winery
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: CATEGORIES
- model: Table
-- id: NAME
- model: Field
-- id: '0'
- model: FieldValues
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/checkins.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/checkins.yaml
deleted file mode 100644
index 7d9e469608d..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/checkins.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: CHECKINS
-display_name: Checkins
-created_at: '2024-08-28T14:38:42.774331Z'
-db_id: test-data (h2)
-schema: PUBLIC
-entity_type: entity/EventTable
-active: true
-field_order: database
-initial_sync_status: complete
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: CHECKINS
- model: Table
-data_authority: unconfigured
-data_layer: internal
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/fields/date.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/fields/date.yaml
deleted file mode 100644
index a812308c3f6..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/fields/date.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-name: DATE
-display_name: Date
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- CHECKINS
-database_type: DATE
-base_type: type/Date
-effective_type: type/Date
-dimensions: []
-position: 1
-custom_position: 0
-database_position: 1
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: CHECKINS
- model: Table
-- id: DATE
- model: Field
-database_indexed: false
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/fields/id.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/fields/id.yaml
deleted file mode 100644
index fb99edcd02e..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/fields/id.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-name: ID
-display_name: ID
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- CHECKINS
-database_type: BIGINT
-base_type: type/BigInteger
-effective_type: type/BigInteger
-semantic_type: type/PK
-database_is_auto_increment: true
-dimensions: []
-position: 0
-custom_position: 0
-database_position: 0
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: CHECKINS
- model: Table
-- id: ID
- model: Field
-database_indexed: true
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/fields/user_id.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/fields/user_id.yaml
deleted file mode 100644
index b875fc6e82a..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/fields/user_id.yaml
+++ /dev/null
@@ -1,31 +0,0 @@
-name: USER_ID
-display_name: User ID
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- CHECKINS
-database_type: INTEGER
-base_type: type/Integer
-effective_type: type/Integer
-semantic_type: type/FK
-fk_target_field_id:
-- test-data (h2)
-- PUBLIC
-- USERS
-- ID
-dimensions: []
-position: 2
-custom_position: 0
-database_position: 2
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: CHECKINS
- model: Table
-- id: USER_ID
- model: Field
-database_indexed: true
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/fields/venue_id.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/fields/venue_id.yaml
deleted file mode 100644
index 310c0eccb01..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/checkins/fields/venue_id.yaml
+++ /dev/null
@@ -1,31 +0,0 @@
-name: VENUE_ID
-display_name: Venue ID
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- CHECKINS
-database_type: INTEGER
-base_type: type/Integer
-effective_type: type/Integer
-semantic_type: type/FK
-fk_target_field_id:
-- test-data (h2)
-- PUBLIC
-- VENUES
-- ID
-dimensions: []
-position: 3
-custom_position: 0
-database_position: 3
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: CHECKINS
- model: Table
-- id: VENUE_ID
- model: Field
-database_indexed: true
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/id.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/id.yaml
deleted file mode 100644
index 38592c289fc..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/id.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-name: ID
-display_name: ID
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- USERS
-database_type: BIGINT
-base_type: type/BigInteger
-effective_type: type/BigInteger
-semantic_type: type/PK
-database_is_auto_increment: true
-dimensions: []
-position: 0
-custom_position: 0
-database_position: 0
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: USERS
- model: Table
-- id: ID
- model: Field
-database_indexed: true
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/last_login.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/last_login.yaml
deleted file mode 100644
index 7333a767fd9..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/last_login.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-name: LAST_LOGIN
-display_name: Last Login
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- USERS
-database_type: TIMESTAMP
-base_type: type/DateTime
-effective_type: type/DateTime
-dimensions: []
-position: 2
-custom_position: 0
-database_position: 2
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: USERS
- model: Table
-- id: LAST_LOGIN
- model: Field
-database_indexed: false
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/name.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/name.yaml
deleted file mode 100644
index 4c0572db235..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/name.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-name: NAME
-display_name: Name
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- USERS
-database_type: CHARACTER VARYING
-base_type: type/Text
-effective_type: type/Text
-semantic_type: type/Name
-dimensions: []
-position: 1
-custom_position: 0
-database_position: 1
-has_field_values: auto-list
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: USERS
- model: Table
-- id: NAME
- model: Field
-database_indexed: false
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/name___fieldvalues.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/name___fieldvalues.yaml
deleted file mode 100644
index 7d6cda775c5..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/name___fieldvalues.yaml
+++ /dev/null
@@ -1,31 +0,0 @@
-created_at: '2024-08-28T14:38:42.774331Z'
-human_readable_values: []
-last_used_at: '2024-08-28T14:38:42.774331Z'
-type: full
-values:
-- Broen Olujimi
-- Conchúr Tihomir
-- Dwight Gresham
-- Felipinho Asklepios
-- Frans Hevel
-- Kaneonuskatew Eiran
-- Kfir Caj
-- Nils Gotam
-- Plato Yeshua
-- Quentin Sören
-- Rüstem Hebel
-- Shad Ferdynand
-- Simcha Yan
-- Spiros Teofil
-- Szymon Theutrich
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: USERS
- model: Table
-- id: NAME
- model: Field
-- id: '0'
- model: FieldValues
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/password.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/password.yaml
deleted file mode 100644
index b422ac5e026..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/password.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-name: PASSWORD
-display_name: Password
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: sensitive
-table_id:
-- test-data (h2)
-- PUBLIC
-- USERS
-database_type: CHARACTER VARYING
-base_type: type/Text
-effective_type: type/Text
-semantic_type: type/Category
-dimensions: []
-position: 3
-custom_position: 0
-database_position: 3
-has_field_values: auto-list
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: USERS
- model: Table
-- id: PASSWORD
- model: Field
-database_indexed: false
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/password___fieldvalues.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/password___fieldvalues.yaml
deleted file mode 100644
index fcfa1151e33..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/fields/password___fieldvalues.yaml
+++ /dev/null
@@ -1,31 +0,0 @@
-created_at: '2024-08-28T14:38:42.774331Z'
-human_readable_values: []
-last_used_at: '2024-08-28T14:38:42.774331Z'
-type: full
-values:
-- 02ad6b15-54b0-4491-bf0f-d781b0a2c4f5
-- 10a0fea8-9bb4-48fe-a336-4d9cbbd78aa0
-- 4be68cda-6fd5-4ba7-944e-2b475600bda5
-- 5bb19ad9-f3f8-421f-9750-7d398e38428d
-- 62b9602c-27b8-44ea-adbd-2748f26537af
-- 75a1ebf1-cae7-4a50-8743-32d97500f2cf
-- 900335ad-e03b-4259-abc7-76aac21cedca
-- a329ccfe-b99c-42eb-9c93-cb9adc3eb1ab
-- a61f97c6-4484-4a63-b37e-b5e58bfa2ecb
-- b085040c-7aa4-4e96-8c8f-420b2c99c920
-- b7a43e91-9fb9-4fe9-ab6f-ea51ab0f94e4
-- d35c9d78-f9cf-4f52-b1cc-cb9078eebdcb
-- d6c47a54-9d88-4c4a-8054-ace76764ed0d
-- dfe21df3-f364-479d-a5e7-04bc5d85ad2b
-- f9b65c74-9f91-4cfd-9248-94a53af82866
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: USERS
- model: Table
-- id: PASSWORD
- model: Field
-- id: '0'
- model: FieldValues
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/users.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/users.yaml
deleted file mode 100644
index a2409ecc692..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/users/users.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: USERS
-display_name: Users
-created_at: '2024-08-28T14:38:42.774331Z'
-db_id: test-data (h2)
-schema: PUBLIC
-entity_type: entity/UserTable
-active: true
-field_order: database
-initial_sync_status: complete
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: USERS
- model: Table
-data_authority: unconfigured
-data_layer: internal
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/category_id.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/category_id.yaml
deleted file mode 100644
index f5f1e8545d3..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/category_id.yaml
+++ /dev/null
@@ -1,31 +0,0 @@
-name: CATEGORY_ID
-display_name: Category ID
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- VENUES
-database_type: INTEGER
-base_type: type/Integer
-effective_type: type/Integer
-semantic_type: type/FK
-fk_target_field_id:
-- test-data (h2)
-- PUBLIC
-- CATEGORIES
-- ID
-dimensions: []
-position: 2
-custom_position: 0
-database_position: 2
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: VENUES
- model: Table
-- id: CATEGORY_ID
- model: Field
-database_indexed: true
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/id.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/id.yaml
deleted file mode 100644
index d73ca47525e..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/id.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-name: ID
-display_name: ID
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- VENUES
-database_type: BIGINT
-base_type: type/BigInteger
-effective_type: type/BigInteger
-semantic_type: type/PK
-database_is_auto_increment: true
-dimensions: []
-position: 0
-custom_position: 0
-database_position: 0
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: VENUES
- model: Table
-- id: ID
- model: Field
-database_indexed: true
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/latitude.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/latitude.yaml
deleted file mode 100644
index 15602aab03d..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/latitude.yaml
+++ /dev/null
@@ -1,26 +0,0 @@
-name: LATITUDE
-display_name: Latitude
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- VENUES
-database_type: DOUBLE PRECISION
-base_type: type/Float
-effective_type: type/Float
-semantic_type: type/Latitude
-dimensions: []
-position: 3
-custom_position: 0
-database_position: 3
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: VENUES
- model: Table
-- id: LATITUDE
- model: Field
-database_indexed: false
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/longitude.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/longitude.yaml
deleted file mode 100644
index 1886c4ba4b8..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/longitude.yaml
+++ /dev/null
@@ -1,26 +0,0 @@
-name: LONGITUDE
-display_name: Longitude
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- VENUES
-database_type: DOUBLE PRECISION
-base_type: type/Float
-effective_type: type/Float
-semantic_type: type/Longitude
-dimensions: []
-position: 4
-custom_position: 0
-database_position: 4
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: VENUES
- model: Table
-- id: LONGITUDE
- model: Field
-database_indexed: false
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/name.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/name.yaml
deleted file mode 100644
index 9d9c9ff33a9..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/name.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-name: NAME
-display_name: Name
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- VENUES
-database_type: CHARACTER VARYING
-base_type: type/Text
-effective_type: type/Text
-semantic_type: type/Name
-dimensions: []
-position: 1
-custom_position: 0
-database_position: 1
-has_field_values: auto-list
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: VENUES
- model: Table
-- id: NAME
- model: Field
-database_indexed: false
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/name___fieldvalues.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/name___fieldvalues.yaml
deleted file mode 100644
index c994a9018ca..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/name___fieldvalues.yaml
+++ /dev/null
@@ -1,116 +0,0 @@
-created_at: '2024-08-28T14:38:42.774331Z'
-human_readable_values: []
-last_used_at: '2024-08-28T14:38:42.774331Z'
-type: full
-values:
-- 20th Century Cafe
-- 25°
-- 33 Taps
-- 800 Degrees Neapolitan Pizzeria
-- BCD Tofu House
-- Baby Blues BBQ
-- Barney's Beanery
-- Beachwood BBQ & Brewing
-- Beyond Sushi
-- Bludso's BBQ
-- Blue Ribbon Sushi
-- Boneyard Bistro
-- Bozu
-- Brite Spot Family Restaurant
-- Busby's West
-- Cha Cha Chicken
-- Cheese Steak Shop
-- Chez Jay
-- Cole's
-- Dal Rae Restaurant
-- Dear Mom
-- Dimples
-- Don Day Korean Restaurant
-- Empress of China
-- Festa
-- Fred 62
-- Frolic Room
-- Garaje
-- Geido
-- Giordano Bros.
-- Golden Road Brewing
-- Gordo Taqueria
-- Greenblatt's Delicatessen & Fine Wine Shop
-- Handy Market
-- Hot Sauce and Panko
-- Hotel Biron
-- In-N-Out Burger
-- Jones Hollywood
-- Kinaree Thai Bistro
-- Krua Siri
-- La Tortilla
-- Lawry's The Prime Rib
-- Liguria Bakery
-- Little Star Pizza
-- Lucky Baldwin's Pub
-- Manuel's Original El Tepeyac Cafe
-- Marlowe
-- Marnee Thai
-- Mint Karaoke Lounge
-- Mohawk Bend
-- Musso & Frank Grill
-- My Brother's Bar-B-Q
-- Noe Valley Bakery
-- Pacific Dining Car
-- Pacific Dining Car - Santa Monica
-- Pellicola Pizzeria
-- Philippe the Original
-- Pineapple Hill Saloon & Grill
-- PizzaHacker
-- Playground
-- Polo Lounge
-- Red Medicine
-- Ruen Pair Thai Restaurant
-- Rush Street
-- Señor Fish
-- Shanghai Dumpling King
-- Slate
-- Smoke City Market
-- Soto
-- Spitz Eagle Rock
-- Stout Burgers & Beers
-- Sushi Nakazawa
-- Sushi Yasaka
-- Sushi Yasuda
-- Tacos Villa Corona
-- Tam O'Shanter
-- Tanoshi Sushi & Sake Bar
-- Taqueria Los Coyotes
-- Taqueria San Francisco
-- Taylor's Prime Steak House
-- The 101 Coffee Shop
-- The Apple Pan
-- The Daily Pint
-- The Drawing Room
-- The Gorbals
-- The Gumbo Pot
-- The Misfit Restaurant + Bar
-- The Original Pantry
-- The Residence
-- The Virgil
-- Tito's Tacos
-- Tout Sweet Patisserie
-- Tu Lan Restaurant
-- Two Sisters Bar & Books
-- Wurstküche
-- Yamashiro Hollywood
-- Ye Rustic Inn
-- Yuca's Taqueria
-- Zeke's Smokehouse
-- bigmista's barbecue
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: VENUES
- model: Table
-- id: NAME
- model: Field
-- id: '0'
- model: FieldValues
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/price.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/price.yaml
deleted file mode 100644
index a8290ecfae5..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/price.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-name: PRICE
-display_name: Price
-created_at: '2024-08-28T14:38:42.774331Z'
-visibility_type: normal
-table_id:
-- test-data (h2)
-- PUBLIC
-- VENUES
-database_type: INTEGER
-base_type: type/Integer
-effective_type: type/Integer
-semantic_type: type/Category
-dimensions: []
-position: 5
-custom_position: 0
-database_position: 5
-has_field_values: auto-list
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: VENUES
- model: Table
-- id: PRICE
- model: Field
-database_indexed: false
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/price___fieldvalues.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/price___fieldvalues.yaml
deleted file mode 100644
index f63fbadde30..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/fields/price___fieldvalues.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-created_at: '2024-08-28T14:38:42.774331Z'
-human_readable_values: []
-last_used_at: '2024-08-28T14:38:42.774331Z'
-type: full
-values:
-- 1
-- 2
-- 3
-- 4
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: VENUES
- model: Table
-- id: PRICE
- model: Field
-- id: '0'
- model: FieldValues
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/venues.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/venues.yaml
deleted file mode 100644
index c86d1938317..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/schemas/public/tables/venues/venues.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: VENUES
-display_name: Venues
-created_at: '2024-08-28T14:38:42.774331Z'
-db_id: test-data (h2)
-schema: PUBLIC
-entity_type: entity/GenericTable
-active: true
-field_order: database
-initial_sync_status: complete
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: PUBLIC
- model: Schema
-- id: VENUES
- model: Table
-data_authority: unconfigured
-data_layer: internal
diff --git a/test_resources/serialization_baseline/databases/test_data__h2_/tables/linked_table/linked_table.yaml b/test_resources/serialization_baseline/databases/test_data__h2_/tables/linked_table/linked_table.yaml
deleted file mode 100644
index e37f8fd1248..00000000000
--- a/test_resources/serialization_baseline/databases/test_data__h2_/tables/linked_table/linked_table.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-name: linked_table
-display_name: Linked Table
-created_at: '2025-08-11T16:53:07.28327Z'
-db_id: test-data (h2)
-active: true
-field_order: database
-initial_sync_status: complete
-serdes/meta:
-- id: test-data (h2)
- model: Database
-- id: linked_table
- model: Table
-data_authority: unconfigured
-data_layer: internal
diff --git a/test_resources/serialization_baseline/python_libraries/common.py.yaml b/test_resources/serialization_baseline/python_libraries/common.py.yaml
index 496fe72201e..8145e026bb5 100644
--- a/test_resources/serialization_baseline/python_libraries/common.py.yaml
+++ b/test_resources/serialization_baseline/python_libraries/common.py.yaml
@@ -1,9 +1,7 @@
path: common.py
-source: |-
- def helper():
- return 42
+source: ''
entity_id: cWWH9qJPvHNB3rP2vLZrK
-created_at: '2026-01-21T21:50:59.518133Z'
+created_at: '2026-04-02T01:50:04.994996Z'
serdes/meta:
- id: cWWH9qJPvHNB3rP2vLZrK
model: PythonLibrary
diff --git a/test_resources/serialization_baseline/python_libraries/shared.py.yaml b/test_resources/serialization_baseline/python_libraries/shared.py.yaml
new file mode 100644
index 00000000000..5fa51fb120c
--- /dev/null
+++ b/test_resources/serialization_baseline/python_libraries/shared.py.yaml
@@ -0,0 +1,9 @@
+path: shared.py
+source: |-
+ def helper():
+ return 42
+entity_id: kb0QxR8AyP5W8SVHGYZr8
+created_at: '2026-04-02T02:00:49.163166Z'
+serdes/meta:
+- id: kb0QxR8AyP5W8SVHGYZr8
+ model: PythonLibrary
diff --git a/test_resources/serialization_baseline/transforms/transform_jobs/daily_job.yaml b/test_resources/serialization_baseline/transforms/transform_jobs/daily_job.yaml
index a9dcdb6a411..5073796293f 100644
--- a/test_resources/serialization_baseline/transforms/transform_jobs/daily_job.yaml
+++ b/test_resources/serialization_baseline/transforms/transform_jobs/daily_job.yaml
@@ -1,8 +1,14 @@
built_in_type: daily
-created_at: '2025-09-23T12:20:31.215628Z'
+created_at: '2026-04-02T02:00:48.043249Z'
description: Executes transforms tagged with 'daily' once per day
entity_id: PJahvcoF61oX5T4uCT_FY
-job_tags: []
+job_tags:
+- entity_id: PJahvcoF61oX5T4uCT_FY
+ position: 0
+ tag_id: dUW7nvQHQBdA0Rx0gJckI
+ serdes/meta:
+ - id: PJahvcoF61oX5T4uCT_FY
+ model: TransformJobTransformTag
name: Daily job
schedule: 0 0 0 * * ? *
ui_display_type: cron/builder
diff --git a/test_resources/serialization_baseline/transforms/transform_jobs/hourly_job.yaml b/test_resources/serialization_baseline/transforms/transform_jobs/hourly_job.yaml
index 1c959b06b20..a708a10012d 100644
--- a/test_resources/serialization_baseline/transforms/transform_jobs/hourly_job.yaml
+++ b/test_resources/serialization_baseline/transforms/transform_jobs/hourly_job.yaml
@@ -1,8 +1,14 @@
built_in_type: hourly
-created_at: '2025-09-23T12:20:31.215628Z'
+created_at: '2026-04-02T02:00:48.043249Z'
description: Executes transforms tagged with 'hourly' every hour
entity_id: RognTgBT2fXaxoQh4ws7z
-job_tags: []
+job_tags:
+- entity_id: RognTgBT2fXaxoQh4ws7z
+ position: 0
+ tag_id: wYLcUPbtF7jVPO0duGGHR
+ serdes/meta:
+ - id: RognTgBT2fXaxoQh4ws7z
+ model: TransformJobTransformTag
name: Hourly job
schedule: 0 0 * * * ? *
ui_display_type: cron/builder
diff --git a/test_resources/serialization_baseline/transforms/transform_jobs/monthly_job.yaml b/test_resources/serialization_baseline/transforms/transform_jobs/monthly_job.yaml
index 0c6795d24e0..b0be793fe06 100644
--- a/test_resources/serialization_baseline/transforms/transform_jobs/monthly_job.yaml
+++ b/test_resources/serialization_baseline/transforms/transform_jobs/monthly_job.yaml
@@ -1,8 +1,14 @@
built_in_type: monthly
-created_at: '2025-09-23T12:20:31.215628Z'
+created_at: '2026-04-02T01:50:04.843789Z'
description: Executes transforms tagged with 'monthly' once per month
entity_id: CL1TVitmzJrDjdjvO2xmN
-job_tags: []
+job_tags:
+- entity_id: CL1TVitmzJrDjdjvO2xmN
+ position: 0
+ tag_id: DeeJHc81qKhD9qWINISO8
+ serdes/meta:
+ - id: CL1TVitmzJrDjdjvO2xmN
+ model: TransformJobTransformTag
name: Monthly job
schedule: 0 0 0 1 * ? *
ui_display_type: cron/builder
diff --git a/test_resources/serialization_baseline/transforms/transform_jobs/nightly_etl_pipeline.yaml b/test_resources/serialization_baseline/transforms/transform_jobs/nightly_etl_pipeline.yaml
new file mode 100644
index 00000000000..52cb8450d0c
--- /dev/null
+++ b/test_resources/serialization_baseline/transforms/transform_jobs/nightly_etl_pipeline.yaml
@@ -0,0 +1,23 @@
+created_at: '2026-04-02T02:00:49.163166Z'
+description: Custom job running nightly-refresh and custom-etl tagged transforms at 2 AM
+entity_id: PMlTT2ZjLB2B-C2Hng72Z
+job_tags:
+- entity_id: uZpZUow557u1cZbqT8BHt
+ position: 0
+ tag_id: 1uWng5tP1gyxr44PJ5FPb
+ serdes/meta:
+ - id: uZpZUow557u1cZbqT8BHt
+ model: TransformJobTransformTag
+- entity_id: 8WHAzlDHJZ7umVLvzbcfb
+ position: 1
+ tag_id: Z2nTZwFTBUz1Yil8AKrp2
+ serdes/meta:
+ - id: 8WHAzlDHJZ7umVLvzbcfb
+ model: TransformJobTransformTag
+name: Nightly ETL Pipeline
+schedule: 0 0 2 * * ? *
+ui_display_type: cron/builder
+serdes/meta:
+- id: PMlTT2ZjLB2B-C2Hng72Z
+ label: nightly_etl_pipeline
+ model: TransformJob
diff --git a/test_resources/serialization_baseline/transforms/transform_jobs/weekly_job.yaml b/test_resources/serialization_baseline/transforms/transform_jobs/weekly_job.yaml
index cc5c97fe23b..61880fa7ca2 100644
--- a/test_resources/serialization_baseline/transforms/transform_jobs/weekly_job.yaml
+++ b/test_resources/serialization_baseline/transforms/transform_jobs/weekly_job.yaml
@@ -1,8 +1,14 @@
built_in_type: weekly
-created_at: '2025-09-23T12:20:31.215628Z'
+created_at: '2026-04-02T02:00:48.043249Z'
description: Executes transforms tagged with 'weekly' once per week
entity_id: lXIFa2SUrXLgaLZJx33oU
-job_tags: []
+job_tags:
+- entity_id: lXIFa2SUrXLgaLZJx33oU
+ position: 0
+ tag_id: qPGCJu7t97kn-X07_fgSj
+ serdes/meta:
+ - id: lXIFa2SUrXLgaLZJx33oU
+ model: TransformJobTransformTag
name: Weekly job
schedule: 0 0 0 ? * 1 *
ui_display_type: cron/builder
diff --git a/test_resources/serialization_baseline/transforms/transform_tags/custom_etl.yaml b/test_resources/serialization_baseline/transforms/transform_tags/custom_etl.yaml
index 3a1623b617d..f8815f71473 100644
--- a/test_resources/serialization_baseline/transforms/transform_tags/custom_etl.yaml
+++ b/test_resources/serialization_baseline/transforms/transform_tags/custom_etl.yaml
@@ -1,7 +1,7 @@
-created_at: '2025-10-06T20:36:56.684138Z'
-entity_id: custometlcustometlcus
+created_at: '2026-04-02T02:00:49.163166Z'
+entity_id: Z2nTZwFTBUz1Yil8AKrp2
name: custom-etl
serdes/meta:
-- id: custometlcustometlcus
+- id: Z2nTZwFTBUz1Yil8AKrp2
label: custom_etl
model: TransformTag
diff --git a/test_resources/serialization_baseline/transforms/transform_tags/daily.yaml b/test_resources/serialization_baseline/transforms/transform_tags/daily.yaml
index ea8b49a5fd2..c76ac117f99 100644
--- a/test_resources/serialization_baseline/transforms/transform_tags/daily.yaml
+++ b/test_resources/serialization_baseline/transforms/transform_tags/daily.yaml
@@ -1,5 +1,5 @@
built_in_type: daily
-created_at: '2025-09-18T14:56:47.400051Z'
+created_at: '2026-04-02T02:00:48.042904Z'
entity_id: dUW7nvQHQBdA0Rx0gJckI
name: daily
serdes/meta:
diff --git a/test_resources/serialization_baseline/transforms/transform_tags/daily_2.yaml b/test_resources/serialization_baseline/transforms/transform_tags/daily_2.yaml
deleted file mode 100644
index 8ababd91201..00000000000
--- a/test_resources/serialization_baseline/transforms/transform_tags/daily_2.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-built_in_type: daily
-created_at: '2025-10-06T20:36:56.683879Z'
-entity_id: dailydailydailydailyx
-name: daily
-serdes/meta:
-- id: dailydailydailydailyx
- label: daily
- model: TransformTag
diff --git a/test_resources/serialization_baseline/transforms/transform_tags/hourly.yaml b/test_resources/serialization_baseline/transforms/transform_tags/hourly.yaml
index 818caead892..6f90a31498e 100644
--- a/test_resources/serialization_baseline/transforms/transform_tags/hourly.yaml
+++ b/test_resources/serialization_baseline/transforms/transform_tags/hourly.yaml
@@ -1,5 +1,5 @@
built_in_type: hourly
-created_at: '2025-09-18T14:56:47.400051Z'
+created_at: '2026-04-02T02:00:48.042904Z'
entity_id: wYLcUPbtF7jVPO0duGGHR
name: hourly
serdes/meta:
diff --git a/test_resources/serialization_baseline/transforms/transform_tags/hourly_2.yaml b/test_resources/serialization_baseline/transforms/transform_tags/hourly_2.yaml
deleted file mode 100644
index 1968eade680..00000000000
--- a/test_resources/serialization_baseline/transforms/transform_tags/hourly_2.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-built_in_type: hourly
-created_at: '2025-10-06T20:36:56.683563Z'
-entity_id: hourlyhourlyhourlyxxx
-name: hourly
-serdes/meta:
-- id: hourlyhourlyhourlyxxx
- label: hourly
- model: TransformTag
diff --git a/test_resources/serialization_baseline/transforms/transform_tags/monthly.yaml b/test_resources/serialization_baseline/transforms/transform_tags/monthly.yaml
index aa38eac759d..5d2f0bde9dc 100644
--- a/test_resources/serialization_baseline/transforms/transform_tags/monthly.yaml
+++ b/test_resources/serialization_baseline/transforms/transform_tags/monthly.yaml
@@ -1,5 +1,5 @@
built_in_type: monthly
-created_at: '2025-09-18T14:56:47.400051Z'
+created_at: '2026-04-02T02:00:48.042904Z'
entity_id: DeeJHc81qKhD9qWINISO8
name: monthly
serdes/meta:
diff --git a/test_resources/serialization_baseline/transforms/transform_tags/nightly_refresh.yaml b/test_resources/serialization_baseline/transforms/transform_tags/nightly_refresh.yaml
new file mode 100644
index 00000000000..1dcc3d91996
--- /dev/null
+++ b/test_resources/serialization_baseline/transforms/transform_tags/nightly_refresh.yaml
@@ -0,0 +1,7 @@
+created_at: '2026-04-02T02:00:49.163166Z'
+entity_id: 1uWng5tP1gyxr44PJ5FPb
+name: nightly-refresh
+serdes/meta:
+- id: 1uWng5tP1gyxr44PJ5FPb
+ label: nightly_refresh
+ model: TransformTag
diff --git a/test_resources/serialization_baseline/transforms/transform_tags/weekly.yaml b/test_resources/serialization_baseline/transforms/transform_tags/weekly.yaml
index 3b6bf737237..0551e6faead 100644
--- a/test_resources/serialization_baseline/transforms/transform_tags/weekly.yaml
+++ b/test_resources/serialization_baseline/transforms/transform_tags/weekly.yaml
@@ -1,5 +1,5 @@
built_in_type: weekly
-created_at: '2025-09-18T14:56:47.400051Z'
+created_at: '2026-04-02T02:00:48.042904Z'
entity_id: qPGCJu7t97kn-X07_fgSj
name: weekly
serdes/meta: