-
Notifications
You must be signed in to change notification settings - Fork 50
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
Connecting to opendistro from Apache Superset throws SQL parse exception #5
Comments
Hi @syamat, First, opendistro does not implement |
It seems the issue is only which clicking the Test Connection, the connection works in SQL Lab when query. |
Yes exactly. Yet, I'll implement a |
@dpgaspar is there a work around for this?
|
@dpgaspar FYI, We've been currently working on a new query engine for ODFE SQL plugin with many improvements. This issue is already fixed in PR: opendistro-for-elasticsearch/sql#542. The new engine is experimental and disabled by default. You can follow the instruction here to preview: https://github.com/opendistro-for-elasticsearch/sql#experimental |
This is supported on 0.2.0 released today |
The following error is thrown while creating a new Database connection on Open Distro 1.2.0 after installing opendistro plugin using "pip install elasticsearch-dbapi[aws]".
The connection string I gave is "odelasticsearch+http://localhost:9200/"
Incoming request /_opendistro/_sql/?format=csv: SELECT 1
[2019-12-16T09:30:14,137][ERROR][c.a.o.s.p.RestSqlAction ] [ATVDI] 77d855ee-1f9e-411c-a79f-464860adcba7 Client side error during query execution
java.lang.NullPointerException: null
at com.amazon.opendistroforelasticsearch.sql.parser.SqlParser.parseSelect(SqlParser.java:71) ~[opendistro_sql-1.2.0.0.jar:1.2.0.0]
at com.amazon.opendistroforelasticsearch.sql.parser.SqlParser.parseSelect(SqlParser.java:60) ~[opendistro_sql-1.2.0.0.jar:1.2.0.0]
at com.amazon.opendistroforelasticsearch.sql.query.ESActionFactory.create(ESActionFactory.java:87) ~[opendistro_sql-1.2.0.0.jar:1.2.0.0]
at com.amazon.opendistroforelasticsearch.sql.plugin.SearchDao.explain(SearchDao.java:59) ~[opendistro_sql-1.2.0.0.jar:1.2.0.0]
at com.amazon.opendistroforelasticsearch.sql.plugin.RestSqlAction.explainRequest(RestSqlAction.java:156) [opendistro_sql-1.2.0.0.jar:1.2.0.0]
at com.amazon.opendistroforelasticsearch.sql.plugin.RestSqlAction.prepareRequest(RestSqlAction.java:127) [opendistro_sql-1.2.0.0.jar:1.2.0.0]
at org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:92) [elasticsearch-7.2.0.jar:7.2.0]
at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:240) [elasticsearch-7.2.0.jar:7.2.0]
The text was updated successfully, but these errors were encountered: