Skip to content

Conversation

@kravets-levko
Copy link
Contributor

@kravets-levko kravets-levko commented Feb 27, 2024

Older DBR versions may not return a serialized Arrow schema in TGetResultSetMetadataResp. But schema in Arrow binary format is required to deserialize Arrow batches (which contain only rows). Python connector has a code that converts Hive schema to Arrow, and this PR adds similar solution to Node connector.

Fixes #232

Signed-off-by: Levko Kravets <levko.ne@gmail.com>
Signed-off-by: Levko Kravets <levko.ne@gmail.com>
Copy link

@andrefurlan-db andrefurlan-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know the risk of regression, but assuming you have tested, the code looks good.

@kravets-levko kravets-levko merged commit b92b10c into main Mar 11, 2024
@kravets-levko kravets-levko deleted the infer-missing-arrow-schema branch March 11, 2024 16:49
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.

Query returns empty result set

3 participants