Skip to content

Conversation

Tishj
Copy link
Contributor

@Tishj Tishj commented Oct 12, 2024

This PR fixes #14343

The chunk we create and fill for a table in the Appender should not contain Vectors for generated columns, these are added later in the LocalAppend call.

Now they are ignored and no longer cause a "Call to EndRow before all columns have been appended to!" error.

@Tishj Tishj requested a review from Mytherin October 13, 2024 07:04
@Mytherin Mytherin merged commit 2c21eb1 into duckdb:main Oct 13, 2024
41 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Oct 17, 2024
[Appender] Support appending to table with generated columns (duckdb/duckdb#14346)
JSON reader - never generate maps if map_inference_threshold is -1 (duckdb/duckdb#14348)
github-actions bot added a commit to duckdb/duckdb-r that referenced this pull request Oct 17, 2024
[Appender] Support appending to table with generated columns (duckdb/duckdb#14346)
JSON reader - never generate maps if map_inference_threshold is -1 (duckdb/duckdb#14348)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
andrewhamon added a commit to andrewhamon/duckdb-rs that referenced this pull request Nov 27, 2024
Prior to duckdb/duckdb#14346, the C API did not
support appending to tables with computed columns.

This would cause panics until
duckdb#296, where a test was
introduced asserting that an append to a table with computed columns
returns an error value.

Now that appending to is supported, update the test to reflect that.
andrewhamon added a commit to andrewhamon/duckdb-rs that referenced this pull request Nov 27, 2024
Prior to duckdb/duckdb#14346, the C API did not
support appending to tables with computed columns.

This would cause panics until
duckdb#296, where a test was
introduced asserting that an append to a table with computed columns
returns an error value.

Now that appending to is supported, update the test to reflect that.
andrewhamon added a commit to andrewhamon/duckdb-rs that referenced this pull request Nov 27, 2024
Prior to duckdb/duckdb#14346, the C API did not
support appending to tables with computed columns.

This would cause panics until
duckdb#296, where a test was
introduced asserting that an append to a table with computed columns
returns an error value.

Now that appending to is supported, update the test to reflect that.
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.

Appender C API does not support generated columns
2 participants