Skip to content

Conversation

@jackyhu-db
Copy link
Contributor

PR Description

Description

This PR adds property ServerProtocolVersion into HiveServer2Connection so that it can be used to check if a certain feature is supported by the server by checking its ServerProtocolVersion and only use this feature when ServerProtocolVersion meets the requirement.

Changes

  • Added the ServerProtocolVersion in HiveServer2Connection
  • Set ServerProtocolVersion with the ServerProtocolVersion from TOpenSessionResp when opening session

Motivation

ServerProtocolVersion can be used to check if a certain feature is supported by the server by checking its ServerProtocolVersion and only use this feature when ServerProtocolVersion meets the requirement.

Testing

  • Verified ServerProtocolVersion was set after opening the connection

@github-actions github-actions bot added this to the ADBC Libraries 19 milestone Jun 10, 2025
@jackyhu-db jackyhu-db force-pushed the hive2-server-protocol branch from 6a06aeb to 09de91f Compare June 10, 2025 11:29
@CurtHagenlocher CurtHagenlocher merged commit 2a52322 into apache:main Jun 10, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants