Skip to content

[SPARK-57434][SQL][TESTS] Move JavaGeographyTypeSuite and JavaGeometryTypeSuite to the Java test source root#56492

Closed
cloud-fan wants to merge 2 commits into
apache:masterfrom
cloud-fan:move-java-geo-typesuites-to-java-root
Closed

[SPARK-57434][SQL][TESTS] Move JavaGeographyTypeSuite and JavaGeometryTypeSuite to the Java test source root#56492
cloud-fan wants to merge 2 commits into
apache:masterfrom
cloud-fan:move-java-geo-typesuites-to-java-root

Conversation

@cloud-fan

@cloud-fan cloud-fan commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

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.

…uite to the Java test source root

JavaGeographyTypeSuite and JavaGeometryTypeSuite are Java (JUnit) test suites but live under `sql/core/src/test/scala/...`. Move them to the standard Java test source root `sql/core/src/test/java/...` (package unchanged), where Java test sources belong. Pure file relocation, no logic change.

Co-authored-by: Isaac
@cloud-fan

Copy link
Copy Markdown
Contributor Author

cc @uros-db

@dongjoon-hyun dongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Although this is trivial, could you file a new JIRA issue for a better traceability if you are going to backporting this?

Since the original file was added at Apache Spark 4.1.0, I guess you want to backport. If this is only for Apache Spark 5.0+, it's okay to use MINOR.

@cloud-fan cloud-fan changed the title [MINOR][SQL][TESTS] Move JavaGeographyTypeSuite and JavaGeometryTypeSuite to the Java test source root [SPARK-57434][SQL][TESTS] Move JavaGeographyTypeSuite and JavaGeometryTypeSuite to the Java test source root Jun 14, 2026

@dongjoon-hyun dongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1, LGTM. Thank you, @cloud-fan .

@uros-b uros-b left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thank you @cloud-fan and @dongjoon-hyun!

@cloud-fan

Copy link
Copy Markdown
Contributor Author

thanks for review, merging to master/4.x/4.2/4.1!

@cloud-fan cloud-fan closed this in c78c0c8 Jun 14, 2026
cloud-fan added a commit that referenced this pull request Jun 14, 2026
…TypeSuite 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 <wenchen@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit c78c0c8)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
cloud-fan added a commit that referenced this pull request Jun 14, 2026
…TypeSuite 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 <wenchen@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit c78c0c8)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
cloud-fan added a commit that referenced this pull request Jun 14, 2026
…TypeSuite to the Java test source root

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.

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.

No.

Existing tests. This is a pure file relocation with no logic change.

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 <wenchen@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit c78c0c8)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
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.

3 participants