-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CHORE] Fix List/FixedSizeList DataType to hold a dtype instead of Fi…
…eld (#1351) Closes: #1264 Closes: #994 Previously, our `DataType::List/FixedSizeList` would hold a child Field instead of DataType. This was causing a few problems: 1. When comparing equality of two schemas, we often hit weird cases where the naming of the subfield was wrong 2. When creating a new ListArray, sometimes we could forget to correctly name the child array (e.g. when using a growable) which would result in pretty nasty failures This PR: 1. Hardcodes the child Series' name to `"list"` 2. Changes List/FixedSizeList DataType to hold a dtype instead of Field, which essentially removes the name from the type and makes it "anonymous" Note that this is consistent with PyArrow behavior as well - in more recent versions of PyArrow, they have started to ignore equality of the subfield's name. --------- Co-authored-by: Jay Chia <[email protected]@users.noreply.github.com>
- Loading branch information
Showing
32 changed files
with
175 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.