Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add duckdb patch signature_capi #1918

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Conversation

carlopi
Copy link
Collaborator

@carlopi carlopi commented Nov 12, 2024

Signature of capi extensions changed from returning void to returning a boolean, mismatch on native targets is fine, since result is just ignored, but flagged problems in wasm validation due to signature changing in an incompatible way from (int,int)->() to (int,int)->(int).

Given the error is on validation of indirect call, I am not aware of a workaround Wasm side, and given capi extensions are still experimental, and more so in duckdb-wasm, I would propose taking this liberty from DuckDB source code to allow more simpler exploration on this matter.

Discussed with @samansmink.

Signature of capi extensions changed from returning void to returning a boolean,
mismatch on native targets is fine, since result is just ignored, but flagged
problems in wasm validation. Given capi extensions are still experimental, and
more so in duckdb-wasm, I would propose taking this liberty from DuckDB source
code to allow more simpler exploration on this matter.
@carlopi
Copy link
Collaborator Author

carlopi commented Nov 12, 2024

Also to be noted, this changed in duckdb main branch already, so that would allow to test extensions either:

  • duckdb native on v1.1.3
  • duckdb native on main
  • duckdb-wasm on v1.1.3
  • duckdb-wasm on main

and see similar results. Otherwise the third option would have been left behind, and that would mean that errors will be only noticed with delays.

@carlopi carlopi merged commit e13d096 into duckdb:main Nov 12, 2024
15 checks passed
@carlopi carlopi deleted the change_signature_capi branch November 12, 2024 23:51
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.

2 participants