Skip to content

[SPARK-59762] Release Python UDF init message before processing rows - #59013

Open
craiuconstantintiberiu wants to merge 1 commit into
apache:masterfrom
craiuconstantintiberiu:tibicrai-db/free-udf-init-message
Open

craiuconstantintiberiu wants to merge 1 commit into
apache:masterfrom
craiuconstantintiberiu:tibicrai-db/free-udf-init-message

Conversation

@craiuconstantintiberiu

Copy link
Copy Markdown

What changes were proposed in this pull request?

Removes storage of init_info and init_message to avoid double storage of closure and thus reduces memory usage.

Why are the changes needed?

Reduces memory usage in UDF.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manually.

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

Generated-by: Opus 5.5

@haiyangsun-db

Copy link
Copy Markdown
Contributor

@Yicong-Huang @gaogaotiantian could you please help review this?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants