queryverse / queryverse/Query.jl

Warn user if they `@select` a column which doesn't exist

Open
#286 2 comments 2 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

If the user specifies named columns to @select, and any of those columns do not exist, the macro does not provide a warning.

For example, I wanted to get two named columns from a DataFrame called df:

df |> @select(:first_col, :secon_col) # note mis-spelling of `second_col`

Actual behaviour:
This returned a query result with only first_col.
Expected behaviour:
Show a warning like No column "secon_col" in source, and then return a query result with only first_col

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 locating the @select macro implementation and the code that resolves named columns from a DataFrame. Reproduce the misspelled-column example, then make the completed behavior emit a warning such as "No column "secon_col" in source" while still returning the result with the valid columns.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.