From 1d35cf2ced7e3392a96e90fa718c417bfe007522 Mon Sep 17 00:00:00 2001 From: Cheng Pan Date: Mon, 23 Sep 2024 17:46:15 +0800 Subject: [PATCH] [KYUUBI #6708] spark-sql-engine's classes should not be visible in server module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # :mag: Description ## Issue References ๐Ÿ”— The server module does not consume the `spark-sql-engine` classes, but it supposes that `spark-sql-engine`'s jar existed on the target folder, so here we declare it as a dependency to make sure that Maven always processes `spark-sql-engine` module before the server module. IntelliJ IDEA 2024.1 fixed the IDEA-93855, thus the relocated classes inside the `spark-sql-engine`'s shaded jar are visible in the server module in IDEA, for example, `org.apache.kyuubi.shaded.spark.connect.proto.ExecutePlanRequest`, which silently breaks the IDEA code analysis and jumping capabilities. ## Describe Your Solution ๐Ÿ”ง Changing the dependency type from `jar`(default value) to `pom` seems to be a workaround. ## Types of changes :bookmark: - [x] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan ๐Ÿงช image #### Behavior Without This Pull Request :coffin: image #### Behavior With This Pull Request :tada: image --- # Checklist ๐Ÿ“ - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes #6708 from pan3793/IDEA-93855. Closes #6708 a73fd4235 [Cheng Pan] fix e4a8d36e7 [Cheng Pan] nit 8c58d2ddc [Cheng Pan] IDEA-93855 Authored-by: Cheng Pan Signed-off-by: Cheng Pan --- kyuubi-server/pom.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/kyuubi-server/pom.xml b/kyuubi-server/pom.xml index 3143934355b..2b0d0d8863a 100644 --- a/kyuubi-server/pom.xml +++ b/kyuubi-server/pom.xml @@ -276,10 +276,21 @@ test + org.apache.kyuubi kyuubi-spark-sql-engine_${scala.binary.version} ${project.version} + pom test