apache / apache/sedona

[Databricks] Allow registering Sedona functions with a custom prefix

Open
#2,397 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.4k
Forks
784
Avg merge
1d 12h
Merged PRs (30d)
58

Description

Hi,

I’m trying to use **Apache Sedona** in Databricks, alongside the new built-in Databricks spatial SQL functions.

Right now, Sedona registers sql **ST** functions like st_distance, st_point ...
This causes name collisions with some Databricks’ native spatial functions.

It would be very useful if Sedona supported registering all SQL functions with a custom prefix, for example:

st_distance -> sedona_st_distance
st_point -> sedona_st_point

This way, Sedona functions can coexist with Databricks functions in the same notebook without conflicts.

Is this currently possible, or could it be added as a feature in a future release?

Thank you!

Contributor guide

Open the contributing guide

Research direction

Start by tracing Sedona’s SQL function registration path for Databricks, focusing on where ST names are assigned. Verify the design with a notebook containing Databricks spatial functions; done means all Sedona functions can be registered under a caller-chosen prefix without collisions.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.