Skip to content

Conversation

@candiduslynx
Copy link
Contributor

@candiduslynx candiduslynx commented Aug 1, 2023

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).

@github-actions
Copy link

github-actions bot commented Aug 1, 2023

⏱️ Benchmark results

Comparing with b2e6331

  • Glob-8 ns/op: 100.4 ⬆️ 0.20% increase vs. b2e6331

@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Patch coverage: 59.09% and project coverage change: +0.37% 🎉

Comparison is base (b2e6331) 46.99% compared to head (8cac7c4) 47.36%.

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     
Files Changed Coverage Δ
plugin/nulls.go 56.00% <59.09%> (+56.00%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@hermanschaaf hermanschaaf left a 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 😄)

@candiduslynx
Copy link
Contributor Author

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

@disq disq merged commit 4a1f315 into main Aug 2, 2023
@disq disq deleted the fix/nulls branch August 2, 2023 10:40
kodiakhq bot pushed a commit that referenced this pull request Aug 2, 2023
🤖 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).
kodiakhq bot pushed a commit to cloudquery/cloudquery that referenced this pull request Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants