-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[C++] List types with different field names are not equal #30519
Comments
Antoine Pitrou / @pitrou: |
Joris Van den Bossche / @jorisvandenbossche: |
Will Jones / @wjones127: I encountered this issue again here: delta-io/delta-rs#684 (comment) My recent experiences have led me to believe that (1) we should not care about field names when comparing ListType and (2) we should enable Though if that's not acceptable, I think we should at least provide an an option in the |
Joris Van den Bossche / @jorisvandenbossche:
We are starting to use custom field names in the extension types for geospatial data (https://github.com/geopandas/geo-arrow-spec/blob/main/extension-types.md#concrete-examples-of-extension-type-metadata, https://github.com/paleolimbot/geoarrow/). |
Will Jones / @wjones127: |
Dewey Dunnington / @paleolimbot: |
Antoine Pitrou / @pitrou: |
Dewey Dunnington / @paleolimbot: |
Will Jones / @wjones127:
I'm leaning right now that the default for checking equality should be to ignore field names for List/Map (obviously not for struct) in cases where we also don't check metadata. For example, |
That sounds reasonable to me. |
Antoine Pitrou / @pitrou: |
When comparing map types, the names of the fields are ignored. This was introduced in ARROW-7173.
However for list types, they are not ignored. For example,
Should we make list type comparison ignore field names too?
Reporter: Will Jones / @wjones127
Assignee: Will Jones / @wjones127
Related issues:
PRs and other links:
Note: This issue was originally created as ARROW-14999. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: