Repository navigation
feat(sql): add WebAssembly (WASM) UDF support - #2547
Open
zaidrain06 wants to merge 1 commit into
Open
zaidrain06 wants to merge 1 commit into
zaidrain06 wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements WebAssembly (
.wasm) User-Defined Function (UDF) support in Dozer config and thedozer-sql-expressionengine (#1653).Key Changes
dozer-types/src/models/udf_config.rs&config.rs):UdfType::Wasm(WasmConfig)supporting both tagged sequence syntax (!Wasm) and the conciseudfs:\n wasm:\n my_function: udfs/wasm/my_functionmap syntax specified in WASM UDF support #1653 viadeserialize_udfs..wasmmodule paths with or without the.wasmfile extension.dozer-sql/expression/src/wasm_udf.rs,builder.rs,execution.rs,error.rs):Expression::WasmUdfandExpressionBuilder::parse_wasm_udfto validate argument counts and types against the exported WebAssembly function signature at query build time.i32,i64,f32, andf64signatures, locals, globals, linear memory, and structured control flow (block,loop,if/else,br,br_if,call,return,select) with SQLNULLpropagation.wasm_udf_tagged,wasm_udf_map_in_config) indozer-types/src/tests/udf_yaml_deserialize.rs.test_wasm_udf_sql_evaluation_and_extensionless_path,test_wasm_udf_float_and_int_coercion) indozer-sql/expression/src/wasm_udf.rs.Verification
Closes #1653
/claim #1653
Bounty Payout Details (if direct crypto transfer is preferred alongside Algora):
0x9d66D9cf93776B5244B3C1F39C77696B80199dE2bydelibozok@gmail.com