Skip to content

Fengttt sl - #20

Closed
fengttt wants to merge 4 commits into
mainfrom
fengttt-sl
Closed

fengttt wants to merge 4 commits into
mainfrom
fengttt-sl

Conversation

@fengttt

@fengttt fengttt commented Jul 8, 2024

Copy link
Copy Markdown
Owner

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