Skip to content

Midhun/fix extension: Fix DuckDB v1.4.2 compatibility#64

Merged
harrygav merged 12 commits intomainfrom
midhun/fix_extension
Dec 10, 2025
Merged

Midhun/fix extension: Fix DuckDB v1.4.2 compatibility#64
harrygav merged 12 commits intomainfrom
midhun/fix_extension

Conversation

@midhun-TUB
Copy link
Collaborator

Summary

This PR fixes multiple issues to ensure compatibility with DuckDB v1.4.2:

  • Updated extension API for compatibility
  • Updated CI pipeline
  • Updated DuckDB submodule to v1.4.2
  • Fixed Wasm threading incompatibilities
  • Resolved macOS ARM64 linker errors

Changes

  • Added docker-demo for testing

Testing

  • CI pipeline updated to use DuckDB v1.4.2
  • Extension builds successfully across platforms

- Migrated to ExtensionLoader API (LoadInternal, DUCKDB_CPP_EXTENSION_ENTRY)
- Updated docker-demo to use DuckDB v1.4.2
- Added todo.md for Ubuntu verification

Addresses GitHub issue #63
- Updated Load method signature from ExtensionLoader to DuckDB &db
- Changed to use ExtensionUtil::RegisterFunction instead of loader.RegisterFunction
- Updated extern C entry point to use new API
- Added build dependencies to Dockerfile (git, cmake, ninja, ccache)
- Created docker-compose.yml for easier development workflow
- Added test_verification.sql for testing
- Updated README with verification instructions
- Changed from v1.1.0 to v1.4.0 to match extension API compatibility
- Updated extension-ci-tools reference to @v1.4.0
- This ensures CI tests the correct API version
- Added Version() method declaration in header
- Added Version() method implementation
- Fixes 'marked override but does not override' error
- Completes DuckDB v1.4.0 Extension API migration
- Changed from v1.1.0-migration to v1.4.0
- Required for Extension API compatibility
- Update MainDistributionPipeline.yml to use v1.4.2 instead of v1.4.0
- This matches the version in the duckdb submodule and Dockerfile
@midhun-TUB midhun-TUB requested a review from harrygav November 21, 2025 17:38
@freddie-freeloader
Copy link
Contributor

@midhun-TUB Great stuff! 😊 If it makes sense, please consider creating a PR on https://github.com/duckdb/community-extensions that replaces me with yourself as the maintainer?
Here’s the relevant file: https://github.com/duckdb/community-extensions/blob/main/extensions/sheetreader/description.yml. ☺️

Copy link

@harrygav harrygav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@harrygav harrygav merged commit f25ca59 into main Dec 10, 2025
22 checks passed
@harrygav harrygav deleted the midhun/fix_extension branch December 10, 2025 21:40
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.

3 participants