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

Fengttt sl #20

Closed
wants to merge 4 commits into from
Closed

Fengttt sl #20

wants to merge 4 commits into from

Conversation

fengttt
Copy link
Owner

@fengttt fengttt commented Jul 8, 2024

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #

What this PR does / why we need it:

Note: cannot name a file XXX_wasm.go.  Go build will treat this file as
a wasm target.  Lots of mystic failures ...

With this, we allow user to run WebAssembly, which essentially allow
user to run a UDF written in any language.   This indeed make the
dev flow a little bit longer/harder, but it is significantly easier
than write plsql and debug plsql.

Wasm function only takes string args.  One common way is to encode
the args into a json string.  json_encode, concat_ws, group_concat
is your friend.

Return is a string as well.  jq and unnest can be used to decode
json.
@fengttt fengttt closed this Jul 12, 2024
@fengttt fengttt deleted the fengttt-sl branch July 12, 2024 16:00
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