Skip to content

Prepare patched FastLanes for DuckDB 1.5.6 - #5

Merged
sebastiaan-dev merged 61 commits into
integration/duckdbfrom
fix/duckdb-1.5.6
Oct 14, 2026
Merged

sebastiaan-dev merged 61 commits into
integration/duckdbfrom
fix/duckdb-1.5.6

Conversation

@sebastiaan-dev

@sebastiaan-dev sebastiaan-dev commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Scope

Prepare the existing patched FastLanes implementation for the DuckDB 1.5.6 extension. This PR stops at 875e198; the subsequent filter-first/lazy-reader work is not included.

Why this base branch?

integration/duckdb is a frozen baseline at 7f91afdbd916d24ab5b39a990fbdf7d9157c0f69, the consolidated fastlanes-patched revision already used by the extension. The fork's historical main has unrelated Git history. Using this explicit integration base makes the compatibility changes reviewable without replacing or merging unrelated history into main.

main remains unchanged at 6c2e8df38519b479a1e3d5496b765b40538de52d. This is a PR in the personal fork, not a PR against CWIDA upstream.

Changes

  • Respect the embedding project's compiler/toolchain instead of forcibly changing cached compilers.
  • Value-initialize TypedStats::last_seen_val, avoiding null-pointer construction for std::string with current Clang.
  • Restore Connection-to-FileWriter forwarding of footer, sample-size and forced-encoding settings.
  • Preserve declared physical types when an encoding/schema pool is forced.
  • Restore deferred file opening while retaining thread-safe positional reads through call_once.
  • Initialize the read handle for Size-before-Read, retry failed initialization, validate read bounds, and report I/O errors/EOF in Release rather than relying on disabled assertions.
  • Add standalone regression tests without downloading GoogleTest or external datasets.
  • Document the old branch audit and recovery archives. History-only reconciliation merges preserve already-integrated work rather than restoring obsolete APIs.

Validation

Validation performed for this compatibility revision, before the later filter-first work:

  • Release extension build against DuckDB v1.5.6, on macOS arm64 / Apple Clang 21.
  • 6 standalone FastLanes integration cases covering new output files, concurrent positional reads, initialization/error paths and writer settings.
  • 175 assertions in 4 extension SQL test cases, including single-/multi-threaded round trips and ordered/unordered parallel COPY.
  • Both the paired local checkout and the extension's pinned-download-plus-patches build path pass.
  • The loadable extension loads in the official DuckDB 1.5.6 CLI and passes a 200,003-row round trip and multi-file filtering smoke checks.

Other platforms have not been validated by this migration.

Review boundary

  • No filter-first execution, lazy column/dependency reader API, new scan profiling counters or floating-point dictionary changes.
  • No rebase onto the latest cwida/FastLanes/dev.
  • No on-disk format change or claim of complete NULL/nested-type support.

Companion extension PR: sebastiaan-dev/duckdb-fastlanes#45

The matching extension PR carries these changes as checked-in patches over the same immutable baseline, so building it does not require an unpublished FastLanes commit.

Sebastiaan Gerritsen and others added 19 commits July 10, 2025 13:34
… init and file size into FileSystem helpers.
…essions

Carry forward lazy file opening from task/ifstream-to-pread while preserving shared concurrent readers through call_once. Size initializes the handle too, failed initialization is retryable, and runtime I/O errors do not disappear under NDEBUG. Cover writer settings restored from update and document the branch audit.
Audit recorded in docs/branch-consolidation.md. The current patch stack already contains the wanted writer, projection and BOOLEAN features; ad34adf was cherry-picked to restore option forwarding and deferred I/O was ported with thread-safe initialization. Keep the tested current implementation rather than restoring obsolete APIs, vendor snapshots or disabled tests. release_v0.1 and the unrelated main history remain separate.
@sebastiaan-dev
sebastiaan-dev merged commit 89e35a2 into integration/duckdb Oct 14, 2026
57 of 70 checks passed
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