-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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-12692][BUILD][STREAMING] Scala style: Fix the style violation (Space before "," or ":") #10685
Conversation
@@ -26,20 +26,20 @@ import org.slf4j.{Logger, LoggerFactory} | |||
private[sink] trait Logging { | |||
// Make the log field transient so that objects with Logging can | |||
// be serialized and used on another machine | |||
@transient private var log_ : Logger = null |
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.
We can't write like log_: Logger
. So, can we rename those vars to which starts with _
?
Test build #49066 has finished for PR 10685 at commit
|
2a184e8
to
15e958d
Compare
5733a35
to
708f934
Compare
Test build #49067 has finished for PR 10685 at commit
|
LGTM - the mima check is related to the logging trait change. |
Test build #49069 has finished for PR 10685 at commit
|
Test build #49072 has finished for PR 10685 at commit
|
The reason of the MiMa failure is Maven Central doesn't provide
|
retest this please. |
Test build #49074 has finished for PR 10685 at commit
|
retest this please. |
Test build #49085 has finished for PR 10685 at commit
|
Jenkins, retest this please. |
Test build #49119 has finished for PR 10685 at commit
|
retest this please. |
Test build #49138 has finished for PR 10685 at commit
|
retest this please. |
Test build #49144 has finished for PR 10685 at commit
|
retest this please. |
Test build #49153 has finished for PR 10685 at commit
|
I think the PySpark unit test failures above are related to #10704 and already fixed. |
retest this please. |
Test build #49199 has finished for PR 10685 at commit
|
Thanks - I'm going to merge it. |
@sarutak I actually reverted this change after talking more with Michael and looking at the diffs. The problem is that for colon, in some cases it is really useful to have a space before colon. In particular:
I don't know whether it is feasible to actually implement the rules for the general colon, but exclude type description and type bounds. If yes, we should add this enforcement. Otherwise I'd prefer not to have it at all. For comma, we should always have it (at least I haven't seen a case in which we don't want it yet). |
It exactly make sense. O.K, let's check style violation only for comma. |
The rest are ok since they are small. I reverted the sql one because it was large. |
… before ",") Fix the style violation (space before , and :). This PR is a followup for #10643 and rework of #10685 . Author: Kousuke Saruta <[email protected]> Closes #10732 from sarutak/SPARK-12692-followup-sql.
Fix the style violation (space before , and :).
This PR is a followup for #10643.