Description
I tried to SQL-Query (ES 7.11.2) an index with a mapping with a parent-children "join" relation, but got immediate error.
-
Create an index with mapping like this:
PUT blog_index { "mappings": { "properties": { "blog_comment_join": { "type": "join", "relations": { "blog": "comment" } } } } }
-
Sql query (below) in Kibana dev tool:
POST /_xpack/sql?format=csv { "query": "SELECT count(1) FROM blog_index" }
-
Got this immediate error:
{ "error" : { "root_cause" : [ { "type" : "verification_exception", "reason" : "Found 1 problem\nline 1:22: Unknown index [blog_index]" } ], "type" : "verification_exception", "reason" : "Found 1 problem\nline 1:22: Unknown index [blog_index]" }, "status" : 400 }
Of course the index exists, if you DSL query this:
GET blog_index/_search?size=250 { "query": { "match_all": {} } }
I think it's a bug but it's too apparent to believe.
Can anyone confirm it?
Thanks!