Skip to content

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

Open
JeetuSK0808 wants to merge 1 commit into
mainfrom
fix/list-column-values
Open

JeetuSK0808 wants to merge 1 commit into
mainfrom
fix/list-column-values

Conversation

@JeetuSK0808

Copy link
Copy Markdown
Owner

For review before it goes upstream, as discussed by email with @marianogappa. Fixes cloudquery/cloudquery#23799.

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>
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5dd75318-84c4-470e-a141-c1e5e7aea9a4
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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 [])

1 participant