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-42930][CORE][SQL] Change the access scope of ProtobufSerDe related implementations to private[protobuf] #40560

Closed
wants to merge 2 commits into from

Conversation

LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Mar 27, 2023

What changes were proposed in this pull request?

After SPARK-41053, Spark supports serializing/ Live UI data to RocksDB using protobuf, but these are internal implementation details, so this pr change the access scope of ProtobufSerDe related implementations to private[protobuf].

Why are the changes needed?

Weaker the access scope of Spark internal implementation details.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Pass GitHub Actions

@LuciferYang LuciferYang changed the title [SPARK-42930][CORE] Change the access scope of ProtobufSerDe related implementations to private[spark] [SPARK-42930][CORE][SQL] Change the access scope of ProtobufSerDe related implementations to private[spark] Mar 27, 2023
@@ -25,7 +25,7 @@ import org.apache.spark.status.api.v1.AccumulableInfo
import org.apache.spark.status.protobuf.Utils.{getOptional, getStringField, setStringField}
import org.apache.spark.util.Utils.weakIntern

private[protobuf] object AccumulableInfoSerializer {
private[spark] object AccumulableInfoSerializer {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

cc @gengliangwang @dongjoon-hyun FYI

Do you prefer private[spark] or private[protobuf]?

https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/status/protobuf/ProtobufSerDe.scala

image

Should ProtobufSerDe also be changed to private[spark]? Although it has been identified as @DeveloperApi

Copy link
Member

Choose a reason for hiding this comment

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

Developer APIs are fine.

Do you prefer private[spark] or private[protobuf]?

Whichever narrower should be preferred.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, Let me change to private[protobuf]

@LuciferYang LuciferYang changed the title [SPARK-42930][CORE][SQL] Change the access scope of ProtobufSerDe related implementations to private[spark] [SPARK-42930][CORE][SQL] Change the access scope of ProtobufSerDe related implementations to private[protobuf] Mar 27, 2023
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thank you, @LuciferYang and @HyukjinKwon .
Merged to master/3.4.

dongjoon-hyun pushed a commit that referenced this pull request Mar 27, 2023
…elated implementations to `private[protobuf]`

### What changes were proposed in this pull request?
After [SPARK-41053](https://issues.apache.org/jira/browse/SPARK-41053), Spark supports serializing/ Live UI data to RocksDB using protobuf, but these are internal implementation details, so this pr change the access scope of `ProtobufSerDe` related implementations to `private[protobuf]`.

### Why are the changes needed?
Weaker the access scope of Spark internal implementation details.

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

### How was this patch tested?
Pass GitHub Actions

Closes #40560 from LuciferYang/SPARK-42930.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit b8f16bc)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@LuciferYang
Copy link
Contributor Author

Thanks @dongjoon-hyun @HyukjinKwon

@gengliangwang
Copy link
Member

+1, @LuciferYang Thanks for the work!

@LuciferYang
Copy link
Contributor Author

Thanks @gengliangwang ~

snmvaughan pushed a commit to snmvaughan/spark that referenced this pull request Jun 20, 2023
…elated implementations to `private[protobuf]`

### What changes were proposed in this pull request?
After [SPARK-41053](https://issues.apache.org/jira/browse/SPARK-41053), Spark supports serializing/ Live UI data to RocksDB using protobuf, but these are internal implementation details, so this pr change the access scope of `ProtobufSerDe` related implementations to `private[protobuf]`.

### Why are the changes needed?
Weaker the access scope of Spark internal implementation details.

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

### How was this patch tested?
Pass GitHub Actions

Closes apache#40560 from LuciferYang/SPARK-42930.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit b8f16bc)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants