You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
I'm trying to run SQL queries on an index alias (e.g. select field from myindex-*) and my indexes are daily (so I have myindex-2019-04-01, etc.).
For some of the indexes, additional fields have been added and dynamic field mapping has updated the mapping, resulting on myindex-2019-04-01 having less fields compared to myindex-2019-04-02 for example.
When running SQL queries, elasticsearch is complaining with:
VerificationException: When using multiple indices, the mappings must be identical.
even though the SQL query is not using the fields that are different between the indexes.
Is there any way to relax the strictness of all mappings having to be identical?
if I run:
select myfield from myindex*
and the mapping for myfield is the same on all indexes matching myindex*, do we really want to enforce the whole mapping is identical? I'm not seeing the benefit of that.
even if some indexes do not contain myfield, wouldn't it be better to just return an empty value for such column instead of not allowing the request at all?