https://github.com/yuokada/presto-sample-udf
Sample UDF Plugin for Presto
https://github.com/yuokada/presto-sample-udf
presto prestodb prestosql udf
Last synced: 21 days ago
JSON representation
Sample UDF Plugin for Presto
- Host: GitHub
- URL: https://github.com/yuokada/presto-sample-udf
- Owner: yuokada
- License: mit
- Archived: true
- Created: 2017-07-15T15:16:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-31T19:13:58.000Z (about 4 years ago)
- Last Synced: 2025-03-16T05:17:03.378Z (2 months ago)
- Topics: presto, prestodb, prestosql, udf
- Language: Java
- Homepage:
- Size: 164 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# presto-sample-udf
[](https://github.com/yuokada/presto-sample-udf/actions)
Sample UDF Plugin for Presto## How to start Presto UDF
Read the [SPI Overview](https://prestosql.io/docs/current/develop/spi-overview.html)
and [Functions](https://prestosql.io/docs/current/develop/functions.html) documentation.
## Build```bash
# if mac os
% export JAVA_HOME=`/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java_home -v "1.8"`% ./mvnw clean compile package
```
## deployCopy jar file to plugin dir. And, you restart presto server.
```bash
% mkdir /usr/lib/presto/lib/plugin/hello/
% cp target/presto-sample-udf-1.0-SNAPSHOT.jar /usr/lib/presto/lib/plugin/hello/
% /usr/lib/presto/bin/launcher restart
```
## Examples- [prestodb\-rocks/presto\-example\-udf: An example implentantion of Presto UDF functions](https://github.com/prestodb-rocks/presto-example-udf)
Basic UDF sample code and unittest.
- [aaronshan/presto\-third\-functions: Some useful presto custom udf functions](https://github.com/aaronshan/presto-third-functions)
- [qubole/presto\-udfs: Plugin for Presto to allow addition of user functions easily](https://github.com/qubole/presto-udfs)
Various UDF Sample Repository.