-
Notifications
You must be signed in to change notification settings - Fork 51
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
SuperSet errors with AWS Elasticsearch [Kibana version 6.8.0] #74
Comments
Please see here for the response formats for the Elasticsearch Opendistro SQL.
I am pretty certain that the second issue is happening because However, the code assumes (See lines 280 and 281) the response in jdbc format. Hence, the error is happening in parsing the response. Can someone please fix this? @dpgaspar: I am tagging you since, you are an active member of this project. Thanks in advance! |
In case you need the following: pip freeze
|
Reference preset-io#74 Adding format=jdbc to the path for the opendistro sql endpoint
Hi @harshgadhia, What's your AWS OpenSearch (ElasticSearch) version? 6.8.0? |
@dpgaspar Yes that is correct:
|
Here's the latest information I have: The Opensearch (aka elasticsearch) has support to query SQL via the However, for older versions <7.4, you have to explicitly pass on a query parameter Looking forward for your help in this matter, thanks in advance. |
@dpgaspar Did you get a chance to look at this? Really appreciate a response on the above. Thank you in advance! |
sounds reasonable to me @harshgadhia are you willing to make a PR? |
@dpgaspar sure, I can try looking into it, and send a PR your way! |
@harshgadhia, |
Hello preset-io team,
I am facing some issues with using elasticsearch-dbapi version: 0.2.6.
I have described the issue in detail in the apache superset project too. SuperSet errors with AWS Elasticsearch [Kibana version 6.8.0]
To summarize:
Issue 1
elasticsearch-dbapi seems to be not able to parse the index metadata from AWS ES endpoint. Issue happening due to https://github.com/preset-io/elasticsearch-dbapi/blob/master/es/opendistro/api.py#L236
Sample request made to ES:
Here's the sample response coming from ES endpoint:
Issue 2
elasticsearch-dbapi cannot parse response from ES endpoint for a SQL query, getting error "Missing columns field, maybe it's an elastic sql ep" es.exceptions.DataError: Missing columns field, maybe it's an elastic sql ep.
Issue happening due to https://github.com/preset-io/elasticsearch-dbapi/blob/master/es/opendistro/api.py#L282
The sample curl command returns valid response from ES, however, possibly the query is not properly formed (it is missing
?format=jdbc
):Sample response from ES endpoint for the above rest call:
Environment
1.3.1
3.7
node -v
0.2.6
7.13.4
6.8.0
Any help from you is greatly appreciated.
The text was updated successfully, but these errors were encountered: