From d6f4af448c1c81202304d02d374774b3ec4a4a10 Mon Sep 17 00:00:00 2001 From: toyama0919 Date: Wed, 25 May 2016 17:50:13 +0900 Subject: [PATCH] fix bug. There is a case set unsupport type for elasticsearch. --- redash/query_runner/elasticsearch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redash/query_runner/elasticsearch.py b/redash/query_runner/elasticsearch.py index 6640b2c322..850b2f94df 100644 --- a/redash/query_runner/elasticsearch.py +++ b/redash/query_runner/elasticsearch.py @@ -115,7 +115,7 @@ def _get_mappings(self, url): property_type = property_data.get("type", None) if property_type: if property_type in ELASTICSEARCH_TYPES_MAPPING: - mappings[property_name] = property_type + mappings[property_name] = ELASTICSEARCH_TYPES_MAPPING[property_type] else: mappings[property_name] = TYPE_STRING #raise Exception("Unknown property type: {0}".format(property_type))