-
Notifications
You must be signed in to change notification settings - Fork 24
fix: Process nulls for tested types, too (maps, lists, structs) #1125
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
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1125 +/- ##
==========================================
+ Coverage 46.99% 47.36% +0.37%
==========================================
Files 85 85
Lines 7782 7809 +27
==========================================
+ Hits 3657 3699 +42
+ Misses 3790 3771 -19
- Partials 335 339 +4
☔ View full report in Codecov by Sentry. |
hermanschaaf
left a comment
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 from a quick read through, but since it's complicated can we add a test for this change to check it's correct and prevent future regressions? (Testing the test library 😄)
Added in 8cac7c4 |
🤖 I have created a release *beep* *boop* --- ## [4.2.4](v4.2.3...v4.2.4) (2023-08-02) ### Bug Fixes * Check record equality before generating diff ([#1123](#1123)) ([b2e6331](b2e6331)) * **deps:** Update github.com/apache/arrow/go/v13 digest to 112f949 ([#1115](#1115)) ([ed0e4e0](ed0e4e0)) * **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 10df4b9 ([#1110](#1110)) ([636084c](636084c)) * **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 3452eb0 ([#1114](#1114)) ([af83988](af83988)) * **deps:** Update golang.org/x/exp digest to b0cb94b ([#1116](#1116)) ([4a6dc5b](4a6dc5b)) * **deps:** Update google.golang.org/genproto digest to e0aa005 ([#1117](#1117)) ([5fa4d51](5fa4d51)) * **deps:** Update google.golang.org/genproto/googleapis/api digest to e0aa005 ([#1118](#1118)) ([939060f](939060f)) * **deps:** Update google.golang.org/genproto/googleapis/rpc digest to e0aa005 ([#1119](#1119)) ([0a9f8ea](0a9f8ea)) * **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.9.0 ([#1112](#1112)) ([3831a88](3831a88)) * **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.9.1 ([#1113](#1113)) ([67bc46e](67bc46e)) * **deps:** Update module github.com/klauspost/compress to v1.16.7 ([#1120](#1120)) ([e41a303](e41a303)) * **deps:** Update module github.com/pierrec/lz4/v4 to v4.1.18 ([#1121](#1121)) ([6829b63](6829b63)) * Process nulls for tested types, too (maps, lists, structs) ([#1125](#1125)) ([4a1f315](4a1f315)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Follow-up for #12155. Depends on: * cloudquery/plugin-sdk#1123 * cloudquery/plugin-sdk#1124 * cloudquery/plugin-sdk#1125
As there are nested types in Apache Arrow we need to traverse them to properly handle nulls.
This change adds traversal to Structs & ListLike arrays (includes Maps, too, but the proper way, IMO, would be to handle the map items only (keys can't be nullable), however, it may be done as a follow-up when required).