Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

VerificationException: Different mappings are not allowed for the same field even if field is not used in query #1171

@gauravgk78

Description

@gauravgk78

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions