From fe634998640b0ff94cfabb8685d396f719ed1fb3 Mon Sep 17 00:00:00 2001 From: Vamsi Peri Date: Fri, 5 Sep 2025 17:13:58 -0400 Subject: [PATCH 1/2] example of how to specify database reference as a standalone reference type --- mbqltest.yaml | 62 ++++++++++++++++++++++++++++----------------------- 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/mbqltest.yaml b/mbqltest.yaml index a8d3814..c058e49 100644 --- a/mbqltest.yaml +++ b/mbqltest.yaml @@ -1,28 +1,34 @@ -entity: model/Transform:v1 -name: An MBQL Example -identifier: mbql-example -description: Does the thing -tags: [weekly] -database: "Postgres 13" -target: - type: table - name: flippity -source: - database: Postgres 13 - type: query - query: - source-table: - - Postgres 13 - - public - - pokemon_global_sightings_20250829153336 - aggregation: - - - count - breakout: - - - field - - - Postgres 13 - - public - - pokemon_global_sightings_20250829153336 - - longitude - - base-type: type/Float - binning: - strategy: default +entity + type: model/Transform:v1 + name: An MBQL Example + identifier: mbql-example + description: Does the thing + tags: [weekly] + database: "Postgres 13" + target: + type: table + name: flippity + source: + database: Postgres 13 + type: query + query: + source-table: + - Postgres 13 + - public + - pokemon_global_sightings_20250829153336 + aggregation: + - - count + breakout: + - - field + - - Postgres 13 + - public + - pokemon_global_sightings_20250829153336 + - longitude + - base-type: type/Float + binning: + strategy: default + reference + type: database + name: Postgres 13 + conn-string: jdbc://blah.. + other-params: blah From 1042a1e2800aaadc4f88c2cf2d75878e8c8464b5 Mon Sep 17 00:00:00 2001 From: Kyle Doherty <5248953+kdoh@users.noreply.github.com> Date: Tue, 9 Sep 2025 16:55:58 -0400 Subject: [PATCH 2/2] Fix ryan's eyes --- mbqltest.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbqltest.yaml b/mbqltest.yaml index c058e49..53c4767 100644 --- a/mbqltest.yaml +++ b/mbqltest.yaml @@ -27,7 +27,7 @@ entity - base-type: type/Float binning: strategy: default - reference + reference: type: database name: Postgres 13 conn-string: jdbc://blah..