You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by we...@apache.org on 2026/06/14 14:49:47 UTC
(spark) branch branch-4.2 updated: [SPARK-57434][SQL][TEST] Move JavaGeographyTypeSuite and JavaGeometryTypeSuite to the Java test source root
This is an automated email from the ASF dual-hosted git repository.
cloud-fan pushed a commit to branch branch-4.2
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.2 by this push:
new 8f9da703451e [SPARK-57434][SQL][TEST] Move JavaGeographyTypeSuite and JavaGeometryTypeSuite to the Java test source root
8f9da703451e is described below
commit 8f9da703451e399e1f65f3f3414cba13d40284c7
Author: Wenchen Fan <we...@databricks.com>
AuthorDate: Sun Jun 14 07:48:56 2026 -0700
[SPARK-57434][SQL][TEST] Move JavaGeographyTypeSuite and JavaGeometryTypeSuite to the Java test source root
### What changes were proposed in this pull request?
Move `JavaGeographyTypeSuite` and `JavaGeometryTypeSuite` from
`sql/core/src/test/scala/org/apache/spark/sql/types/` to
`sql/core/src/test/java/org/apache/spark/sql/types/`.
These are Java (JUnit) test suites that were placed under the Scala test source
root when they were introduced in #52623 ([SPARK-53920]). This relocates them to
the standard Java test source root. The package (`org.apache.spark.sql.types`)
is unchanged and there is no logic change.
### Why are the changes needed?
Java test sources belong under `src/test/java`, not `src/test/scala`. Keeping
them in the Scala source tree is inconsistent with the standard Maven/SBT
project layout.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Existing tests. This is a pure file relocation with no logic change.
### Was this patch authored or co-authored using generative AI tooling?
Yes, prepared with assistance from an AI coding agent.
Closes #56492 from cloud-fan/move-java-geo-typesuites-to-java-root.
Authored-by: Wenchen Fan <we...@databricks.com>
Signed-off-by: Wenchen Fan <we...@databricks.com>
(cherry picked from commit c78c0c86c77d927d1e704a7065a9affae37d6734)
Signed-off-by: Wenchen Fan <we...@databricks.com>
---
.../org/apache/spark/sql/types/JavaGeographyTypeSuite.java | 0
.../org/apache/spark/sql/types/JavaGeometryTypeSuite.java | 4 ++--
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/types/JavaGeographyTypeSuite.java b/sql/core/src/test/java/org/apache/spark/sql/types/JavaGeographyTypeSuite.java
similarity index 100%
rename from sql/core/src/test/scala/org/apache/spark/sql/types/JavaGeographyTypeSuite.java
rename to sql/core/src/test/java/org/apache/spark/sql/types/JavaGeographyTypeSuite.java
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/types/JavaGeometryTypeSuite.java b/sql/core/src/test/java/org/apache/spark/sql/types/JavaGeometryTypeSuite.java
similarity index 97%
rename from sql/core/src/test/scala/org/apache/spark/sql/types/JavaGeometryTypeSuite.java
rename to sql/core/src/test/java/org/apache/spark/sql/types/JavaGeometryTypeSuite.java
index 867957884d23..9a19367a25c2 100644
--- a/sql/core/src/test/scala/org/apache/spark/sql/types/JavaGeometryTypeSuite.java
+++ b/sql/core/src/test/java/org/apache/spark/sql/types/JavaGeometryTypeSuite.java
@@ -64,8 +64,8 @@ public class JavaGeometryTypeSuite {
public void geometryTypeWithSpecifiedValidCrsTest() {
// Valid CRS values for GEOMETRY (including Spark overrides)
Stream.of(
- "SRID:0", "EPSG:3857", "OGC:CRS84", "EPSG:4326", "OGC:CRS27", "EPSG:4267", "OGC:CRS83", "EPSG:4269",
- "EPSG:2000", "ESRI:102100")
+ "SRID:0", "EPSG:3857", "OGC:CRS84", "EPSG:4326", "OGC:CRS27", "EPSG:4267",
+ "OGC:CRS83", "EPSG:4269", "EPSG:2000", "ESRI:102100")
.forEach(crs -> {
Integer srid = CartesianSpatialReferenceSystemMapper.getSrid(crs);
DataType geometryType = DataTypes.createGeometryType(crs);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org