You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "LuciferYang (via GitHub)" <gi...@apache.org> on 2026/07/15 13:15:43 UTC

[PR] [MINOR] Align supported Spark version references [gluten]

LuciferYang opened a new pull request, #12525:
URL: https://github.com/apache/gluten/pull/12525

   ### What changes were proposed in this pull request?
   
   Spark 3.2 was dropped by #11351 / #11687 / #11731 / #11887; currently supported versions per README.md / docs/index.md / pom.xml profiles are Spark 3.3, 3.4, 3.5, 4.0, and 4.1. Various docs, comments, and small code paths still carry Spark 3.2 leftovers or predate the 4.0 / 4.1 additions. This PR aligns them.
   
   **Docs**
   
   - \`docs/get-started/Velox.md\`: version table + prose updated to 3.3.1, 3.4.4, 3.5.5, 4.0.2, 4.1.1 (matching \`<spark.version>\` in each profile).
   - \`docs/velox-backend-limitations.md\`: three section headers "For Spark3.2 and Spark3.3" reduced to "For Spark3.3"; the "spark3.2/3.3" runtime warning reduced to "spark3.3".
   - \`docs/get-started/VeloxQAT.md\`: replaced the hardcoded old version list with "all supported Spark versions" since the script iterates \`SUPPORTED_SPARK_VERSIONS\`.
   - \`docs/developers/HowToRelease.md\`: removed the stale \`spark-3.2.tar.gz\` example line.
   - \`tools/gluten-it/README.md\`: profile list updated to \`spark-3.3\`, \`spark-3.4\`, \`spark-3.5\`, \`spark-4.0\`, \`spark-4.1\`.
   - \`.github/ISSUE_TEMPLATE/bug.yml\`: dropdown updated to \`Spark-3.3.x\` through \`Spark-4.1.x\` (removed \`Spark-3.2.x\`, added \`Spark-4.1.x\`, normalized case).
   
   **Comments / small code**
   
   - \`shims/spark33/.../OrcFileFormat.scala\`: comment no longer references Spark 3.2 or a hypothetical \`shims-spark32\`.
   - \`backends-velox/.../RowToVeloxColumnarExec.scala\`: removed \`// For spark 3.2.\` above \`withNewChildInternal\`; the override is the standard Spark 3.3+ API.
   - \`backends-velox/.../CudfNodeValidationRule.scala\`: replaced \`.find(_).isDefined\` (used because Spark 3.2 lacked \`TreeNode.exists\`) with \`.exists(_)\`; dropped the stale comment.
   - \`backends-velox/.../VeloxAggregateFunctionsSuite.scala\`: dropped the stale "Spark 3.2 does not have this configuration" comment.
   - \`backends-velox/.../ArithmeticAnsiValidateSuite.scala\`: comment narrowed from "Spark 3.2 and 3.3" to "Spark 3.3".
   - \`tools/gluten-it/common/.../SparkJvmOptions.java\`: dropped the Spark-3.2 \`ClassNotFoundException\` fallback that returned \`""\`; consolidated all reflection exceptions into a single multi-catch.
   
   ### How was this patch tested?
   
   - \`mvn -pl backends-velox -am install -Pspark-3.5,backends-velox\`: SUCCESS
   - \`mvn -pl backends-velox scalastyle:check spotless:check -Pspark-3.5,backends-velox\`: SUCCESS
   - \`mvn -pl :spark-sql-columnar-shims-spark33 -am compile -Pspark-3.3\`: SUCCESS
   - \`javac SparkJvmOptions.java\`: SUCCESS
   - Docs render locally.


-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [MINOR] Align supported Spark version references [gluten]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12525:
URL: https://github.com/apache/gluten/pull/12525#issuecomment-4981432560

   Run Gluten Clickhouse CI on x86


-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [MINOR] Align supported Spark version references [gluten]

Posted by "LuciferYang (via GitHub)" <gi...@apache.org>.
LuciferYang commented on PR #12525:
URL: https://github.com/apache/gluten/pull/12525#issuecomment-4988546495

   cc @jackylee-ch 


-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [MINOR] Align supported Spark version references [gluten]

Posted by "LuciferYang (via GitHub)" <gi...@apache.org>.
LuciferYang commented on code in PR #12525:
URL: https://github.com/apache/gluten/pull/12525#discussion_r3587883549


##########
docs/velox-backend-limitations.md:
##########
@@ -6,12 +6,12 @@ nav_order: 5
 This document describes the limitations of velox backend by listing some known cases where exception will be thrown, gluten behaves incompatibly with spark, or certain plan's execution
 must fall back to vanilla spark, etc.
 
-### Override of Spark classes (For Spark3.2 and Spark3.3)
+### Override of Spark classes (For Spark3.3)

Review Comment:
   Reworded the header to be generic ('Override of Spark classes') since the mechanism applies across all supported Spark versions. Applied in the latest force-push.



##########
docs/velox-backend-limitations.md:
##########
@@ -6,12 +6,12 @@ nav_order: 5
 This document describes the limitations of velox backend by listing some known cases where exception will be thrown, gluten behaves incompatibly with spark, or certain plan's execution
 must fall back to vanilla spark, etc.
 
-### Override of Spark classes (For Spark3.2 and Spark3.3)
+### Override of Spark classes (For Spark3.3)
 Gluten avoids to modify Spark's existing code and use Spark APIs if possible. However, some APIs aren't exposed in Vanilla spark and we have to copy the Spark file and do the hardcode changes. The list of override classes can be found as ignoreClasses in package/pom.xml . If you use customized Spark, you may check if the files are modified in your spark, otherwise your changes will be overrided.
 
 So you need to ensure preferentially load the Gluten jar to overwrite the jar of vanilla spark. Refer to [How to prioritize loading Gluten jars in Spark](https://github.com/apache/gluten/blob/main/docs/velox-backend-troubleshooting.md#incompatible-class-error-when-using-native-writer).
 
-If not officially supported spark3.2/3.3 version is used, NoSuchMethodError can be thrown at runtime. More details see [issue-4514](https://github.com/apache/gluten/issues/4514).
+If not officially supported spark3.3 version is used, NoSuchMethodError can be thrown at runtime. More details see [issue-4514](https://github.com/apache/gluten/issues/4514).

Review Comment:
   Reworded to 'If an unofficially supported Spark version is used' to avoid tying the warning to a specific Spark minor. Applied in the latest force-push.



##########
docs/velox-backend-limitations.md:
##########
@@ -6,12 +6,12 @@ nav_order: 5
 This document describes the limitations of velox backend by listing some known cases where exception will be thrown, gluten behaves incompatibly with spark, or certain plan's execution
 must fall back to vanilla spark, etc.
 
-### Override of Spark classes (For Spark3.2 and Spark3.3)
+### Override of Spark classes (For Spark3.3)
 Gluten avoids to modify Spark's existing code and use Spark APIs if possible. However, some APIs aren't exposed in Vanilla spark and we have to copy the Spark file and do the hardcode changes. The list of override classes can be found as ignoreClasses in package/pom.xml . If you use customized Spark, you may check if the files are modified in your spark, otherwise your changes will be overrided.

Review Comment:
   Fixed the typo 'overrided' -> 'overridden' since the line was already touched by this cleanup. Applied in the latest force-push.



##########
shims/spark33/src/main/scala/org/apache/spark/sql/execution/datasources/orc/OrcFileFormat.scala:
##########
@@ -44,11 +44,10 @@ import java.io._
 import java.net.URI
 
 /* -
- * This class is copied from Spark 3.2 and modified for Gluten. \n
+ * This class is copied from Spark and modified for Gluten. \n
  * Gluten should make sure this class is loaded before the original class.
  * If new Spark releases accepts changes and make this class incompatible,
- * we can move this class to shims-spark32,
- * shims-spark33, etc.
+ * we can move this class to a specific shim (shims-spark33, etc.).

Review Comment:
   Rewrote the ScalaDoc to remove the literal '\\n' and clean up the grammar ('If a new Spark release accepts changes that make this class incompatible ...'). Applied in the latest force-push.



##########
tools/gluten-it/common/src/main/java/org/apache/gluten/integration/SparkJvmOptions.java:
##########
@@ -28,10 +28,10 @@ public static String read() {
       final Class<?> clazz = Class.forName("org.apache.spark.launcher.JavaModuleOptions");
       final Method method = clazz.getMethod("defaultModuleOptions");
       return (String) method.invoke(null);
-    } catch (ClassNotFoundException e) {
-      // Could happen in Spark 3.2 which doesn't have this class yet.
-      return "";
-    } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
+    } catch (ClassNotFoundException

Review Comment:
   Now Class.forName uses the MODULE_OPTIONS_CLASS_NAME constant instead of duplicating the string literal. Applied in the latest force-push.



-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [MINOR] Align supported Spark version references [gluten]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12525:
URL: https://github.com/apache/gluten/pull/12525#issuecomment-4982197323

   Run Gluten Clickhouse CI on x86


-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [MINOR] Align supported Spark version references [gluten]

Posted by "LuciferYang (via GitHub)" <gi...@apache.org>.
LuciferYang commented on PR #12525:
URL: https://github.com/apache/gluten/pull/12525#issuecomment-4998537833

   Thank you @jackylee-ch 


-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [MINOR] Align supported Spark version references [gluten]

Posted by "LuciferYang (via GitHub)" <gi...@apache.org>.
LuciferYang commented on code in PR #12525:
URL: https://github.com/apache/gluten/pull/12525#discussion_r3588562729


##########
tools/gluten-it/README.md:
##########
@@ -22,7 +22,7 @@ mvn clean package -P{Spark-Version}
 sbin/gluten-it.sh
 ```
 
