Repository navigation
fix: Pass plain values to Arrow for list columns - #438
Merged
Merged
Conversation
Resource.to_list_of_arr handed pyarrow a List's Vector of scalars, so any row with a non-empty list column raised ArrowTypeError and the rest of the table was dropped. A null list also went out as []. An empty list is now valid too. Fixes cloudquery/cloudquery#23799 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
marianogappa
approved these changes
Dec 1, 2026
marianogappa
left a comment
Contributor
There was a problem hiding this comment.
@JeetuSK0808 you've found and fixed a legitimately large issue, thank you for your contribution!
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes cloudquery/cloudquery#23799. @marianogappa looked it over on my fork first (JeetuSK0808#1) and asked me to open it here.
Resource.to_list_of_arrpassesList.value, which is aVectorof scalars, straight to pyarrow, so any row with a non-empty list column raisesArrowTypeErrorand the rest of the table is dropped. A null list also goes out as[].resource.py: a list column goes to pyarrow as a plain list of its items' values, orNonewhen it's null.list.py: an empty list is valid. This is the same line fix: Correct scalar validity for null timestamps and empty lists #423 changes.The new
tests/schema/test_resource.pyfails onmainand passes here. pytest: 88 passed with the fix and 87 onmain, and the one failure both times istest_plugin_package, which needs Docker. black is clean.I used Claude Code to find and check this.
Generated with Claude Code