You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "voon (Jira)" <ji...@apache.org> on 2024/12/14 11:32:00 UTC
[jira] [Commented] (HUDI-6537) Bump checkstyle version
[ https://issues.apache.org/jira/browse/HUDI-6537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17905690#comment-17905690 ]
voon commented on HUDI-6537:
----------------------------
Done in: 488f2a98894d13f55ff5f233fe47fa99e2bf420c
> Bump checkstyle version
> -----------------------
>
> Key: HUDI-6537
> URL: https://issues.apache.org/jira/browse/HUDI-6537
> Project: Apache Hudi
> Issue Type: Bug
> Reporter: voon
> Assignee: voon
> Priority: Major
> Labels: pull-request-available
>
> Encountered an ambiguous checkstyle error here:
> {code:java}
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> 1058 at java.lang.String.substring (String.java:1967)
> 1059 at org.apache.maven.plugins.checkstyle.RuleUtil.getCategory (RuleUtil.java:95)
> 1060 at org.apache.maven.plugins.checkstyle.CheckstyleViolationCheckMojo.countViolations (CheckstyleViolationCheckMojo.java:646)
> 1061 at org.apache.maven.plugins.checkstyle.CheckstyleViolationCheckMojo.execute (CheckstyleViolationCheckMojo.java:564)
> 1062 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
> 1063 at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
> 1064 at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
> 1065 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
> 1066 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
> 1067 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
> 1068 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
> 1069 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
> 1070 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
> 1071 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
> 1072 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:299)
> 1073 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:193)
> 1074 at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:106)
> 1075 at org.apache.maven.cli.MavenCli.execute (MavenCli.java:963)
> 1076 at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:296)
> 1077 at org.apache.maven.cli.MavenCli.main (MavenCli.java:199)
> 1078 at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
> 1079 at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
> 1080 at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
> 1081 at java.lang.reflect.Method.invoke (Method.java:498)
> 1082 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
> 1083 at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
> 1084 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
> 1085 at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
> 1086 {code}
> [https://github.com/apache/hudi/actions/runs/5556435429/jobs/10148956808?pr=9133]
>
> Running the code in the same state iwith checkstyle:3.1.0 will throw the error below (expected):
> {code:java}
> final CastMapConverter[] converters = IntStream.
> range(0, fromChildren.size())
> .mapToObj(i -> {
> LogicalType fromChild = fromChildren.get(i);
> LogicalType toChild = toChildren.get(i);
> if (isPrimitiveTypeRootEqual(fromChild.getTypeRoot(), toChild.getTypeRoot())) {
> return createNoOpConverter();
> ...
> [ERROR] src/main/java/org/apache/hudi/table/format/CastMapConverters.java:[315,52] (extension) SeparatorWrapDot: '.' should be on a new line.
> {code}
> Bug describing this issue:
> https://issues.apache.org/jira/browse/MCHECKSTYLE-347
--
This message was sent by Atlassian Jira
(v8.20.10#820010)