Repository navigation
Expose versioned Paimon scan definitions for matching DuckDB hosts - #162
Open
realAaronWu wants to merge 3 commits into
Open
realAaronWu wants to merge 3 commits into
realAaronWu wants to merge 3 commits into
Conversation
realAaronWu
marked this pull request as ready for review
November 26, 2026 07:14
Contributor
Author
|
@mrdrivingduck When you have a chance, could you review the v1 scan-definition interface? It shares normal LOAD's definition builder and normalization, so a consumer can obtain a trusted reference from an already verified module without creating a second DuckDB instance. The visitor borrows each definition and stops immediately on refusal. The interface is scoped to matching DuckDB C++ ABI builds. Linux amd64 CI passed the real dynamic LOAD and regression tests. I also checked both defined exports and the CPP/v2.0.1 footer in the CI artifact. |
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.
Refs #136.
Expose one optional, versioned symbol for consumers with a matching DuckDB C++ ABI. The visitor receives both canonical Paimon scan definitions from the same construction and normalization path used by normal LOAD. It can obtain an independent reference from the already loaded module without creating another database or rerunning extension initialization. Existing SQL and get_bind_info behavior are unchanged.
The visitor borrows each definition during the call. A caller that copies it must keep the verified module loaded and discard partial results on failure.
Validation
Linux amd64 on DuckDB v2.0.1. The exact-head CI passed Format, the dynamic LOAD test, and the C++ and SQL regressions. The dynamic test compares both overloads and the attached scan against normal registration and checks visitor refusal. The workflow artifact contains a non-archive Linux DSO with both defined exports and a CPP/v2.0.1/linux_amd64 footer. Other platforms and archive-linked builds are outside this validation.