Repository navigation
feat: extend geometry typing and spatial support - #24136
Merged
Merged
Conversation
Add parser, planner, runtime, and builtin support for geometry subtypes, core ST_* helpers, SRID enforcement, and the ST_Length line slice. Include unit tests plus focused SQL validation and mo-tester coverage. Co-authored-by: Copilot <[email protected]>
Add incremental geometry helper support across the current advanced-function batch, including area/contains/within extensions plus point, ring, envelope, and centroid helpers with focused SQL coverage. Co-authored-by: Copilot <[email protected]>
Add a narrow ST_Boundary slice for LINESTRING and POLYGON, including focused unit tests and SQL coverage. Co-authored-by: Copilot <[email protected]>
Add a narrow ST_IsValid slice for POINT, LINESTRING, and POLYGON validity checks, including focused unit tests and SQL coverage. Co-authored-by: Copilot <[email protected]>
Add a narrow ST_PointOnSurface slice for POINT, LINESTRING, and POLYGON, including focused unit tests and SQL coverage. Co-authored-by: Copilot <[email protected]>
Add a narrow ST_Intersects slice for the current POINT, LINESTRING, and POLYGON support matrix, including focused unit tests and SQL coverage. Co-authored-by: Copilot <[email protected]>
Add a narrow ST_Disjoint slice for the current POINT, LINESTRING, and POLYGON support matrix, including focused unit tests and SQL coverage. Co-authored-by: Copilot <[email protected]>
Add a narrow ST_Touches slice for POINT with LINESTRING or POLYGON, including focused unit tests and SQL coverage. Co-authored-by: Copilot <[email protected]>
Broaden the current ST_Touches slice to cover LINESTRING and POLYGON boundary-touch cases while keeping the supported matrix narrow and validated. Co-authored-by: Copilot <[email protected]>
Broaden the current ST_Touches slice to cover LINESTRING peer cases while keeping the supported topology matrix narrow and fully validated. Co-authored-by: Copilot <[email protected]>
Broaden the current ST_Touches slice to cover simple single-ring POLYGON peer cases while keeping area-overlap cases rejected and hole polygons unsupported. Co-authored-by: Copilot <[email protected]>
Introduce the first ST_Crosses slice for POINT/LINESTRING, LINESTRING/LINESTRING, and LINESTRING/POLYGON cases, with focused validation and SQL coverage. Co-authored-by: Copilot <[email protected]>
Introduce the first ST_Overlaps slice for LINESTRING partial-overlap cases, keeping the initial matrix narrow and fully validated before polygon extensions. Co-authored-by: Copilot <[email protected]>
Broaden the current ST_Overlaps slice to cover simple single-ring POLYGON peer cases while keeping broader geometry families out of scope for now. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
XuPeng-SH
approved these changes
Apr 14, 2026
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
LeftHandCold
approved these changes
Apr 15, 2026
iamlinjunhong
approved these changes
Apr 15, 2026
ghost
approved these changes
Apr 15, 2026
ouyuanning
approved these changes
Apr 15, 2026
aunjgr
approved these changes
Apr 15, 2026
Contributor
Merge Queue Status
This pull request spent 59 minutes 17 seconds in the queue, including 58 minutes 59 seconds running CI. Required conditions to merge
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
issue #23913
What this PR does / why we need it:
This PR completes the current
#23913geometry delivery across parser/catalog metadata, runtime typing, frontend display, SQL-visible geometry behavior, SRID enforcement, and spatial index support.POINT,GEOMETRY,LINESTRING,POLYGON,MULTIPOINT,MULTILINESTRING,MULTIPOLYGON, andGEOMETRYCOLLECTIONSPATIAL INDEXcreation / maintenance / planner paths soSHOW CREATE TABLE,SHOW INDEX, and indexedEXPLAINpaths work for validated predicates such asST_DISTANCEandST_ContainsSHOW/information_schemagolden files to the delivered geometry metadata behaviorValidation:
make buildmake ut#23913SQL matrix on127.0.0.1:6001, including typed DDL, requestedST_*, SRID success/mismatch,SHOW CREATE TABLE,SHOW INDEX, and indexedEXPLAINforST_DISTANCE(... ) <= constandST_Contains(indexed_geom, const_geom)cd /Users/moukeyu/mo-tester && ./run.sh -n -g -p /Users/moukeyu/matrixone/test/distributed/cases/dml/show/show.test[SUMMARY] COST : 4s, TOTAL :189, SUCCESS : 189, FAILED :0, IGNORED :0, ABNORAML :0, SUCCESS RATE : 100%cd /Users/moukeyu/mo-tester && ./run.sh -n -g -p /Users/moukeyu/matrixone/test/distributed/cases/zz_accesscontrol/account_restricted.sql[SUMMARY] COST : 5s, TOTAL :126, SUCCESS : 125, FAILED :0, IGNORED :1, ABNORAML :0, SUCCESS RATE : 100%