From 0bbeb538a406bce6b5baa9f3c24bb7e39366f98b Mon Sep 17 00:00:00 2001 From: Simon Belak <simon@metabase.com> Date: Sun, 13 May 2018 23:37:24 +0200 Subject: [PATCH] Add partial matches for fields named *_country and *_state --- src/metabase/sync/analyze/classifiers/name.clj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/metabase/sync/analyze/classifiers/name.clj b/src/metabase/sync/analyze/classifiers/name.clj index f64dec67f68..bd185fc776c 100644 --- a/src/metabase/sync/analyze/classifiers/name.clj +++ b/src/metabase/sync/analyze/classifiers/name.clj @@ -41,6 +41,7 @@ [#"^active$" bool-or-int-type :type/Category] [#"^city$" text-type :type/City] [#"^country" text-type :type/Country] + [#"_country$" text-type :type/Country] [#"^currency$" int-or-text-type :type/Category] [#"^first(?:_?)name$" text-type :type/Name] [#"^full(?:_?)name$" text-type :type/Name] @@ -57,6 +58,7 @@ [#"^role$" int-or-text-type :type/Category] [#"^sex$" int-or-text-type :type/Category] [#"^state$" text-type :type/State] + [#"_state$" text-type :type/State] [#"^status$" int-or-text-type :type/Category] [#"^type$" int-or-text-type :type/Category] [#"^url$" text-type :type/URL] -- GitLab