Skip to content

Expose versioned Paimon scan definitions for matching DuckDB hosts - #162

Open
realAaronWu wants to merge 3 commits into
polardb:mainfrom
realAaronWu:codex/paimon-scan-definitions-v1
Open

realAaronWu wants to merge 3 commits into
polardb:mainfrom
realAaronWu:codex/paimon-scan-definitions-v1

Conversation

@realAaronWu

@realAaronWu realAaronWu commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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.

@realAaronWu
realAaronWu marked this pull request as ready for review November 26, 2026 07:14
@realAaronWu

Copy link
Copy Markdown
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.

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