You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sedona.apache.org by "radekaadek (via GitHub)" <gi...@apache.org> on 2025/10/16 07:57:28 UTC
[I] Registering Sedona types and SQL functions on a standalone Flink instance [sedona]
radekaadek opened a new issue, #2402:
URL: https://github.com/apache/sedona/issues/2402
Hello,
I would like to ask if there is a way to register Sedona types and SQL functions in Flink without having to run `SedonaContext.create()`
For context, I'm using Flink through the SQL Gateway with a JDBC connection and I need a way to register Sedona without any Java or Python code.
I'm also open to make a contribution in this area if it's not a lot of work.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Registering Sedona types and SQL functions on a standalone Flink instance [sedona]
Posted by "jiayuasu (via GitHub)" <gi...@apache.org>.
jiayuasu closed issue #2402: Registering Sedona types and SQL functions on a standalone Flink instance
URL: https://github.com/apache/sedona/issues/2402
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Registering Sedona types and SQL functions on a standalone Flink instance [sedona]
Posted by "Imbruced (via GitHub)" <gi...@apache.org>.
Imbruced commented on issue #2402:
URL: https://github.com/apache/sedona/issues/2402#issuecomment-3429554838
@radekaadek, sorry, I've been busy with the Apache Sedona book. I've tried to find an obvious solution, but I haven't found one. Can you explain precisely how you are running Apache Flink? It could help me find anything. Ofc, you are welcome to craft the solution yourself; I am happy to review it later.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Registering Sedona types and SQL functions on a standalone Flink instance [sedona]
Posted by "jiayuasu (via GitHub)" <gi...@apache.org>.
jiayuasu commented on issue #2402:
URL: https://github.com/apache/sedona/issues/2402#issuecomment-3409687667
@Imbruced Pawel, did you try SedonaFlink in this situation before?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Registering Sedona types and SQL functions on a standalone Flink instance [sedona]
Posted by "radekaadek (via GitHub)" <gi...@apache.org>.
radekaadek commented on issue #2402:
URL: https://github.com/apache/sedona/issues/2402#issuecomment-3435484159
Ok, thanks, I'll try to come up with a solution on the weekend.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Registering Sedona types and SQL functions on a standalone Flink instance [sedona]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #2402:
URL: https://github.com/apache/sedona/issues/2402#issuecomment-3409661796
Thank you for your interest in Apache Sedona! We appreciate you opening your first issue. Contributions like yours help make Apache Sedona better.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Registering Sedona types and SQL functions on a standalone Flink instance [sedona]
Posted by "radekaadek (via GitHub)" <gi...@apache.org>.
radekaadek commented on issue #2402:
URL: https://github.com/apache/sedona/issues/2402#issuecomment-3430781460
I use the Apache Flink through a custom Docker image that I base on of the [official image](https://hub.docker.com/_/flink) to which I add jar dependencies for the connectors and plugins I need to use. I then spin up this custom image and I interface with it through the [SQL Gateway](https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/sql-gateway/overview/#starting-the-sql-gateway)'s REST API.
I had been looking for a solution to the problem and stumbled upon [modules](https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/modules/) in Flink and the documentation for them explicitly states:
> For example, users can define their own geo functions and plug them into Flink as built-in functions to be used in Flink SQL and Table APIs.
As the documentation [later states](https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/modules/#how-to-load-unload-use-and-list-modules), these modules can then loaded by calling `LOAD MODULE` in the SQL Client.
This seems very promising for me but the documentation doesn't state whether custom types/serializers can be loaded. However I found some documentation for third-party serializers [here](https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/fault-tolerance/serialization/third_party_serializers/).
I'm not very familiar with what Sedona needs in order to work correctly and to register its types but I suspect that the documentation on third-party serializers can help us.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Registering Sedona types and SQL functions on a standalone Flink instance [sedona]
Posted by "Imbruced (via GitHub)" <gi...@apache.org>.
Imbruced commented on issue #2402:
URL: https://github.com/apache/sedona/issues/2402#issuecomment-3432196419
Sedona needs to register the
- custom geometry types like Point (org.locationtech.jts.geom.Point), Polygon (org.locationtech.jts.geom.Polygon)
- custom index types like Quadtree (org.locationtech.jts.index.quadtree.Quadtree), STRtree (org.locationtech.jts.index.strtree.STRtree)
- custom functions
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Registering Sedona types and SQL functions on a standalone Flink instance [sedona]
Posted by "radekaadek (via GitHub)" <gi...@apache.org>.
radekaadek commented on issue #2402:
URL: https://github.com/apache/sedona/issues/2402#issuecomment-3428214127
Hi @Imbruced, any updates?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Registering Sedona types and SQL functions on a standalone Flink instance [sedona]
Posted by "radekaadek (via GitHub)" <gi...@apache.org>.
radekaadek commented on issue #2402:
URL: https://github.com/apache/sedona/issues/2402#issuecomment-3446765638
I have run into some issues and made a PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Registering Sedona types and SQL functions on a standalone Flink instance [sedona]
Posted by "Imbruced (via GitHub)" <gi...@apache.org>.
Imbruced commented on issue #2402:
URL: https://github.com/apache/sedona/issues/2402#issuecomment-3411101037
@jiayuasu I haven't but I can take a look Sat/Sun on this one
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org