mirror of
https://github.com/getredash/redash.git
synced 2025-12-19 09:27:23 -05:00
Merge pull request #1074 from toyama0919/master
Fix: ElasticSearch wasn't using correct type names
This commit is contained in:
@@ -115,7 +115,7 @@ class BaseElasticSearch(BaseQueryRunner):
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user