Is _opendistro/_sql/_translate supported on OD version 1.6.0.0

Hi all,
Getting below error when trying to run bellow query:

POST _opendistro/_sql/_translate
{
“query”: “select name,age from test LIMIT 5”
}

{
“error” : {
“root_cause” : [
{
“type” : “security_exception”,
“reason” : “Unexpected exception indices:data/write/index”
}
],
“type” : “security_exception”,
“reason” : “Unexpected exception indices:data/write/index”
},
“status” : 500
}

Any pointers please?

Hi @dinesh , from the error, it seems permission issue. Please check if your current user/role has sufficient permission to access the index. Thanks

Thanks for replying @daichen
User has write permission . The same api works without _translate .

Not sure if _translate endpoint is supported or it needs some additional permission.

I see. I missed that. Please try _opendistro/_sql/_explain.

POST _opendistro/_sql/_explain
{
“query”: “select name,age from test LIMIT 5”
}

output:

{
“from” : 0,
“size” : 5,
“_source” : {
“includes” : [
“name”,
“age”
],
“excludes” :
}
}

team , any help here please ?