Skip to content

Conversation

@c21
Copy link
Contributor

@c21 c21 commented Jul 29, 2021

What changes were proposed in this pull request?

This is followup of #33012, where we defined FileNameSpec in the file of FileCommitProtocol.scala. When making the change of #33432, I found the FileNameSpec is not accessible outside of its file, because the companion object FileCommitProtocol exists. So the fix is to move the FileNameSpec definition into companion object FileCommitProtocol, then it can be accessible outside.

Why are the changes needed?

Fix the code logic.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing unit test, and end-to-end test in #33432 as well.

@github-actions github-actions bot added the CORE label Jul 29, 2021
@c21
Copy link
Contributor Author

c21 commented Jul 29, 2021

cc @cloud-fan could you help take a look when you have time? Thanks.

@SparkQA
Copy link

SparkQA commented Jul 29, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/46309/

* @param prefix Prefix of file.
* @param suffix Suffix of file.
*/
final case class FileNameSpec(prefix: String, suffix: String)
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't this a public class?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think because the companion object is defined here, so it cannot be imported in other files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually wait a second, let me double check. Sorry for the rush.

@c21
Copy link
Contributor Author

c21 commented Jul 29, 2021

@cloud-fan, sorry for the red herring, it's actually not an issue as I made a mistake when doing import in #33432 . Thanks for taking a look, and closing this now.

@c21 c21 closed this Jul 29, 2021
@SparkQA
Copy link

SparkQA commented Jul 29, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/46309/

@SparkQA
Copy link

SparkQA commented Jul 29, 2021

Test build #141796 has finished for PR 33565 at commit 1bede64.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • final case class FileNameSpec(prefix: String, suffix: String)

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants