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

SNOW-747896: Clean up the first chunk of data that has been previously used #772

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

sfc-gh-ext-simba-jl
Copy link
Collaborator

@sfc-gh-ext-simba-jl sfc-gh-ext-simba-jl commented Apr 12, 2023

Description

Issue 300: https://github.com/snowflakedb/snowflake-sdks-drivers-issues-teamwork/issues/300
The data chunk at index 0 is not cleaned up until the end when reset() is called in rows.go and consumes memory.
This PR cleans it up by freeing the chunk before reading the next chunk.

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

Copy link
Collaborator

@sfc-gh-igarish sfc-gh-igarish left a comment

Choose a reason for hiding this comment

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

LGTM

@sfc-gh-ext-simba-jl sfc-gh-ext-simba-jl merged commit 5cb2cbe into master Apr 12, 2023
@sfc-gh-ext-simba-jl sfc-gh-ext-simba-jl deleted the SNOW-747896-free-first-arrow-chunk branch April 12, 2023 22:18
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 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.

None yet

2 participants