-Note: **Spark-Version** can only be **spark-3.2**, **spark-3.3**, **spark-3.4** or **spark-3.5**.
+Note: **Spark-Version** can only be **spark-3.3**, **spark-3.4** or **spark-3.5**.

Review Comment:
   Updated the PR description to match the final scope: gluten-it/README.md keeps spark-3.3 / spark-3.4 / spark-3.5 and explicitly does NOT advertise spark-4.0 / spark-4.1 because sbin/gluten-it.sh currently hardcodes SPARK_SCALA_VERSION=2.12 which conflicts with the Scala 2.13 required by the Spark 4.x profiles. Making gluten-it work on Spark 4.x is a separate change out of scope for this alignment PR. The description now records this decision explicitly.



-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [MINOR] Align supported Spark version references [gluten]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12525:
URL: https://github.com/apache/gluten/pull/12525#issuecomment-4980999983

   Run Gluten Clickhouse CI on x86


-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [MINOR] Align supported Spark version references [gluten]

Posted by "jackylee-ch (via GitHub)" <gi...@apache.org>.
jackylee-ch merged PR #12525:
URL: https://github.com/apache/gluten/pull/12525


-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [MINOR] Align supported Spark version references [gluten]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #12525:
URL: https://github.com/apache/gluten/pull/12525#discussion_r3587923524


##########
tools/gluten-it/README.md:
##########
@@ -22,7 +22,7 @@ mvn clean package -P{Spark-Version}
 sbin/gluten-it.sh
 ```
 
-Note: **Spark-Version** can only be **spark-3.2**, **spark-3.3**, **spark-3.4** or **spark-3.5**.
+Note: **Spark-Version** can only be **spark-3.3**, **spark-3.4**, **spark-3.5**, **spark-4.0** or **spark-4.1**.

Review Comment:
   The README now advertises Spark 4.0/4.1 profiles, but the wrapper script forces `SPARK_SCALA_VERSION=2.12` and prevents callers from setting it; Spark 4.x profiles in `tools/gluten-it/pom.xml` use Scala 2.13. As-is, following these instructions will likely run with the wrong Scala binary version (or fail to start). Update `sbin/gluten-it.sh` to set `SPARK_SCALA_VERSION` based on the selected Spark profile (or stop overriding it), and then keep this expanded profile list.



##########
docs/velox-backend-limitations.md:
##########
@@ -6,12 +6,12 @@ nav_order: 5
 This document describes the limitations of velox backend by listing some known cases where exception will be thrown, gluten behaves incompatibly with spark, or certain plan's execution
 must fall back to vanilla spark, etc.
 
-### Override of Spark classes (For Spark3.2 and Spark3.3)
-Gluten avoids to modify Spark's existing code and use Spark APIs if possible. However, some APIs aren't exposed in Vanilla spark and we have to copy the Spark file and do the hardcode changes. The list of override classes can be found as ignoreClasses in package/pom.xml . If you use customized Spark, you may check if the files are modified in your spark, otherwise your changes will be overrided.
+### Override of Spark classes
+Gluten avoids to modify Spark's existing code and use Spark APIs if possible. However, some APIs aren't exposed in Vanilla spark and we have to copy the Spark file and do the hardcode changes. The list of override classes can be found as ignoreClasses in package/pom.xml . If you use customized Spark, you may check if the files are modified in your spark, otherwise your changes will be overridden.

Review Comment:
   This sentence has several grammatical issues and a stray space before the period (`package/pom.xml .`). Since this paragraph was already edited, it’s a good opportunity to make it clearer and more professional.



##########
tools/gluten-it/common/src/main/java/org/apache/gluten/integration/SparkJvmOptions.java:
##########
@@ -25,13 +25,13 @@ public class SparkJvmOptions {
 
   public static String read() {
     try {
-      final Class<?> clazz = Class.forName("org.apache.spark.launcher.JavaModuleOptions");
+      final Class<?> clazz = Class.forName(MODULE_OPTIONS_CLASS_NAME);
       final Method method = clazz.getMethod("defaultModuleOptions");
       return (String) method.invoke(null);
-    } catch (ClassNotFoundException e) {
-      // Could happen in Spark 3.2 which doesn't have this class yet.
-      return "";
-    } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
+    } catch (ClassNotFoundException
+        | NoSuchMethodException
+        | InvocationTargetException
+        | IllegalAccessException e) {
       throw new RuntimeException(e);

Review Comment:
   `throw new RuntimeException(e)` loses important context when this fails via `sbin/gluten-it.sh` (it will just abort with a stack trace). Including the target class/method in the exception message makes classpath / Spark-version issues much easier to diagnose.



##########
shims/spark33/src/main/scala/org/apache/spark/sql/execution/datasources/orc/OrcFileFormat.scala:
##########
@@ -43,12 +43,10 @@ import org.apache.orc.mapreduce._
 import java.io._
 import java.net.URI
 
-/* -
- * This class is copied from Spark 3.2 and modified for Gluten. \n
- * Gluten should make sure this class is loaded before the original class.
- * If new Spark releases accepts changes and make this class incompatible,
- * we can move this class to shims-spark32,
- * shims-spark33, etc.
+/**
+ * This class is copied from Spark and modified for Gluten. Gluten should make sure this class is
+ * loaded before the original class. If a new Spark release accepts changes that make this class
+ * incompatible, we can move this class to a version-specific shim (shims-spark33, etc.).

Review Comment:
   The comment refers to a non-existent shim name (`shims-spark33`). In this repo the shim is organized under `shims/spark33` (artifact `spark-sql-columnar-shims-spark33`). Using the actual path/name avoids confusion for future maintainers.



##########
docs/get-started/Velox.md:
##########
@@ -7,18 +7,18 @@ parent: Getting-Started
 
 # Supported Version
 
-| Type  | Version                      |
-|-------|------------------------------|
-| Spark | 3.2.2, 3.3.1, 3.4.4, 3.5.5   |
-| OS    | Ubuntu20.04/22.04, Centos7/8 |
-| jdk   | openjdk8/jdk17               |
-| scala | 2.12                         |
+| Type  | Version                             |
+|-------|-------------------------------------|
+| Spark | 3.3.1, 3.4.4, 3.5.5, 4.0.2, 4.1.1   |
+| OS    | Ubuntu20.04/22.04, Centos7/8        |
+| jdk   | openjdk8/jdk17                      |
+| scala | 2.12                                |

Review Comment:
   The supported-version table claims `jdk openjdk8/jdk17` and `scala 2.12`, but this doc later states Spark 4.0/4.1 require JDK 17+ and Scala 2.13. Please align the summary table with the per-profile requirements so readers don’t try Spark 4.x with JDK 8 / Scala 2.12.



-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [MINOR] Align supported Spark version references [gluten]

Posted by "LuciferYang (via GitHub)" <gi...@apache.org>.
LuciferYang commented on code in PR #12525:
URL: https://github.com/apache/gluten/pull/12525#discussion_r3588469700


##########
tools/gluten-it/README.md:
##########
@@ -22,7 +22,7 @@ mvn clean package -P{Spark-Version}
 sbin/gluten-it.sh
 ```
 
-Note: **Spark-Version** can only be **spark-3.2**, **spark-3.3**, **spark-3.4** or **spark-3.5**.
+Note: **Spark-Version** can only be **spark-3.3**, **spark-3.4**, **spark-3.5**, **spark-4.0** or **spark-4.1**.

Review Comment:
   Reverted the gluten-it profile list to spark-3.3 / 3.4 / 3.5 for now. sbin/gluten-it.sh currently hardcodes SPARK_SCALA_VERSION=2.12 and the wrapper script does not derive Scala 2.13 from the -Pspark-4.0 / -Pspark-4.1 profiles, so advertising those profiles here would be misleading. Making gluten-it actually work on Spark 4.x is a separate change and out of scope for this alignment PR.



##########
tools/gluten-it/common/src/main/java/org/apache/gluten/integration/SparkJvmOptions.java:
##########
@@ -25,13 +25,13 @@ public class SparkJvmOptions {
 
   public static String read() {
     try {
-      final Class<?> clazz = Class.forName("org.apache.spark.launcher.JavaModuleOptions");
+      final Class<?> clazz = Class.forName(MODULE_OPTIONS_CLASS_NAME);
       final Method method = clazz.getMethod("defaultModuleOptions");
       return (String) method.invoke(null);
-    } catch (ClassNotFoundException e) {
-      // Could happen in Spark 3.2 which doesn't have this class yet.
-      return "";
-    } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
+    } catch (ClassNotFoundException
+        | NoSuchMethodException
+        | InvocationTargetException
+        | IllegalAccessException e) {
       throw new RuntimeException(e);

Review Comment:
   Added context to the RuntimeException: 'Failed to read Spark JVM module options via org.apache.spark.launcher.JavaModuleOptions#defaultModuleOptions'. Diagnosing classpath / Spark-version mismatches from sbin/gluten-it.sh should now be much easier.



##########
shims/spark33/src/main/scala/org/apache/spark/sql/execution/datasources/orc/OrcFileFormat.scala:
##########
@@ -43,12 +43,10 @@ import org.apache.orc.mapreduce._
 import java.io._
 import java.net.URI
 
-/* -
- * This class is copied from Spark 3.2 and modified for Gluten. \n
- * Gluten should make sure this class is loaded before the original class.
- * If new Spark releases accepts changes and make this class incompatible,
- * we can move this class to shims-spark32,
- * shims-spark33, etc.
+/**
+ * This class is copied from Spark and modified for Gluten. Gluten should make sure this class is
+ * loaded before the original class. If a new Spark release accepts changes that make this class
+ * incompatible, we can move this class to a version-specific shim (shims-spark33, etc.).

Review Comment:
   Reworded the doc: 'we can move this file into a version-specific shim (e.g. shims/spark34) so it is only used by the Spark versions that need it.' This matches the actual layout (shims/spark33, shims/spark34, etc.) and the intent (dedicate a version-specific shim once a divergence appears).



##########
docs/velox-backend-limitations.md:
##########
@@ -6,12 +6,12 @@ nav_order: 5
 This document describes the limitations of velox backend by listing some known cases where exception will be thrown, gluten behaves incompatibly with spark, or certain plan's execution
 must fall back to vanilla spark, etc.
 
-### Override of Spark classes (For Spark3.2 and Spark3.3)
-Gluten avoids to modify Spark's existing code and use Spark APIs if possible. However, some APIs aren't exposed in Vanilla spark and we have to copy the Spark file and do the hardcode changes. The list of override classes can be found as ignoreClasses in package/pom.xml . If you use customized Spark, you may check if the files are modified in your spark, otherwise your changes will be overrided.
+### Override of Spark classes
+Gluten avoids to modify Spark's existing code and use Spark APIs if possible. However, some APIs aren't exposed in Vanilla spark and we have to copy the Spark file and do the hardcode changes. The list of override classes can be found as ignoreClasses in package/pom.xml . If you use customized Spark, you may check if the files are modified in your spark, otherwise your changes will be overridden.

Review Comment:
   Rewrote the paragraph for grammar and removed the stray space before the period: 'Gluten avoids modifying Spark's existing code and prefers Spark APIs when possible. However, some APIs are not exposed by vanilla Spark, so we have to copy the Spark file and apply hardcoded changes. The list of overridden classes can be found as \`ignoreClasses\` in \`package/pom.xml\`. If you use a customized Spark, check whether these files are modified in your Spark distribution, otherwise your changes will be overridden.'



##########
docs/get-started/Velox.md:
##########
@@ -7,18 +7,18 @@ parent: Getting-Started
 
 # Supported Version
 
-| Type  | Version                      |
-|-------|------------------------------|
-| Spark | 3.2.2, 3.3.1, 3.4.4, 3.5.5   |
-| OS    | Ubuntu20.04/22.04, Centos7/8 |
-| jdk   | openjdk8/jdk17               |
-| scala | 2.12                         |
+| Type  | Version                             |
+|-------|-------------------------------------|
+| Spark | 3.3.1, 3.4.4, 3.5.5, 4.0.2, 4.1.1   |
+| OS    | Ubuntu20.04/22.04, Centos7/8        |
+| jdk   | openjdk8/jdk17                      |
+| scala | 2.12                                |

Review Comment:
   Added a note right below the version table: 'Spark 4.0 and 4.1 require JDK 17+ and Scala 2.13 (build with -Pspark-4.0 or -Pspark-4.1 plus -Pjava-17 -Pscala-2.13). Spark 3.3 to 3.5 can be built with JDK 8/17 and Scala 2.12.' This calls out the JDK/Scala requirement matrix without changing the table shape.



-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [MINOR] Align supported Spark version references [gluten]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #12525:
URL: https://github.com/apache/gluten/pull/12525#discussion_r3587563450


##########
docs/velox-backend-limitations.md:
##########
@@ -6,12 +6,12 @@ nav_order: 5
 This document describes the limitations of velox backend by listing some known cases where exception will be thrown, gluten behaves incompatibly with spark, or certain plan's execution
 must fall back to vanilla spark, etc.
 
-### Override of Spark classes (For Spark3.2 and Spark3.3)
+### Override of Spark classes (For Spark3.3)

Review Comment:
   The section header is version-specific (“For Spark3.3”), but the content below describes the general mechanism of overriding Spark classes. Since this doc covers limitations of the Velox backend across supported Spark versions, consider making the header generic to avoid implying it only applies to Spark 3.3.



##########
docs/velox-backend-limitations.md:
##########
@@ -6,12 +6,12 @@ nav_order: 5
 This document describes the limitations of velox backend by listing some known cases where exception will be thrown, gluten behaves incompatibly with spark, or certain plan's execution
 must fall back to vanilla spark, etc.
 
-### Override of Spark classes (For Spark3.2 and Spark3.3)
+### Override of Spark classes (For Spark3.3)
 Gluten avoids to modify Spark's existing code and use Spark APIs if possible. However, some APIs aren't exposed in Vanilla spark and we have to copy the Spark file and do the hardcode changes. The list of override classes can be found as ignoreClasses in package/pom.xml . If you use customized Spark, you may check if the files are modified in your spark, otherwise your changes will be overrided.

Review Comment:
   Typo: “overrided” should be “overridden”.



##########
docs/velox-backend-limitations.md:
##########
@@ -6,12 +6,12 @@ nav_order: 5
 This document describes the limitations of velox backend by listing some known cases where exception will be thrown, gluten behaves incompatibly with spark, or certain plan's execution
 must fall back to vanilla spark, etc.
 
-### Override of Spark classes (For Spark3.2 and Spark3.3)
+### Override of Spark classes (For Spark3.3)
 Gluten avoids to modify Spark's existing code and use Spark APIs if possible. However, some APIs aren't exposed in Vanilla spark and we have to copy the Spark file and do the hardcode changes. The list of override classes can be found as ignoreClasses in package/pom.xml . If you use customized Spark, you may check if the files are modified in your spark, otherwise your changes will be overrided.
 
 So you need to ensure preferentially load the Gluten jar to overwrite the jar of vanilla spark. Refer to [How to prioritize loading Gluten jars in Spark](https://github.com/apache/gluten/blob/main/docs/velox-backend-troubleshooting.md#incompatible-class-error-when-using-native-writer).
 
-If not officially supported spark3.2/3.3 version is used, NoSuchMethodError can be thrown at runtime. More details see [issue-4514](https://github.com/apache/gluten/issues/4514).
+If not officially supported spark3.3 version is used, NoSuchMethodError can be thrown at runtime. More details see [issue-4514](https://github.com/apache/gluten/issues/4514).

Review Comment:
   This warning currently says “unsupported spark3.3 version”, but the linked issue is about Spark 3.2 and the underlying problem applies to using any non-supported Spark build/version. Making the wording version-agnostic avoids an incorrect/overly narrow statement.



##########
tools/gluten-it/common/src/main/java/org/apache/gluten/integration/SparkJvmOptions.java:
##########
@@ -28,10 +28,10 @@ public static String read() {
       final Class<?> clazz = Class.forName("org.apache.spark.launcher.JavaModuleOptions");
       final Method method = clazz.getMethod("defaultModuleOptions");
       return (String) method.invoke(null);
-    } catch (ClassNotFoundException e) {
-      // Could happen in Spark 3.2 which doesn't have this class yet.
-      return "";
-    } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
+    } catch (ClassNotFoundException

Review Comment:
   MODULE_OPTIONS_CLASS_NAME is declared but not used; Class.forName repeats the string literal. Using the constant avoids duplication and prevents future drift if the class name ever changes.



##########
shims/spark33/src/main/scala/org/apache/spark/sql/execution/datasources/orc/OrcFileFormat.scala:
##########
@@ -44,11 +44,10 @@ import java.io._
 import java.net.URI
 
 /* -
- * This class is copied from Spark 3.2 and modified for Gluten. \n
+ * This class is copied from Spark and modified for Gluten. \n
  * Gluten should make sure this class is loaded before the original class.
  * If new Spark releases accepts changes and make this class incompatible,
- * we can move this class to shims-spark32,
- * shims-spark33, etc.
+ * we can move this class to a specific shim (shims-spark33, etc.).

Review Comment:
   The ScalaDoc has a literal “\\n” and a couple grammar issues (“releases accepts… and make…”). Cleaning this up makes the comment clearer and avoids showing the escape sequence in generated docs.



-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [MINOR] Align supported Spark version references [gluten]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #12525:
URL: https://github.com/apache/gluten/pull/12525#discussion_r3588534154


##########
tools/gluten-it/README.md:
##########
@@ -22,7 +22,7 @@ mvn clean package -P{Spark-Version}
 sbin/gluten-it.sh
 ```
 
-Note: **Spark-Version** can only be **spark-3.2**, **spark-3.3**, **spark-3.4** or **spark-3.5**.
+Note: **Spark-Version** can only be **spark-3.3**, **spark-3.4** or **spark-3.5**.

Review Comment:
   The PR description says `tools/gluten-it/README.md` was updated to list Spark profiles `spark-3.3` through `spark-4.1`, but this README now explicitly limits Spark-Version to `spark-3.3`, `spark-3.4`, and `spark-3.5`. Please update the PR description to match the final scope (or, if Spark 4.x is intended here, expand this README and ensure the wrapper script supports Scala 2.13).



-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org