-
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.
GH-35871: [Go] Account for struct validity bitmap in `array.ApproxEqu…
…al` (#35872) ### Rationale for this change When comparing `array.Struct` values with `array.ApproxEqual` the validity bitmap of the struct itself should take precedence: > When reading the struct array the parent validity bitmap takes priority. This follows a brief discussion from #35851. ### What changes are included in this PR? `array.arrayApproxEqualStruct` will check the fields data only if the struct elem is valid. ### Are these changes tested? `pqarrow` tests are updated accordingly (no special treatment for structs, just `array.ApproxEqual` ### Are there any user-facing changes? `array.ApproxEqual` behavior changed to match the docs about validity bitmap precedence. * Closes: #35871 Authored-by: candiduslynx <candiduslynx@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
- Loading branch information
1 parent
3299d12
commit 61692b6
Showing
4 changed files
with
79 additions
and
63 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