Trino HTTP Requester

A Simple trino plugin to expose http functions.

How to use

You may change the value of the trinoVersion variable in build.sbt file, it should match the trino version where the plugin will be deployed.

To build the jar package, just use the sbt assembly command:

$> sbt assembly

If succeeded, it will create the folder target/http-requester, copy it to your trino plugins directory:

$> cp -r target/http-requester /path/to/your/trino-folder/plugins

Then you may just start trino and the plugin will be available.

Exposed functions

Actually, the only exposed function is http_get.

http_get

The signature is:

http_get(httpAddress: VARCHAR, parameters: MAP(VARCHAR, VARCHAR), headers: MAP(VARCHAR, VARCHAR)) -> JSON

The parameters are:

The function returns a trino JSON object.