-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Go] Fixes record builder support for not-nullable fixed-size lists
Prior to this commit, the builder constructor for fixed-length lists would lose information as to whether the list elements were marked not-nullable, which meant the data type available from the builder would always reflect "nullable". When NewRecord was invoked, this type would get checked against the type present in the original schema. If the schema requested a not-nullable fixed-size array, this check would always fail and cause a panic. This commit introduces an alternative builder constructor "NewFixedSizeListBuilderWithField" for fixed-size lists that takes the entire field context, similar to what already exists for lists and large lists.
- Loading branch information
Showing
3 changed files
with
67 additions
and
13 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