Skip to content

fix: Pass plain values to Arrow for list columns - #438

Merged
marianogappa merged 1 commit into
cloudquery:mainfrom
JeetuSK0808:fix/list-column-values
Dec 1, 2026
Merged

marianogappa merged 1 commit into
cloudquery:mainfrom
JeetuSK0808:fix/list-column-values

Conversation

@JeetuSK0808

Copy link
Copy Markdown
Contributor

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_arr passes List.value, which is a Vector of scalars, straight to pyarrow, so any row with a non-empty list column raises ArrowTypeError and the rest of the table is dropped. A null list also goes out as [].

The new tests/schema/test_resource.py fails on main and passes here. pytest: 88 passed with the fix and 87 on main, and the one failure both times is test_plugin_package, which needs Docker. black is clean.

I used Claude Code to find and check this.

Generated with Claude Code

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>
@JeetuSK0808
JeetuSK0808 requested a review from a team as a code owner December 1, 2026 00:28
@JeetuSK0808
JeetuSK0808 requested review from chpl and removed request for a team December 1, 2026 00:28
@marianogappa
marianogappa self-requested a review December 1, 2026 06:42

@marianogappa marianogappa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JeetuSK0808 you've found and fixed a legitimately large issue, thank you for your contribution!

@marianogappa
marianogappa added this pull request to the merge queue Dec 1, 2026
Merged via the queue into cloudquery:main with commit b7b610e Dec 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Python plugin SDK can't sync list columns (ArrowTypeError on any non-empty list, null lists written as [])

2 participants