From d577db55b1a6927e03b50d23452acb299c4b5493 Mon Sep 17 00:00:00 2001 From: Mike Gouline Date: Fri, 15 May 2020 19:50:01 +1000 Subject: [PATCH] Add PK/FK as allowed special types --- README.rst | 2 ++ dbtmetabase/__init__.py | 2 +- macros/tests.sql | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 35c64041..2e0950ab 100644 --- a/README.rst +++ b/README.rst @@ -115,6 +115,8 @@ now marked as "Email". Here is the list of special types currently accepted by Metabase: +* ``type/PK`` +* ``type/FK`` * ``type/AvatarURL`` * ``type/Category`` * ``type/City`` diff --git a/dbtmetabase/__init__.py b/dbtmetabase/__init__.py index 2b7de57a..3d4f3694 100644 --- a/dbtmetabase/__init__.py +++ b/dbtmetabase/__init__.py @@ -3,7 +3,7 @@ from .dbt import DbtReader from .metabase import MetabaseClient -__version__ = '0.4.1' +__version__ = '0.4.2' def export(dbt_path: str, mb_host: str, mb_user: str, mb_password: str, diff --git a/macros/tests.sql b/macros/tests.sql index 93774013..53eec76c 100644 --- a/macros/tests.sql +++ b/macros/tests.sql @@ -3,6 +3,8 @@ select sum(count) as count from ( select count(*) as count where '{{ special_type }}' not in ( + 'type/PK', + 'type/FK', 'type/AvatarURL', 'type/Category', 'type/City',