From b37b67504e8129d43b19eb70a86967c134e40492 Mon Sep 17 00:00:00 2001 From: tianru zhou Date: Tue, 26 Jan 2021 13:53:39 -0800 Subject: [PATCH 1/3] fix: make column names search case insensitive Signed-off-by: tianru zhou --- amundsen_common/models/index_map.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/amundsen_common/models/index_map.py b/amundsen_common/models/index_map.py index 79c704b..4105c52 100644 --- a/amundsen_common/models/index_map.py +++ b/amundsen_common/models/index_map.py @@ -13,6 +13,16 @@ TABLE_INDEX_MAP = textwrap.dedent( """ { + "settings": { + "analysis": { + "normalizer": { + "column_names_normalizer": { + "type": "custom", + "filter": ["lowercase"] + } + } + } + }, "mappings":{ "table":{ "properties": { @@ -51,6 +61,7 @@ "fields": { "raw": { "type": "keyword" + "normalizer": "column_names_normalizer" } } }, From 5e6fdd4d4c3f695ab1e13a9bcc027f629fc8f2cf Mon Sep 17 00:00:00 2001 From: tianru zhou Date: Tue, 26 Jan 2021 14:05:01 -0800 Subject: [PATCH 2/3] replace tabs with spaces Signed-off-by: tianru zhou --- amundsen_common/models/index_map.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amundsen_common/models/index_map.py b/amundsen_common/models/index_map.py index 4105c52..efeb7c7 100644 --- a/amundsen_common/models/index_map.py +++ b/amundsen_common/models/index_map.py @@ -19,8 +19,8 @@ "column_names_normalizer": { "type": "custom", "filter": ["lowercase"] - } - } + } + } } }, "mappings":{ From fc28e589e58113c91f8b7089f63de6fa705b21ad Mon Sep 17 00:00:00 2001 From: tianru zhou Date: Tue, 26 Jan 2021 14:13:29 -0800 Subject: [PATCH 3/3] update version number Signed-off-by: tianru zhou --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2369b7d..ff8330d 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='amundsen-common', - version='0.5.9', + version='0.5.10', description='Common code library for Amundsen', long_description=open('README.md').read(), long_description_content_type='text/markdown',