Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL: querying an alias having different mappings indices generates an incorrect error message #31784

Closed
astefan opened this issue Jul 4, 2018 · 3 comments

Comments

@astefan
Copy link
Contributor

astefan commented Jul 4, 2018

For an alias defined as

$ curl -XGET "localhost:9200/_alias/test_alias?pretty"
{
  "test_emp_copy" : {
    "aliases" : {
      "test_alias" : { }
    }
  },
  "library" : {
    "aliases" : {
      "test_alias" : { }
    }
  },
  "test_emp" : {
    "aliases" : {
      "test_alias" : { }
    }
  }
}

the error message received is:

sql> select * from test_alias;
Bad request [Found 1 problem(s)
line 1:15: [test_alias] points to indices [library] and [library] which have different mappings. When using multiple indices, the mappings must be identical.]

(twice the library index mentioned instead of library and another index from the alias)
Those three indices mappings are like this:

  • test_emp_copy and test_emp are identical
  • library is completely different from the other two
@astefan astefan added the :Analytics/SQL SQL querying label Jul 4, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@costin
Copy link
Member

costin commented Jul 4, 2018

Looks like a duplicate of #31611

@costin
Copy link
Member

costin commented Jul 5, 2018

Fixed by #31792

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants