getdozer / getdozer/dozer

WASM UDF support

Open
#1,653 15 comments 1 reaction 0 assignees View on GitHub
💎 Bounty
Dominant language
Rust
Stars
1.6k
Forks
145
PR merge metrics
No merged PRs in 30d

Description

## 📝 Description:
This is a proposal for a new feature in Dozer Core, to enhance the functionality by allowing users to define a SQL User Defined Function (UDF) implemented in WASM (AssemblyScript)

## 🌟 Feature Details:
Users should be able to define a WASM UDF usable in Dozer SQL.

In order to implement an UDF a user should:

- Add a `.wasm` file to the project folder (for example in the directory `udfs/wasm/my_function.wasm`)
- Add the following configuration lines to `dozer-config.yaml`:
```
udfs:
wasm:
my_function: udfs/wasm/my_function
```

Upon startup Dozer should load the wasm function and make it available in Dozer SQL. `my_function()` should now be usable from SQL as:

```
SELECT my_function(filed1, field2) FROM ...
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.