Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/src/main/sphinx/udf/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,23 @@ not available within a Python UDF:
* `wsgiref`
* `xmlrpc`

The following libraries are explicitly added to the runtime and therefore
Comment thread
wendigo marked this conversation as resolved.
available within a Python UDF:

* `attrs`
* `bleach`
* `charset-normalizer`
* `defusedxml`
* `idna`
* `jmespath`
* `jsonschema`
* `pyasn1`
* `pyparsing`
* `python-dateutil`
* `rsa`
* `tomli`
* `ua-parser`

## Type mapping

The following table shows supported Trino types and their corresponding Python
Expand Down
4 changes: 2 additions & 2 deletions plugin/trino-functions-python/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<dependency>
<groupId>com.dylibso.chicory</groupId>
<artifactId>bom</artifactId>
<version>1.0.0-M2</version>
<version>1.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -74,7 +74,7 @@
<dependency>
<groupId>io.trino</groupId>
<artifactId>trino-wasm-python</artifactId>
<version>3.13-2</version>
<version>3.13-3</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ public PythonEngine(String guestCode)
.withDirectory(guestRoot.toString(), guestRoot)
.build();

WasiPreview1 wasi = closer.register(new WasiPreview1(logger, wasiOptions));
WasiPreview1 wasi = closer.register(WasiPreview1.builder()
.withLogger(logger)
.withOptions(wasiOptions)
.build());

ImportValues importValues = ImportValues.builder()
.addFunction(wasi.toHostFunctions())
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>bom</artifactId>
<version>2.30.21</version>
<version>2.30.22</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down