queryverse / queryverse/Query.jl
Warn user if they `@select` a column which doesn't exist
Nobody has claimed this yet.
- 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
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 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