-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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-7727] Avoid inner classes in RuleExecutor #6319
Conversation
Any background why we should expose the |
In my opinion, it seems like a poor fix to the issue of composing Batches
|
Oh, sorry, I didn't see the description of the jira. I will jump there to give more comments. |
@chenghao-intel although Batch may not be supposed to be public, inner classes are still bad when it comes to sharing code (because they are not static inner). I'd advise to make them at least inner to a companion object; see PR #6349 |
@@ -61,7 +62,7 @@ class Analyzer( | |||
*/ | |||
val extendedResolutionRules: Seq[Rule[LogicalPlan]] = Nil | |||
|
|||
lazy val batches: Seq[Batch] = Seq( | |||
lazy val batches = Seq( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the explicit type back?
LGTM other than that explicit type. |
Jenkins, test this please. |
Test build #33816 has finished for PR 6319 at commit
|
ping, mind bringing this up to date? |
Jenkins, ok to test. |
ok to test |
Test build #1174 has finished for PR 6319 at commit
|
@His-name-is-Joof, thanks for working on this. I propose we close this issue until you have time to fix the build failures and bring the code up to date. |
Allow composibility of Batch in RuleExecutor be making classes outer.