Skip to content

[SPARK-51079] Added constructor for ArrowSerializer for backward compatibility. - #50513

Closed
haiyangsun-db wants to merge 1 commit into
apache:masterfrom
haiyangsun-db:SPARK-51079
Closed

haiyangsun-db wants to merge 1 commit into
apache:masterfrom
haiyangsun-db:SPARK-51079

Conversation

@haiyangsun-db

@haiyangsun-db haiyangsun-db commented Apr 4, 2025 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Previously, PR extends ArrowSerializer class to support large variable types in pandas UDF. This PR makes it more backward-compatible by adding a new constructor for cases where the flag for large variable is irrelevant (default to false).

Why are the changes needed?

To achieve versionless in spark connect, we need to be careful about changing a client API in Scala. For example, the change of an interface like this could affect Scala UDF referring to this class (as it is part of the spark connect client package) but running with an older spark connect client.

How was this patch tested?

N/A. It's a new constructor.

@haiyangsun-db haiyangsun-db changed the title Added constructor for backward compatibility. [SPARK-51079] Added constructor for ArrowSerializer for backward compatibility. Apr 4, 2025
@haiyangsun-db
haiyangsun-db marked this pull request as ready for review April 4, 2025 10:07
HyukjinKwon pushed a commit that referenced this pull request Apr 7, 2025
…atibility

### What changes were proposed in this pull request?

Previously, [PR](#49790) extends ArrowSerializer class to support large variable types in pandas UDF. This PR makes it more backward-compatible by adding a new constructor for cases where the flag for large variable is irrelevant (default to false).

### Why are the changes needed?
To achieve versionless in spark connect, we need to be careful about changing a client API in Scala. For example, the change of an interface like this could affect Scala UDF referring to this class (as it is part of the spark connect client package) but running with an older spark connect client.

### How was this patch tested?
N/A. It's a new constructor.

Closes #50513 from haiyangsun-db/SPARK-51079.

Authored-by: Haiyang Sun <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
(cherry picked from commit 75d80c7)
Signed-off-by: Hyukjin Kwon <[email protected]>
@HyukjinKwon

Copy link
Copy Markdown
Member

Merged to master and branch-4.0.

zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 14, 2025
…atibility

### What changes were proposed in this pull request?

Previously, [PR](apache#49790) extends ArrowSerializer class to support large variable types in pandas UDF. This PR makes it more backward-compatible by adding a new constructor for cases where the flag for large variable is irrelevant (default to false).

### Why are the changes needed?
To achieve versionless in spark connect, we need to be careful about changing a client API in Scala. For example, the change of an interface like this could affect Scala UDF referring to this class (as it is part of the spark connect client package) but running with an older spark connect client.

### How was this patch tested?
N/A. It's a new constructor.

Closes apache#50513 from haiyangsun-db/SPARK-51079.

Authored-by: Haiyang Sun <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
(cherry picked from commit 0c50c2c)
Signed-off-by: Hyukjin Kwon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants