Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-47266][CONNECT] Make ProtoUtils.abbreviate return the same type as the input #45369

Closed

Conversation

zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

Make ProtoUtils.abbreviate return the same type as the input

Why are the changes needed?

existing implementation always return the superclass Message (e.g. proto.Relation -> Message),
while this method actually can return the same type (e.g. proto.Relation -> proto.Relation).

Does this PR introduce any user-facing change?

no

How was this patch tested?

updated tests

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

no

@HyukjinKwon
Copy link
Member

Merged to master.

@zhengruifeng zhengruifeng deleted the connect_proto_return_type branch March 4, 2024 09:40
ericm-db pushed a commit to ericm-db/spark that referenced this pull request Mar 5, 2024
…ype as the input

### What changes were proposed in this pull request?
Make `ProtoUtils.abbreviate` return the same type as the input

### Why are the changes needed?
existing implementation always return the superclass `Message` (e.g. `proto.Relation` -> `Message`),
while this method actually can return the same type (e.g. `proto.Relation` -> `proto.Relation`).

### Does this PR introduce _any_ user-facing change?
no

### How was this patch tested?
updated tests

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

Closes apache#45369 from zhengruifeng/connect_proto_return_type.

Authored-by: Ruifeng Zheng <ruifengz@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
jpcorreia99 pushed a commit to jpcorreia99/spark that referenced this pull request Mar 12, 2024
…ype as the input

### What changes were proposed in this pull request?
Make `ProtoUtils.abbreviate` return the same type as the input

### Why are the changes needed?
existing implementation always return the superclass `Message` (e.g. `proto.Relation` -> `Message`),
while this method actually can return the same type (e.g. `proto.Relation` -> `proto.Relation`).

### Does this PR introduce _any_ user-facing change?
no

### How was this patch tested?
updated tests

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

Closes apache#45369 from zhengruifeng/connect_proto_return_type.

Authored-by: Ruifeng Zheng <ruifengz@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants