queryverse / queryverse/Query.jl
Enable generator syntax for sub-queries
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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