I have a similar issue, I am running opendistro 1.6.0.0 with ES 7.6.1 and I get this error when query some indices generate by an internal tool:
{
“error”: {
“reason”: “There was internal problem at backend”,
“details”: “class com.alibaba.druid.sql.ast.expr.SQLBinaryOpExpr cannot be cast to class com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr (com.alibaba.druid.sql.ast.expr.SQLBinaryOpExpr and com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr are in unnamed module of loader java.net.FactoryURLClassLoader @113f9078)”,
“type”: “ClassCastException”
},
“status”: 503
}
The error occured on SELECT * or SELECT a specific field.
But I can’t reproduce the error on Kibana indices or by creating a simple index myself. I can query the index using ES Json and I can’t find what is wrong.
I finally found the root cause of my issue. Indices was not healthy, number of shards for indices was not corresponding to the number of ES nodes. After cleaning and reconfiguring index creation, the problem disappear.