Skip to content
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

[GLUTEN-3361]Fix the compile issue caused by wrong Empty2Null package in spark 3.4 #3492

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

JkSelf
Copy link
Contributor

@JkSelf JkSelf commented Oct 23, 2023

What changes were proposed in this pull request?

Fix the following compile issue when using mvn clean install -Pbackends-velox -Prss -Pspark-3.4 -DskipTests command.

[ERROR] /home/sparkuser/workspace/workspace/Gluten_Perf_ICX/gluten-core/src/main/scala/io/glutenproject/expression/ExpressionMappings.scala:28: error: value Empty2Null is not a member of object org.apache.spark.sql.execution.datasources.FileFormatWriter [ERROR] import org.apache.spark.sql.execution.datasources.FileFormatWriter.Empty2Null [ERROR] ^ [WARNING] /home/sparkuser/workspace/workspace/Gluten_Perf_ICX/gluten-core/src/main/scala/io/glutenproject/expression/ExpressionMappings.scala:28: warning: Unused import [WARNING] import org.apache.spark.sql.execution.datasources.FileFormatWriter.Empty2Null [WARNING] ^ [WARNING] one warning found [ERROR] one error found [ERROR] exception compilation error occurred!!! org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404) at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166) at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:153) at scala_maven_executions.JavaMainCallerByFork.run (JavaMainCallerByFork.java:95) at scala_maven.ScalaCompilerSupport.compile (ScalaCompilerSupport.java:173) at scala_maven.ScalaCompilerSupport.doExecute (ScalaCompilerSupport.java:86) at scala_maven.ScalaMojoSupport.execute (ScalaMojoSupport.java:310) at scala_maven.ScalaCompileMojo.execute (ScalaCompileMojo.java:108) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

How was this patch tested?

Existing unit test.

@github-actions
Copy link

#3361

@github-actions
Copy link

Run Gluten Clickhouse CI

@JkSelf JkSelf changed the title [GLUTEN-3361]Fix the compile issue caused by Empty2Null [GLUTEN-3361]Fix the compile issue caused by wrong Empty2Null package in spark 3.4 Oct 23, 2023
Copy link
Contributor

@PHILO-HE PHILO-HE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@marin-ma
Copy link
Contributor

Verified. Thanks!

@JkSelf JkSelf merged commit c9014ae into apache:main Oct 23, 2023
17 checks passed
@GlutenPerfBot
Copy link
Contributor

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query log/native_3492_time.csv log/native_master_10_19_2023_a9324e620_time.csv difference percentage
q1 40.53 40.32 -0.207 99.49%
q2 24.78 24.36 -0.424 98.29%
q3 41.33 40.92 -0.412 99.00%
q4 37.29 33.60 -3.692 90.10%
q5 70.68 70.38 -0.303 99.57%
q6 7.25 8.94 1.691 123.32%
q7 87.74 102.14 14.402 116.41%
q8 87.31 104.41 17.101 119.59%
q9 120.37 156.04 35.669 129.63%
q10 54.52 72.84 18.320 133.60%
q11 20.32 22.07 1.753 108.63%
q12 26.44 34.28 7.837 129.64%
q13 48.12 72.13 24.012 149.90%
q14 19.02 25.22 6.201 132.60%
q15 33.86 40.39 6.524 119.27%
q16 16.20 18.59 2.390 114.75%
q17 100.68 105.84 5.169 105.13%
q18 145.21 217.17 71.968 149.56%
q19 17.26 27.16 9.897 157.33%
q20 31.10 40.56 9.467 130.44%
q21 225.65 335.44 109.784 148.65%
q22 13.39 17.06 3.674 127.44%
total 1269.05 1609.87 340.821 126.86%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants