Support customized session thrift protocol version and support binary column type #7216
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why are the changes needed?
For RESTful api, the session protocol version is set to V1 before and not open to users.
kyuubi/kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/SessionsResource.scala
Line 419 in aadf866
And before V6, the result is RowBased, since V6, it is ColumnBased.
kyuubi/kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/cli/RowSetFactory.java
Lines 29 to 33 in aadf866
And with
HIVE_CLI_SERVICE_PROTOCOL_V1
, forBINARY
type column, it is converted as STRING type for RESTful API.In this PR, we make the session protocol open to users and support to transfer binary type values.
How was this patch tested?
UT.
Was this patch authored or co-authored using generative AI tooling?
No.