opensearch-project / sql-jdbc

This is the driver for JDBC connectivity to a cluster running with OpenSearch SQL support.
Apache License 2.0
14 stars 25 forks source link

Update `SHOW` and `DESCRIBE` queries. #85

Closed Yury-Fridlyand closed 1 year ago

Yury-Fridlyand commented 1 year ago

Description

As of https://github.com/opensearch-project/sql/pull/1181, SHOW and DESCRIBE queries syntax changed in V2. These query were falling back to V1 SQL plugin engine, which would be deprecated once upon a time. Updating this query in JDBC driver ensures that SQL plugin would properly respond to it. See similar fix in ODBC: https://github.com/opensearch-project/sql-odbc/pull/48.

Issues Resolved

N/A

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

GumpacG commented 1 year ago

Are these changes related to test failures? Tests may also need to get updated.

Yury-Fridlyand commented 1 year ago

Thank you for pointing this out, I had a mistake. Should be fixed now.