queryverse / queryverse/Query.jl

Enable generator syntax for sub-queries

Open
#82 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

It would be nice if the following syntax would work:

rts = @from row in results begin
    @where row.trial >= 1
    @group row by (row.sid, row.trial) into trial
    @let filtered_trial = (i for i in trial if 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 shown in the issue and inspect how Query.jl currently handles generator expressions inside grouped queries. Define completion as making that syntax execute successfully with the demonstrated filtering and selected fields, while preserving existing query behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.