Skip to content

Conversation

@cloud-fan
Copy link
Contributor

@cloud-fan cloud-fan commented Dec 24, 2025

What changes were proposed in this pull request?

It's common that a procedure does not have any overload and the bind method always return the same BoundProcedure. This PR adds a new interface SimpleProcedure for this use case, which allows people to implement a BoundProcedure directly without thinking about how to bind. The same applies to v2 functions.

Why are the changes needed?

Simplify a common use case when people implement procedures and functions.

Does this PR introduce any user-facing change?

No, it's developer facing

How was this patch tested?

new tests

Was this patch authored or co-authored using generative AI tooling?

cursor 2.2.43

@github-actions github-actions bot added the SQL label Dec 24, 2025
@cloud-fan
Copy link
Contributor Author

cc @allisonwang-db @pan3793

@pan3793
Copy link
Member

pan3793 commented Dec 24, 2025

do you plan to add a similar interface for v2 function?

@cloud-fan
Copy link
Contributor Author

good point, I think we should

@cloud-fan cloud-fan changed the title [SPARK-54834][SQL] Add a new interface StaticProcedure [SPARK-54834][SQL] Add new interfaces SimpleProcedure and SimpleFunction Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants