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

Open
#3,208 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, python
Domain
data

Research direction

Start by running the Python reproducer for DT[:, :, sort(f[:])] and inspect the assertion at src/core/expr/eval_context.cc, line 264. Trace how the sort expression handles f[:]; done means the example no longer raises the reported assertion and sorting behaves correctly.

Written by the indexing model from the issue text.

Description

bug
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
Dominant language
C++
Stars
1.9k
Forks
164
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from h2oai/datatable

All issues in h2oai/datatable

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.