Skip to content

Add Appender.append_chunk and nested type support - #586

Open
daviddallakyan2005 wants to merge 2 commits into
duckdb:mainfrom
daviddallakyan2005:appender-chunks
Open

Add Appender.append_chunk and nested type support#586
daviddallakyan2005 wants to merge 2 commits into
duckdb:mainfrom
daviddallakyan2005:appender-chunks

Conversation

@daviddallakyan2005

Copy link
Copy Markdown

Stacked on #585. Please merge that first.

GitHub has to target main until #585 lands, so the Files tab will also show the scalar Appender. Slice only:

daviddallakyan2005:appender...daviddallakyan2005:appender-chunks

Adds Appender.append_chunk(rows) and tests for list and struct values.

append() converts each cell to a Value and uses the C++ row Append API. Use append_chunk for bulk inserts, which writes into vectors in place.

How to test

OVERRIDE_GIT_DESCRIBE=v1.5.5
.venv/bin/pytest tests/fast/test_appender.py tests/fast/test_appender_chunk.py -q

tests/fast/test_appender_chunk.py: 4 passed. Parent scalar tests still pass.

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.

1 participant