queryverse / queryverse/Query.jl

Implement length for all enumerables

Open
#81 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Julia
Stars
403
Forks
48
Avg merge
3d 6h
Merged PRs (30d)
6

Description

This example doesn't work without a collect for the sub-query currently, and that is annoying:

rts = @from row in results begin
    @where row.trial >= 1
    @group row by (row.sid, row.trial) into trial
    @let filtered_trial = @where(trial, i -> i.code in ["stream_1", "stream_2"])
    @where length(filtered_trial)>0
    @select {
        rt = last(filtered_trial).time - first(filtered_trial).time,
        response = last(filtered_trial).code,
        trial_length = last(trial).time - first(trial).time
    }
    @collect DataFrame
end

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing the Julia query example in the issue, focusing on length(filtered_trial) where filtered_trial is a sub-query. Locate the enumerable implementation used by Query.jl and its tests; done means length works for the sub-query without requiring collect.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.