Skip to content

Commit

Permalink
Revert LazyFrame implementation with stack (#892)
Browse files Browse the repository at this point in the history
This is because we could make the remaining group operations work
without having to deal with the stack in any special way.

It's a revert of #882
  • Loading branch information
philss authored Apr 11, 2024
1 parent 9a996fb commit 5167342
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 177 deletions.
2 changes: 1 addition & 1 deletion lib/explorer/polars_backend/data_frame.ex
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ defmodule Explorer.PolarsBackend.DataFrame do
def lazy(df) do
case Native.df_lazy(df.data) do
{:ok, polars_df} ->
%{df | data: struct!(lazy(), frame: polars_df)}
%{df | data: polars_df}

{:error, error} ->
raise "error when assigning lazy frame: #{inspect(error)}"
Expand Down
Loading

0 comments on commit 5167342

Please sign in to comment.