queryverse / queryverse/Query.jl

Confusing error message

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

julia> data = @from t in train begin
           @where t.item_nbr == 1 
           @select t
       end
0x6 query result
id │ date │ store_nbr │ item_nbr │ unit_sales │ onpromotion
───┼──────┼───────────┼──────────┼────────────┼────────────

julia> data = @from t in train begin
           @where t.item_nbr == 1 
       end
ERROR: MethodError: no method matching @from(::Expr)
Closest candidates are:
  @from(::Expr, ::Expr) at /home/jamie/.julia/v0.6/Query/src/Query.jl:39

It seems that every query requires a select, but the error message doesn't tell you that.

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 in Query/src/Query.jl at the @from definitions around line 39, and reproduce the query that omits @select. Make the resulting error explain that every query requires a select clause, then verify that the reported message is clearer for this example.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.