Skip to content

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

Open
@metanoid

Description

@metanoid

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions