You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test above calls groupby aggregation where function _apply_agg_function is used. This function calls self._default_to_pandas and self._by.to_pandas().squeeze() and call to _default_to_pandas and to_pandas breaks omnisci backend with RuntimeError: unexpected to_pandas triggered on lazy frame:
Trackback for to_pandas
Traceback (most recent call last):
File "/localdisk/gashiman/modin/modin/experimental/engines/omnisci_on_ray/test/test_dataframe.py", line 556, in test_groupby_mean
run_and_compare(groupby_mean, data=self.data, cols=cols, as_index=as_index)
File "/localdisk/gashiman/modin/modin/experimental/engines/omnisci_on_ray/test/test_dataframe.py", line 104, in run_and_compare
**kwargs
File "/localdisk/gashiman/modin/modin/experimental/engines/omnisci_on_ray/test/test_dataframe.py", line 70, in run_modin
exp_res = fn(lib=pd, **kwargs)
File "/localdisk/gashiman/modin/modin/experimental/engines/omnisci_on_ray/test/test_dataframe.py", line 554, in groupby_mean
return df.groupby(cols, as_index=as_index).mean()
File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 131, in mean
return self._apply_agg_function(lambda df: df.mean(*args, **kwargs))
File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 842, in _apply_agg_function
by = self._by.to_pandas().squeeze()
File "/localdisk/gashiman/modin/modin/experimental/backends/omnisci/query_compiler.py", line 92, in to_pandas
return self._modin_frame.to_pandas()
File "/localdisk/gashiman/modin/modin/experimental/engines/omnisci_on_ray/frame/data.py", line 1239, in to_pandas
self._execute()
File "/localdisk/gashiman/modin/modin/experimental/engines/omnisci_on_ray/frame/data.py", line 991, in _execute
raise RuntimeError("unexpected execution triggered on lazy frame")
RuntimeError: unexpected execution triggered on lazy frame
Trackback for _default_to_pandas
Traceback (most recent call last):
File "/localdisk/gashiman/modin/modin/experimental/engines/omnisci_on_ray/test/test_dataframe.py", line 556, in test_groupby_mean
run_and_compare(groupby_mean, data=self.data, cols=cols, as_index=as_index)
File "/localdisk/gashiman/modin/modin/experimental/engines/omnisci_on_ray/test/test_dataframe.py", line 104, in run_and_compare
**kwargs
File "/localdisk/gashiman/modin/modin/experimental/engines/omnisci_on_ray/test/test_dataframe.py", line 70, in run_modin
exp_res = fn(lib=pd, **kwargs)
File "/localdisk/gashiman/modin/modin/experimental/engines/omnisci_on_ray/test/test_dataframe.py", line 554, in groupby_mean
return df.groupby(cols, as_index=as_index).mean()
File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 131, in mean
return self._apply_agg_function(lambda df: df.mean(*args, **kwargs))
File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 839, in _apply_agg_function
return self._default_to_pandas(f, *args, **kwargs)
File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 902, in _default_to_pandas
return self._df._default_to_pandas(groupby_on_multiple_columns, *args, **kwargs)
File "/localdisk/gashiman/modin/modin/pandas/base.py", line 369, in _default_to_pandas
pandas_obj = self._to_pandas()
File "/localdisk/gashiman/modin/modin/pandas/dataframe.py", line 2254, in _to_pandas
return self._query_compiler.to_pandas()
File "/localdisk/gashiman/modin/modin/experimental/backends/omnisci/query_compiler.py", line 92, in to_pandas
return self._modin_frame.to_pandas()
File "/localdisk/gashiman/modin/modin/experimental/engines/omnisci_on_ray/frame/data.py", line 1242, in to_pandas
raise RuntimeError("unexpected to_pandas triggered on lazy frame")
RuntimeError: unexpected to_pandas triggered on lazy frame
The text was updated successfully, but these errors were encountered:
gshimansky
changed the title
_apply_agg_function uses to_pandas function that is not allowed with omnisci backend
_apply_agg_function uses to_pandas functions that are not allowed with omnisci backend
Oct 28, 2020
Bug #2269 has been fixed, but this issue should remain open while test in bug still fails. It now fails because a lambda function is passed into omnisci backend groupby_agg. It should be fixed in #2317. But then test fails because index name cannot be assigned because of #2363.
System information
Ubuntu 20.04.1 LTS
modin.__version__
):0.8.1.1+41.ge2f628c
Python 3.7.8
Describe the problem
Test above calls groupby aggregation where function
_apply_agg_function
is used. This function callsself._default_to_pandas
andself._by.to_pandas().squeeze()
and call to_default_to_pandas
andto_pandas
breaks omnisci backend withRuntimeError: unexpected to_pandas triggered on lazy frame
:Trackback for to_pandas
Trackback for _default_to_pandas
The text was updated successfully, but these errors were encountered: