Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 902 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 902 Bytes

Experimental Trino Plugin

Install the asdf version manager and the plugins needed for Java:

asdf plugin-add java https://github.com/halcyon/asdf-java.git
asdf plugin-add maven https://github.com/halcyon/asdf-maven.git

Then install a Java environment using versions specified in .tool-versions:

asdf install

You should be able to "package" the plugin into ./target/ using:

mvn package

Then you can run Trino with the plugin using:

docker run --name trino -d --mount type=bind,source="$(pwd)"/target,target=/usr/lib/trino/plugin/joinery -p 8080:8080 trinodb/trino

This should give you a working FARM_FINGERPRINT function, which you can test as follows:

❯ docker exec -it trino trino
trino> select farm_fingerprint('Hello');
        _col0         
----------------------
 -3042045079152025465