nushell/crates/nu_plugin_polars/src
Jack Wright c535c24d03
catch unwrap on panics with polars collect (#13850)
# Description
This resurrects the work from #12866 and fixes #12732. 

Polars panics for a plethora or reasons. While handling panics is
generally frowned upon, in cases like with `polars collect` a panic
cause a lot of work to be lost. Often you might have multiple dataframes
in memory and you are trying one operation and lose all state.

While it possible the panic can leave things a strange state, it is
pretty unlikely as part of a polars pipeline. Most of the time polars
objects are not manipulating dataframes in memory mutability, but rather
creating a new dataframe the operations being applied. This is always
the case with a lazy pipeline. After the collect call, the original
dataframes are intact still and I haven't observed any side effects.
2024-09-15 07:21:02 -05:00
..
cache Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
dataframe catch unwrap on panics with polars collect (#13850) 2024-09-15 07:21:02 -05:00
lib.rs catch unwrap on panics with polars collect (#13850) 2024-09-15 07:21:02 -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