Repository navigation
feat: insert_into verb + distributed DuckLake reads - #13
Merged
Merged
Conversation
Add Dux.insert_into/3 for writing pipeline results to any table DuckDB can write to (local, attached Postgres, DuckLake, etc.). Supports `create: true` for CREATE TABLE AS semantics. Add distributed read support for DuckLake: the coordinator queries the DuckLake file manifest via ducklake_list_files() and distributes the backing Parquet files across workers. Workers read Parquet directly — no DuckLake extension needed on worker nodes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add sad path (insert into non-existent table), adversarial (nulls, empty dataframe), and wicked (pipeline before write, multiple inserts) tests for insert_into. Add partitioner edge cases: more workers than files, ops preservation through distribution. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Dux.insert_into/3— new verb for writing pipeline results into any table DuckDB can write to (local, attached Postgres, DuckLake, etc.). Supportscreate: trueforCREATE TABLE ASsemantics.ducklake_list_files()for the backing Parquet file manifest, then distributes those files across workers. Workers read Parquet directly — no DuckLake extension needed on worker nodes.insert_into examples
Distributed DuckLake read flow
{:attached, ...}source is DuckLake (viapragma_database_list)ducklake_list_files()to get backing Parquet pathsread_parquet(), no DuckLake attach neededTest plan
insert_intowithcreate: truecreates table from pipelineinsert_intoappends to existing tableinsert_intoworks with attached DuckDB database🤖 Generated with Claude Code