Skip to content

Commit

Permalink
Add PK/FK as allowed special types
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Gouline committed May 15, 2020
1 parent 0c35cf4 commit d577db5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``
Expand Down
2 changes: 1 addition & 1 deletion dbtmetabase/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions macros/tests.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d577db5

Please sign in to comment.