-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-12580][SQL] Remove string concatenations from usage and extended in @ExpressionDescription #10524
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
Conversation
|
@yhuai, are these changes fine with the policy that you proposed? I would appreciate it if you would check them. |
|
Actually this line length makes it pretty annoying to view. Can't we wrap them, and just require two newlines for a real newline? |
|
Test build #48462 has finished for PR 10524 at commit
|
|
Test build #48466 has finished for PR 10524 at commit
|
|
On jenkins with scala-2.11, we can wrap once in a source file (i.e. only one string concatenation). To use more than one concatenation causes compilation error. |
|
Jenkins, retest this please. |
|
Test build #48490 has finished for PR 10524 at commit
|
|
@kiszk Can you try and see if it works? |
|
@yhuai, I think that I will work. Do you think how many characters are preferable to all at a line? |
|
How about 80 characters? Let's make sure it is easy to read by users (who use describe function command) and developers (who read code). |
|
I see. Sounds good. I will reformat them. |
|
Test build #48670 has finished for PR 10524 at commit
|
|
Test build #48671 has finished for PR 10524 at commit
|
|
Jenkins, retest this please |
|
Test build #48717 has finished for PR 10524 at commit
|
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.
Should we keep this unchanged? The indentation looks weird.
|
Test build #48941 has finished for PR 10524 at commit
|
|
thanks! Merging to master. |
Use multi-line string literals for @ExpressionDescription with
// scalastyle:off line.size.limitand// scalastyle:on line.size.limitThe policy is here, as describe at #10488
Let's use multi-line string literals. If we have to have a line with more than 100 characters, let's use
// scalastyle:off line.size.limitand// scalastyle:on line.size.limitto just bypass the line number requirement.