Skip to content

[SPARK-54834][SQL] Add new interfaces SimpleProcedure and SimpleFunction - #53595

Closed
cloud-fan wants to merge 1 commit into
apache:masterfrom
cloud-fan:procedure
Closed

cloud-fan wants to merge 1 commit into
apache:masterfrom
cloud-fan:procedure

Conversation

@cloud-fan

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

cc @allisonwang-db @pan3793

@pan3793

pan3793 commented Dec 24, 2025

Copy link
Copy Markdown
Member

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

@cloud-fan

Copy link
Copy Markdown
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
@zhengruifeng

Copy link
Copy Markdown
Contributor

merged to master

@allisonwang-db allisonwang-db left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Thanks for adding this new interface.

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.

4 participants