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

Incrementing the eager dataframe cache value before returning it #13624

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

ayax79
Copy link
Contributor

@ayax79 ayax79 commented Aug 14, 2024

Description

Fixes issue 12828.

When attempting a polars collect on an eager dataframe, we return dataframe as is. However, before this fix I failed to increment the internal cache reference count. This caused the value to be dropped from the internal cache when the references were decremented again.

This fix adds a call to cache.get to increment the value before returning.

@fdncred fdncred merged commit 803bc9c into nushell:main Aug 14, 2024
13 checks passed
@fdncred
Copy link
Collaborator

fdncred commented Aug 14, 2024

Thanks for digging in.

@hustcer hustcer added this to the v0.97.0 milestone Aug 15, 2024
@ayax79 ayax79 deleted the collect_cache_issue branch August 20, 2024 22:25
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.

3 participants