-
Notifications
You must be signed in to change notification settings - Fork 10
adapt name search from JSONTables.jl #50
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, added some comments. Great to have this.
Co-authored-by: Martijn Visser <[email protected]>
…nto better_columnnames
The current problem is I'm not sure if null geometries are meant to be represented by There is currently a mix ob both in different contexts. In return ifelse(x === nothing, missing, x) And tests reflect this with checks for The main issue with this is round-tripping I think we need to decide either way, and if its @visr any ideas here? The GeoInterface.jl tests want I guess we can also swap |
@visr do you want to have a look at this? |
Yes this behavior was intended to copy JSONTables. JSON3 by default parses JSON null to nothing, and serialize both nothing and missing to null. And in Julia null elements in data/tables are usually set to missing. That is why JSONTables put some I'm not sure what the best approach is here. |
I think how it is now is fine if you take a look at the changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks good, sorry for the wait.
Use the JSONTables.jl methods of getting a list of column names and types. Unfortunately we cant just use their methods as we need to dig into the
properties
field of each object, rather than using the top level fields.@visr this isn't quite finished, just pushing so you know I'm working on it and we don't duplicate effortsSo it turned out to be quite tricky getting this to work for both Object and NameTuple features.
There are likely still some issues with vectors of mixed field
NamedTuple
in broadcast or other places, but mostly things seem to be working.See #48
Fixes #45