-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
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
push! by Tuple, not NamedTuple, fails and creates a dummy row #84
Comments
This is an interesting request. Currently Ideally we'd try to make operations like |
Just ran into this with the latest version. It seems to me that the enhancement label is a bit misleading, since the behavior described in the title is a bug. Allowing pushes of non-Named Tuples is an enhancement that might cure the problem (or not, since dimensional mismatch would still be possible), but "simply" assuring that an error doesn't stuff junk into the table would fix the bug.
|
Yes, I suppose there are two fixes here. One it to try make the updates "atomic" on typed tables, to fix the bug of the table being corrupted. I worry that in general this is basically impossible to fix, but we should make a best effort where practical. The second is to actually support conversion from tuples. |
As shown below, a failed
push!
(due to using Tuple or Array, not NamedTuple) adds a row with dummy data.Also, would it be possible to support
push!
by Tuple or Array (based on the argument order), like in DataFrames.jl?Output:
Here's the versioninfo.
The text was updated successfully, but these errors were encountered: