VerificationException: Different mappings are not allowed for the same field even if field is not used in query
gauravgk78 opened this issue · comments
I'm doing a query, but the error response I get is complaining about another field I'm not selecting.
SELECT answer AS answer FROM
(SELECT answer
FROM indexname) AS virtual_table
E.g.
Error: com.amazon.opendistroforelasticsearch.sql.rewriter.matchtoterm.VerificationException: Different mappings are not allowed for the same field[surveyId]: found [{type:text,fields:{keyword:{type:keyword,ignore_above:256}}}] and [{type:keyword}] For more details, please send request for Json format to see the raw response from elasticsearch engine.', 'type': 'VerificationException'}, 'status': 400}
but my query doesn't have surveyId ?Shouldn't elastic just ignore that field completely if it's not used in the select query?
#348 (comment) It's similar to this issue.