Commit 67fdc80
authored
Refactor UDF server and external function type system (#57)
* Refactoring function signatures
* Refactor return values
* Fix UDF return values
* Big refactoring of the way parameters / return values work
* Add default values from pydantic / namedtuple / etc
* Fix TypedDict defaults
* Disable lifespan in uvicorn
* Fix multiple vector output in TVFs; fix ucs4 to utf8 transcoding in numpy fixed strings
* Remove debugging code
* Fix masked types; add asgi endpoint for function info
* Fix get_annotations call
* Fix imports; change binary from hex to base64
* Fix show functions call
* Fix fixed length strings / binary; add tests for fixed strings / binary; test no args / no return value
* Add vector type
* Fix fixed length binary values1 parent 4bd8c89 commit 67fdc80
File tree
15 files changed
+2690
-1080
lines changed- singlestoredb
- functions
- ext
- tests
- ext_funcs
15 files changed
+2690
-1080
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
410 | 422 | | |
411 | 423 | | |
412 | 424 | | |
| |||
415 | 427 | | |
416 | 428 | | |
417 | 429 | | |
418 | | - | |
| 430 | + | |
419 | 431 | | |
420 | 432 | | |
421 | 433 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments