mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 17:38:54 +00:00
Add missing type parameter to collect_value call
This commit is contained in:
parent
203cf6e28b
commit
3f208c03fd
@ -158,7 +158,8 @@ class BaseElasticSearch(BaseQueryRunner):
|
||||
if data_key not in data:
|
||||
continue
|
||||
if 'key' in data and len(data.keys()) == 2:
|
||||
collect_value(mappings, row, data['key'] if not 'key_as_string' in data else data['key_as_string'], data[data_key])
|
||||
key_is_string = 'key_as_string' in data
|
||||
collect_value(mappings, row, data['key'] if not key_is_string else data['key_as_string'], data[data_key], 'long' if not key_is_string else 'string')
|
||||
else:
|
||||
return data[data_key]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user