-
Notifications
You must be signed in to change notification settings - Fork 26
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
[BUG] Unable to run queries with DataGrip #67
Comments
@ksco92, I can't reproduce your error, but I keep playing with DataGrip Driver settings: Note: I have to set env vars required for AWS authentication prior to running DataGrip: Please, check your set up to ensure that nothing missed. |
Just discovered that you're using JDBC driver v.1.0. Please, download and try most recent one from maven. |
Hi! Can you please guide me through how you figured this out? I downloaded the driver specifically listed here: https://opensearch.org/artifacts And the AWS docs here say that driver version 1.1.0.1 goes with OS 2.5: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/sql-support.html It even links to download that version directly: https://artifacts.opensearch.org/opensearch-clients/jdbc/opensearch-sql-jdbc-1.1.0.1.jar Does this mean that the version in maven is different and that docs should be corrected? |
Unfortunately, artifacts page still contains older version of JDBC. I'll update it soon. |
Driver file on Maven has no embedded dependencies (no shadow jar) and it is supposed that application would download them automatically. I didn't noticed where I got my jar from, but it has embedded all dependencies in (shadow jar). |
Hi, just tried latest version opensearch-sql-jdbc-shadow-1.4.0.1.jar downloaded from |
What is the bug?
After setting up the JDBC driver in DataGrip I get inconsistent errors. See reproduction steps for details.
How can one reproduce the bug?
Steps to reproduce the behavior:
org.opensearch.jdbc.Driver
auth
:AWS_SIGV4
region
: The region the cluster is onThis is where the behaviors begin:
Where
hosts_rodrigof_metadata_hosts_2023-04-11
is an index andhosts_rodrigof_metadata_hosts
is an alias. However, using the Elasticsearch plugin, I can successfully run queries via HTTP:Something I have noticed is that the use of
*
doesn't work, for example:select * from my_index
Fails with
java.sql.SQLException
, but:select col1 from my_index
Does work.
What is the expected behavior?
Queries should run as expected when using the JDBC driver.
What is your host/environment?
The text was updated successfully, but these errors were encountered: