sql
sql copied to clipboard
[BUG] JDBC driver incorrectly reports it's user-agent and version
What is the bug?
JDBC driver sets User-Agent HTTP parameter to openes-jdbc/1.0.0.0.
The version is wrong and the moniker should probably be opensearch-jdbc.
What is the expected behavior?
- String moniker to identifier JDBC driver as an OpenSearch client (
opensearch-jdbcmaybe?) - User-Agent version to match the version of the jar file (set in
build.gradle).
Do you have any additional context? Version is set here. The comment says "keep in sync with gradle." It clearly hasn't been -- it'd be great if it can be kept in sync automatically.
Code related: https://github.com/opensearch-project/sql/blob/2.x/sql-jdbc/src/main/java/org/opensearch/jdbc/internal/Version.java#L12
Fixed in #941