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

Avoid nil pointer access due to empty chunk returned from gosnowflake.buildFirstArrowChunk #17

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

till-kolditz
Copy link

Description

Extended function buildFirstArrowChunk to also return an error, which when not nil is immediately returned by *snowflakeChunkDownloader.start() and *snowflakeChunkDownloader.startArrowBatches().

Checklist

  • Code compiles correctly
  • Run make fmt to fix inconsistent formats
  • Run make lint to get lint errors and fix all of them
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary

arrow_chunk.go Outdated Show resolved Hide resolved
…FirstArrowChunk

Modify gosnowflake.buildFirstArrowChunk to return an error and pass it
back up the call stack.

The following three tests fail additionally compared to upstream, which
is expected (see 'Maintaining the gosnowflake fork'):

> TestPutGetFile
> TestPutGetStream
> TestPutGetGcsDownscopedCredential
@till-kolditz till-kolditz merged commit e379dfe into master Dec 6, 2023
2 of 3 checks passed
@till-kolditz till-kolditz deleted the avoid_npe branch December 6, 2023 14:39
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants