Open nijssen opened 1 year ago
I checked the behavior. As you reported, specifying an non-existent column name in a grouping results a fatal error.
I also wanted a way to avoid raising errors when specifying a column that does not exist. I will consider your suggestion. Thank you.
If you have an empty table, and try to group by on it, then this error will occur. For example:
I guess the desired behavior isn't exactly clear: since the file is empty csvq cannot know the column names; on the other hand maybe we could add a flag to just assume any unknown columns are treated as null?
(NB: although I used csv in above example, my real use case is JSON; then the file would become just
[]
and the same problem occurs)