nushell/crates/nu_plugin_polars/src
Jack Wright 803bc9c63f
Incrementing the eager dataframe cache value before returning it (#13624)
# Description

Fixes issue [12828](https://github.com/nushell/nushell/issues/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.
2024-08-14 15:38:46 -05:00
..
cache Polars: Check to see if the cache is empty before enabling GC. More logging (#13286) 2024-07-03 06:44:26 -05:00
dataframe Incrementing the eager dataframe cache value before returning it (#13624) 2024-08-14 15:38:46 -05:00
lib.rs Polars: Check to see if the cache is empty before enabling GC. More logging (#13286) 2024-07-03 06:44:26 -05:00
main.rs Converted perf function to be a macro. Utilized the perf macro within the polars plugin. (#13224) 2024-06-27 18:56:56 -05:00