We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, we have the following, which is correct:
(-> (tc/dataset {:a []}) (tc/group-by :b) ;; (err) Column not found: :b
However, when we run the following, we get an empty dataset and not an error:
(-> (tc/dataset {:a []}) (tc/group-by [:b]) ;; _unnamed [0 0]
Using group-by in this way should also return an error.
group-by
The text was updated successfully, but these errors were encountered:
Great bug report and we agree this is the desired behavior!
tablecloth is built on TMD and we it appears in these situations TMD has reasonable responses thus far:
tech.v3.dataset-test> (ds/group-by->indexes (ds/empty-dataset) :a) {} tech.v3.dataset-test> (ds/group-by-column->indexes (ds/empty-dataset) :a) Execution error at tech.v3.dataset.impl.dataset.Dataset/column (dataset.clj:308). Column not found: :a tech.v3.dataset-test> (ds/group-by-column->indexes (ds/->dataset {:a []}) :a) {}
Potentially the last case - {:a []} should return {:a (ds/empty-dataset)}.
{:a []}
{:a (ds/empty-dataset)}
Sorry, something went wrong.
No branches or pull requests
Currently, we have the following, which is correct:
However, when we run the following, we get an empty dataset and not an error:
Using
group-by
in this way should also return an error.The text was updated successfully, but these errors were encountered: