datatable icon indicating copy to clipboard operation
datatable copied to clipboard

Error when `f[:]` is used in the sort context

Open oleksiyskononenko opened this issue 3 years ago • 5 comments

from datatable import dt, f, sort
DT = dt.Frame([[1], [1]])
DT[:, :, sort(f[:])]

produces

AssertionError: Assertion 'flags.size() == ncols' failed in src/core/expr/eval_context.cc, line 264

oleksiyskononenko avatar Nov 23 '21 20:11 oleksiyskononenko

Actually, even

DT[:, :, sort(f[:], reverse=[True, False])]

will error as

ValueError: Mismatch between the number of columns (ncols=1) to be sorted and number of elements (nflags=2) in the reverse flag list

oleksiyskononenko avatar Nov 25 '21 01:11 oleksiyskononenko

No surprise, that the same error occurs when doing group by.

oleksiyskononenko avatar May 03 '22 05:05 oleksiyskononenko