Skip to content

chore: merge upstream v1.5-variegata for DuckDB v1.5.1#3

Merged
qsliu2017 merged 82 commits into
mainfrom
merge-v1.5.1
Mar 25, 2026
Merged

chore: merge upstream v1.5-variegata for DuckDB v1.5.1#3
qsliu2017 merged 82 commits into
mainfrom
merge-v1.5.1

Conversation

@qsliu2017

Copy link
Copy Markdown
Collaborator

Summary

Merge upstream duckdb/ducklake v1.5-variegata branch into relytcloud's main for DuckDB v1.5.1 ABI compatibility.

Conflict resolutions

4 files had merge conflicts between relytcloud customizations and upstream changes:

  1. postgres_metadata_manager.hpp -- Kept InlinedDeletionTableExists override (relytcloud), dropped duplicate TransformInlinedData declaration
  2. postgres_metadata_manager.cpp -- Combined both TransformInlinedData implementations (upstream's BLOB->VARCHAR Reinterpret + relytcloud's VectorOperations::Cast for general type mismatches)
  3. ducklake_metadata_manager.cpp -- Kept relytcloud's virtual Query() calls + upstream's error-throwing patterns; kept relytcloud's InlinedDeletionTableExists() and GetActiveFiles() helpers
  4. ducklake_transaction.cpp -- Kept relytcloud's null guard on connection->BeginTransaction()

Known issue

DuckDB v1.5.1 changed catalog transaction isolation: a catalog ATTACHed via ExecuteDuckDBQuery (SPI/raw_query path) becomes invisible in subsequent PG transactions. This causes "Catalog __ducklake_metadata_pgducklake does not exist" errors in pg_regress tests (which use file mode where each statement is a separate transaction). Manual psql -c (single transaction) works fine. The fix likely requires ATTACHing via the DuckDB connection directly instead of through SPI.

Related

Ubuntu and others added 30 commits March 12, 2026 08:52
The file size check (>= target_file_size) was intended for
MERGE_ADJACENT_TABLES to avoid merging already-large files, but it
incorrectly also gated REWRITE_DELETES. This caused data files larger
than target_file_size (default 512 MB) with associated delete files to
be silently skipped by ducklake_rewrite_data_files, leaving delete
files that can never be eliminated.

Fixes duckdb#821
…iles

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…-files

Fix: rewrite_data_files skips large files with delete files
All access paths to table_data_changes go through the guard lock
ducklake_delete_orphaned_files now only deletes parquet files
Fix issue when parsing table macros
pdet and others added 28 commits March 21, 2026 11:45
Fix issue with macro and schema being created in same transaction and multiple macros in same transaction
…d-output

fix: compaction should not inherit per_thread_output from lake config
…asted to handle the sink, since merge gotta do that
Fix for s3 and SET disabled_filesystems = 'LocalFileSystem'
…elete_inling

Cache existence of GetInlinedDeletionTableName
Copy the delete data to avoid corruption of snapshot_ids borking delete merges
@qsliu2017 qsliu2017 merged commit e0b0bdb into main Mar 25, 2026
5 of 17 checks passed
@qsliu2017 qsliu2017 deleted the merge-v1.5.1 branch March 25, 2026 07:18
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.

7 participants