We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e586f99 + 9d36d39 commit 8d1b5b4Copy full SHA for 8d1b5b4
redash/query_runner/elasticsearch.py
@@ -119,12 +119,13 @@ def _get_mappings(self, url):
119
return mappings, error
120
121
def _get_query_mappings(self, url):
122
- mappings, error = self._get_mappings(url)
+ mappings_data, error = self._get_mappings(url)
123
if error:
124
- return mappings, error
+ return mappings_data, error
125
126
- for index_name in mappings:
127
- index_mappings = mappings[index_name]
+ mappings = {}
+ for index_name in mappings_data:
128
+ index_mappings = mappings_data[index_name]
129
for m in index_mappings.get("mappings", {}):
130
for property_name in index_mappings["mappings"][m]["properties"]:
131
property_data = index_mappings["mappings"][m]["properties"][property_name]
0 commit comments