Skip to content

[GH-3124] Prepare shared geometry result tests for native spatial values - #3531

Closed
jiayuasu wants to merge 2 commits into
apache:masterfrom
jiayuasu:codex/oss-spatial-test-results
Closed

jiayuasu wants to merge 2 commits into
apache:masterfrom
jiayuasu:codex/oss-spatial-test-results

Conversation

@jiayuasu

@jiayuasu jiayuasu commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Superseded by #3525, which now includes this PR’s complete changes and combined validation. Closed as redundant; no code was discarded.

Did you read the Contributor Guide?

Yes, I have read the Contributor Rules and Contributor Development Guide.

Is this PR related to a ticket?

Related to #3124. Consolidated into #3525; this PR no longer needs a separate review or merge.

What changes were proposed in this PR?

Follow-up to #3525. Shared geometry-result tests currently cast DataFrame values directly to JTS. Route these test assertions through the existing version-selected spatial boundary, so they can also read Spark's native external geometry values when that integration is added.

Add a small SpatialTestValues test helper and explicit toGeometrySeq accessor. Update the shared brute-force distance helpers and the three ST_StartPoint result callers. Existing runtime profiles retain the original JTS objects, values and test settings. The incremental change after #3525 touches five test files; the native-disabled fixture configuration and generic result accessors remain unchanged. The complete test changes are now included in the consolidated #3525.

How was this patch tested?

Clean Maven verify passed on Spark 4.1.1 / Scala 2.13 and Spark 3.5.8 / Scala 2.12. Each run passed all 343 selected checks:

  • SpatialTestValuesTest: 4, covering identity/nulls, SRID/factory and named/indexed access, ZM/empty values, and rejection of non-geometry inputs.
  • functionTestScala: 244.
  • predicateJoinTestScala: 29.
  • BroadcastIndexJoinSuite: 66.

Both runs passed Spotless and Scalastyle. Repository pre-commit and automatic commit hooks passed.

Did this PR include necessary documentation updates?

No public API changes; no documentation update is needed.

@jiayuasu jiayuasu changed the title Prepare shared geometry result tests for native spatial values [GH-3124] Prepare shared geometry result tests for native spatial values Nov 8, 2026
@jiayuasu jiayuasu closed this Nov 8, 2026
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.

1 participant