Skip to content

fix: include catalog.hpp directly in pyconnection.cpp#541

Open
NickCrews wants to merge 1 commit into
duckdb:mainfrom
NickCrews:fix-missing-catalog-include
Open

fix: include catalog.hpp directly in pyconnection.cpp#541
NickCrews wants to merge 1 commit into
duckdb:mainfrom
NickCrews:fix-missing-catalog-include

Conversation

@NickCrews

Copy link
Copy Markdown
Contributor

What

One-line fix: add #include "duckdb/catalog/catalog.hpp" to src/pyconnection.cpp.

Why

pyconnection.cpp uses Catalog::GetCatalog / Catalog::GetSystemCatalog but relied on a transitive include of catalog.hpp via function/table_function.hppexecution/physical_operator_states.hpp. duckdb main removed that include chain (~2026-07-10).

PR and nightly CI build against duckdb main (duckdb-sha: ${{ github.base_ref }} in on_pr.yml), so every PR currently fails with:

src/pyconnection.cpp:447:19: error: incomplete type 'duckdb::Catalog' named in nested name specifier

(e.g. #409 and main's own Release runs). Builds against the pinned submodule (3a3c412) are unaffected, which is why this doesn't reproduce locally.

Verification

Compiled pyconnection.cpp locally against both duckdb main (2009475939) and the pinned submodule: error reproduces on duckdb main without this change, compiles cleanly with it on both.

🤖 Generated with Claude Code

pyconnection.cpp uses Catalog::GetCatalog/GetSystemCatalog but relied on
a transitive include of duckdb/catalog/catalog.hpp via
function/table_function.hpp -> execution/physical_operator_states.hpp.
duckdb main removed that include chain (~2026-07-10), so PR and nightly
CI - which build against duckdb main via the duckdb-sha override - fail
to compile with "incomplete type 'duckdb::Catalog'". Include the header
directly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@NickCrews

Copy link
Copy Markdown
Contributor Author

Looks like CI still fails during the testing phase for unrelated reasons, but at least we can even build it.

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