Repository navigation
fix: Pass plain values to Arrow for list columns - #1
Open
JeetuSK0808 wants to merge 1 commit into
Open
JeetuSK0808 wants to merge 1 commit into
JeetuSK0808 wants to merge 1 commit into
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>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
For review before it goes upstream, as discussed by email with @marianogappa. Fixes cloudquery/cloudquery#23799.
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 cloudquery/plugin-sdk-python#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