You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/12/25 06:33:06 UTC
[GitHub] [spark] Shockang opened a new pull request #35017: [SPARK-36853][BUILD] Code failing on checkstyle
Shockang opened a new pull request #35017:
URL: https://github.com/apache/spark/pull/35017
What changes were proposed in this pull request?
Fixed the checkstyle error thrown in windows in maven installing phase.
Why are the changes needed?
Due to some problems in CI system, these obvious errors have not been detected. I think these checkstyle errors should be solved.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
I have verified by executing following commands in the win10 system, except for (modifier) RedundantModifier in TimSort.java and (naming) MethodName in GroupStateTimeout.java and OutputMode.java and Trigger.java, the rest of the errors have been fixed.
`mvn -DskipTest clean install`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #35017: [SPARK-36853][BUILD] Code failing on checkstyle
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #35017:
URL: https://github.com/apache/spark/pull/35017#issuecomment-1001236249
Can one of the admins verify this patch?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] Shockang commented on pull request #35017: [SPARK-36853][BUILD] Code failing on checkstyle
Posted by GitBox <gi...@apache.org>.
Shockang commented on pull request #35017:
URL: https://github.com/apache/spark/pull/35017#issuecomment-1000981650
@srowen Sorry, the previous PR has been inconvenient to modify because it took too long, so the code has been migrated to this PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] Shockang commented on pull request #35017: [SPARK-36853][BUILD] Code failing on checkstyle
Posted by GitBox <gi...@apache.org>.
Shockang commented on pull request #35017:
URL: https://github.com/apache/spark/pull/35017#issuecomment-1001138950
> @Shockang the test in the GitHub Actions fails because your fork is based on the old master branch. do you mind rebasing it to sync to the latest `master` branch?
Of course not. I will merge the latest master code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] HyukjinKwon commented on pull request #35017: [SPARK-36853][BUILD] Code failing on checkstyle
Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #35017:
URL: https://github.com/apache/spark/pull/35017#issuecomment-1001102472
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #35017: [SPARK-36853][BUILD] Code failing on checkstyle
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #35017:
URL: https://github.com/apache/spark/pull/35017#issuecomment-1000983026
Can one of the admins verify this patch?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] srowen commented on a change in pull request #35017: [SPARK-36853][BUILD] Code failing on checkstyle
Posted by GitBox <gi...@apache.org>.
srowen commented on a change in pull request #35017:
URL: https://github.com/apache/spark/pull/35017#discussion_r776405653
##########
File path: core/src/main/java/org/apache/spark/util/collection/TimSort.java
##########
@@ -120,8 +120,9 @@ public void sort(Buffer a, int lo, int hi, Comparator<? super K> c) {
assert c != null;
int nRemaining = hi - lo;
- if (nRemaining < 2)
+ if (nRemaining < 2) {
Review comment:
Look at dev/checkstyle.xml , but you probably just want to suppress them in dev/checkstyle-suppressions.xml
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] Shockang commented on a change in pull request #35017: [SPARK-36853][BUILD] Code failing on checkstyle
Posted by GitBox <gi...@apache.org>.
Shockang commented on a change in pull request #35017:
URL: https://github.com/apache/spark/pull/35017#discussion_r776339299
##########
File path: core/src/main/java/org/apache/spark/util/collection/TimSort.java
##########
@@ -120,8 +120,9 @@ public void sort(Buffer a, int lo, int hi, Comparator<? super K> c) {
assert c != null;
int nRemaining = hi - lo;
- if (nRemaining < 2)
+ if (nRemaining < 2) {
Review comment:
> I think we didn't change this file as it's copied as-is from another source. Is there a way to just disable style checks? we could change the file as I doubt we'll ever need to port updates, but who knows
The build errors are all from the java file, the file: scalastyle-config.xml should not work. Do you know which file about java checkstyle works?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #35017: [SPARK-36853][BUILD] Code failing on checkstyle
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #35017:
URL: https://github.com/apache/spark/pull/35017#issuecomment-1000983026
Can one of the admins verify this patch?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] srowen commented on a change in pull request #35017: [SPARK-36853][BUILD] Code failing on checkstyle
Posted by GitBox <gi...@apache.org>.
srowen commented on a change in pull request #35017:
URL: https://github.com/apache/spark/pull/35017#discussion_r775957079
##########
File path: core/src/main/java/org/apache/spark/util/collection/TimSort.java
##########
@@ -120,8 +120,9 @@ public void sort(Buffer a, int lo, int hi, Comparator<? super K> c) {
assert c != null;
int nRemaining = hi - lo;
- if (nRemaining < 2)
+ if (nRemaining < 2) {
Review comment:
I think we didn't change this file as it's copied as-is from another source. Is there a way to just disable style checks? we could change the file as I doubt we'll ever need to port updates, but who knows
##########
File path: sql/hive/src/test/java/org/apache/spark/sql/hive/test/Complex.java
##########
@@ -40,15 +40,29 @@
*/
@SuppressWarnings("all")
-public class Complex implements org.apache.thrift.TBase<Complex, Complex._Fields>, java.io.Serializable, Cloneable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Complex");
-
- private static final org.apache.thrift.protocol.TField AINT_FIELD_DESC = new org.apache.thrift.protocol.TField("aint", org.apache.thrift.protocol.TType.I32, (short)1);
- private static final org.apache.thrift.protocol.TField A_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("aString", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final org.apache.thrift.protocol.TField LINT_FIELD_DESC = new org.apache.thrift.protocol.TField("lint", org.apache.thrift.protocol.TType.LIST, (short)3);
- private static final org.apache.thrift.protocol.TField L_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("lString", org.apache.thrift.protocol.TType.LIST, (short)4);
- private static final org.apache.thrift.protocol.TField LINT_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("lintString", org.apache.thrift.protocol.TType.LIST, (short)5);
- private static final org.apache.thrift.protocol.TField M_STRING_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("mStringString", org.apache.thrift.protocol.TType.MAP, (short)6);
+public class Complex implements org.apache.thrift.TBase<Complex, Complex._Fields>,
Review comment:
Same deal, this is copied from Hive, so maybe easier to leave it and disable checkstyle
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] srowen commented on pull request #35017: [SPARK-36853][BUILD] Code failing on checkstyle
Posted by GitBox <gi...@apache.org>.
srowen commented on pull request #35017:
URL: https://github.com/apache/spark/pull/35017#issuecomment-1077792732
Ping @Shockang - see comments
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org