mirror of
https://github.com/getredash/redash.git
synced 2025-12-19 17:37:19 -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)
|
property_type = property_data.get("type", None)
|
||||||
if property_type:
|
if property_type:
|
||||||
if property_type in ELASTICSEARCH_TYPES_MAPPING:
|
if property_type in ELASTICSEARCH_TYPES_MAPPING:
|
||||||
mappings[property_name] = property_type
|
mappings[property_name] = ELASTICSEARCH_TYPES_MAPPING[property_type]
|
||||||
else:
|
else:
|
||||||
mappings[property_name] = TYPE_STRING
|
mappings[property_name] = TYPE_STRING
|
||||||
#raise Exception("Unknown property type: {0}".format(property_type))
|
#raise Exception("Unknown property type: {0}".format(property_type))
|
||||||
|
|||||||
Reference in New Issue
Block a user