Skip to content

Conversation

@LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Jul 23, 2024

What changes were proposed in this pull request?

This PR removes the unused object definition ScalaReflectionLock from the protobuf module. ScalaReflectionLock is a definition at the access scope of protobuf package, which was defined in SPARK-40654 | #37972 and become unused in SPARK-41639 | #39147.

Why are the changes needed?

Clean up unused definitions.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Pass GitHub Actions

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

No

*/
package org.apache.spark.sql

package object protobuf {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are other empty package object definitions within the Spark internal code, such as

package org.apache.spark.streaming
/**
* Various implementations of DStream's.
* @see [[org.apache.spark.streaming.dstream.DStream]]
*/
package object dstream

and

package org.apache.spark.util
/**
* Utilities for random number generation.
*/
package object random

Therefore, in this PR, only the definition of ·ScalaReflectionLock· was removed while the package object protobuf was retained.

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.

@dongjoon-hyun
Copy link
Member

Merged to master for Apache Spark 4.0.0-preview2.

@LuciferYang
Copy link
Contributor Author

Thanks @dongjoon-hyun ~

ilicmarkodb pushed a commit to ilicmarkodb/spark that referenced this pull request Jul 29, 2024
…nition from `protobuf`

### What changes were proposed in this pull request?
This PR removes the unused object definition `ScalaReflectionLock` from the `protobuf` module. `ScalaReflectionLock` is a definition at the access scope of `protobuf` package, which was defined in SPARK-40654 | apache#37972 and become unused in SPARK-41639 | apache#39147.

### Why are the changes needed?
Clean up unused definitions.

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

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

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

Closes apache#47459 from LuciferYang/remove-ScalaReflectionLock.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
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