Skip to content

feat(sql): add WebAssembly (WASM) UDF execution support in streaming SQL (#1653) - #2560

Open
ossamartinaaron09-ui wants to merge 2 commits into
getdozer:mainfrom
ossamartinaaron09-ui:feat/wasm-udf-support
Open

ossamartinaaron09-ui wants to merge 2 commits into
getdozer:mainfrom
ossamartinaaron09-ui:feat/wasm-udf-support

Conversation

@ossamartinaaron09-ui

Copy link
Copy Markdown

Summary

Adds support for WebAssembly (WASM) SQL User-Defined Functions (UDF) in Dozer Core (#1653).

Implementation Details

  • Integrated wasmtime (v18) runtime engine for loading WASM binaries and executing sandboxed functions.
  • Extended UdfType configuration in dozer-types with Wasm(WasmConfig).
  • Implemented WasmUdf evaluator in dozer-sql-expression with bidirectional type conversion between Dozer Field types and WebAssembly Val types (I64, I32, F64, F32).
  • Integrated Expression::WasmUDF into SQL expression builder, type inference, and record evaluation pipelines.
  • Added comprehensive unit tests in wasm_udf.rs validating execution of WAT bytecode functions (integer arithmetic and floating point operations) against Dozer streaming records.

/claim #1653

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

This branch has not been deployed

No deployments
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