Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(go/adbc/driver/snowflake): handle non-arrow result sets #909

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

zeroshade
Copy link
Member

Closes #863

@zeroshade zeroshade requested a review from lidavidm July 17, 2023 19:59
Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

How much of this can we push upstream?

Comment on lines 359 to 360
// XXX: there IS data in this result set, but Snowflake doesn't
// appear to support getting the results as Arrow
Copy link
Member

Choose a reason for hiding this comment

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

Outdated comment?

@zeroshade
Copy link
Member Author

@lidavidm Hm. In theory we probably could upstream more of this than I did. Right now the only thing I upstreamed was making the [][]*string accessible in the loader, the extractTimestamp function is mostly pulled from snowflake's library directly. Right now the upstream snowflake library has many things for converting from Arrow to other types, but doesn't convert to arrow.

The only drawback to pushing this upstream is that it puts us back into the situation where we run into problems between the Arrow major version in snowflake vs the Arrow major version in ADBC. Right now we get to avoid that issue by having the conversion here.

@lidavidm
Copy link
Member

Ok, sounds good to me.

@zeroshade zeroshade merged commit 78d44ac into apache:main Jul 18, 2023
44 checks passed
@zeroshade zeroshade deleted the snowflake-non-arrow branch July 18, 2023 14:25
@lidavidm lidavidm added this to the ADBC Libraries 0.6.0 milestone Jul 20, 2023
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.

go/adbc/driver/snowflake: Panic when running show warehouses with Snowflake driver
2 participants