Skip to content

Conversation

@nuno-faria
Copy link
Contributor

When the InsertBuilder is called with empty batches, it generates invalid INSERT statements, since there won't be a VALUES expression. This PR prevents this by returning an error if there are no rows in the provided batches.

Also added an error when no batches are provided, since previously it panicked at self.record_batches[0].

@phillipleblanc phillipleblanc merged commit fd99a00 into datafusion-contrib:main Jan 19, 2026
11 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.

2 participants