I want to use GEOLOCATION function in flink sql. I...
# troubleshooting
d
I want to use GEOLOCATION function in flink sql. I am having lat, long data in table and want to calculate distance. any help is appreciated.
g
UDFs is your friend and you should only need a scalar function. https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/functions/udfs/ also have a few examples with instruction on how to use them in the readme. https://github.com/polyzos/stream-processing-with-apache-flink/tree/main/src/main/java/io/streamingledger/udfs
d
Thanks man, looks helpful