Skip to content

Comments

feat: Add SQL write support (INSERT INTO) for DuckLake catalogs#47

Merged
shefeek-jinnah merged 3 commits intomainfrom
shefeek/write_support_sql
Feb 4, 2026
Merged

feat: Add SQL write support (INSERT INTO) for DuckLake catalogs#47
shefeek-jinnah merged 3 commits intomainfrom
shefeek/write_support_sql

Conversation

@shefeek-jinnah
Copy link
Collaborator

This extends the write support introduced in #46 to work with DataFusion's
standard SQL interface, enabling INSERT INTO statements.

Changes:

  • Add DuckLakeCatalog::with_writer() constructor to enable write operations
  • Implement TableProvider::insert_into() for INSERT INTO statements
  • Add DuckLakeInsertExec execution plan that writes to Parquet and registers
    files in the catalog metadata
  • Propagate MetadataWriter through catalog -> schema -> table hierarchy
  • Add SchemaProvider::register_table() scaffolding for future CTAS support

Supported SQL operations:

  • INSERT INTO ... SELECT
  • INSERT INTO ... VALUES

@shefeek-jinnah shefeek-jinnah marked this pull request as ready for review February 4, 2026 10:38
@shefeek-jinnah shefeek-jinnah merged commit 3d57629 into main Feb 4, 2026
3 checks passed
@shefeek-jinnah shefeek-jinnah deleted the shefeek/write_support_sql branch February 4, 2026 10:38
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