Uh oh!
There was an error while loading. Please reload this page.
[Enhancement] (GEO) Support MultiPolygon for Geometry functions - #49665
Merged
Conversation
hello-stephen
commented
Mar 29, 2025
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
linrrzqqqforce-pushed
the
mtPolygon
branch
2 times, most recently
from
March 30, 2025 06:44
7c0a233 to
eacdd3dComparelinrrzqqqforce-pushed
the
mtPolygon
branch
2 times, most recently
from
April 7, 2025 07:19
cddc1ef to
6d6de26Comparelinrrzqqq
marked this pull request as ready for review
April 7, 2025 07:31
linrrzqqq
commented
Apr 7, 2025
CollaboratorAuthor
run buildall |
doris-robot
commented
Apr 7, 2025
TPC-H: Total hot run time: 34125 ms |
doris-robot
commented
Apr 7, 2025
TPC-DS: Total hot run time: 193478 ms |
doris-robot
commented
Apr 7, 2025
ClickBench: Total hot run time: 30.92 s |
doris-robot
commented
Apr 7, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
linrrzqqqforce-pushed
the
mtPolygon
branch
2 times, most recently
from
April 7, 2025 22:45
3cd8e0d to
1bd72c1Comparelinrrzqqq
commented
Apr 7, 2025
CollaboratorAuthor
run buildall |
doris-robot
commented
Apr 7, 2025
TPC-H: Total hot run time: 34062 ms |
doris-robot
commented
Apr 7, 2025
TPC-DS: Total hot run time: 193985 ms |
doris-robot
commented
Apr 7, 2025
ClickBench: Total hot run time: 31.09 s |
linrrzqqqforce-pushed
the
mtPolygon
branch
3 times, most recently
from
April 7, 2025 23:46
0283175 to
c2c05adComparelinrrzqqq
commented
Apr 7, 2025
CollaboratorAuthor
run buildall |
doris-robot
commented
Apr 8, 2025
TPC-H: Total hot run time: 33929 ms |
doris-robot
commented
Apr 8, 2025
TPC-DS: Total hot run time: 192578 ms |
doris-robot
commented
Apr 8, 2025
ClickBench: Total hot run time: 30.96 s |
linrrzqqq
commented
Apr 8, 2025
CollaboratorAuthor
run buildall |
doris-robot
commented
Apr 8, 2025
TPC-H: Total hot run time: 34228 ms |
doris-robot
commented
Apr 8, 2025
TPC-DS: Total hot run time: 186471 ms |
linrrzqqq added a commit
to linrrzqqq/doris
that referenced
this pull request
Apr 15, 2025
…he#49665) 1. Enhances the `GeometryFromText` function to support parsing `MULTIPOLYGON` WKT 2. Support `ST_CONTAINS ` , `ST_INTERSECTS`, `ST_TOUCHES` for it and other shapes. 3. Fixed the behavior of `ST_Touches` between two polygons, which has been updated to return `true` when they touch at a single point that is not on a horizontal or vertical edge. For example, the following polygons now return true for ST_Touches: - `POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))` - `POLYGON((5 10, 0 15, 10 15))` Obviously, they touches at the point `(5 10)`
linrrzqqq added a commit
to linrrzqqq/doris
that referenced
this pull request
Apr 15, 2025
…he#49665) ### What problem does this PR solve? 1. Enhances the `GeometryFromText` function to support parsing `MULTIPOLYGON` WKT 2. Support `ST_CONTAINS ` , `ST_INTERSECTS`, `ST_TOUCHES` for it and other shapes. 3. Fixed the behavior of `ST_Touches` between two polygons, which has been updated to return `true` when they touch at a single point that is not on a horizontal or vertical edge. For example, the following polygons now return true for ST_Touches: - `POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))` - `POLYGON((5 10, 0 15, 10 15))` Obviously, they touches at the point `(5 10)`
linrrzqqq added a commit
to linrrzqqq/doris
that referenced
this pull request
Apr 15, 2025
…he#49665) ### What problem does this PR solve? 1. Enhances the `GeometryFromText` function to support parsing `MULTIPOLYGON` WKT 2. Support `ST_CONTAINS ` , `ST_INTERSECTS`, `ST_TOUCHES` for it and other shapes. 3. Fixed the behavior of `ST_Touches` between two polygons, which has been updated to return `true` when they touch at a single point that is not on a horizontal or vertical edge. For example, the following polygons now return true for ST_Touches: - `POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))` - `POLYGON((5 10, 0 15, 10 15))` Obviously, they touches at the point `(5 10)`
linrrzqqq added a commit
to linrrzqqq/doris
that referenced
this pull request
Apr 16, 2025
…he#49665) ### What problem does this PR solve? 1. Enhances the `GeometryFromText` function to support parsing `MULTIPOLYGON` WKT 2. Support `ST_CONTAINS ` , `ST_INTERSECTS`, `ST_TOUCHES` for it and other shapes. 3. Fixed the behavior of `ST_Touches` between two polygons, which has been updated to return `true` when they touch at a single point that is not on a horizontal or vertical edge. For example, the following polygons now return true for ST_Touches: - `POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))` - `POLYGON((5 10, 0 15, 10 15))` Obviously, they touches at the point `(5 10)`
linrrzqqq added a commit
to linrrzqqq/doris
that referenced
this pull request
Apr 16, 2025
…he#49665) ### What problem does this PR solve? 1. Enhances the `GeometryFromText` function to support parsing `MULTIPOLYGON` WKT 2. Support `ST_CONTAINS ` , `ST_INTERSECTS`, `ST_TOUCHES` for it and other shapes. 3. Fixed the behavior of `ST_Touches` between two polygons, which has been updated to return `true` when they touch at a single point that is not on a horizontal or vertical edge. For example, the following polygons now return true for ST_Touches: - `POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))` - `POLYGON((5 10, 0 15, 10 15))` Obviously, they touches at the point `(5 10)`
linrrzqqq added a commit
to linrrzqqq/doris
that referenced
this pull request
Apr 16, 2025
…he#49665) ### What problem does this PR solve? 1. Enhances the `GeometryFromText` function to support parsing `MULTIPOLYGON` WKT 2. Support `ST_CONTAINS ` , `ST_INTERSECTS`, `ST_TOUCHES` for it and other shapes. 3. Fixed the behavior of `ST_Touches` between two polygons, which has been updated to return `true` when they touch at a single point that is not on a horizontal or vertical edge. For example, the following polygons now return true for ST_Touches: - `POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))` - `POLYGON((5 10, 0 15, 10 15))` Obviously, they touches at the point `(5 10)`
linrrzqqq added a commit
to linrrzqqq/doris
that referenced
this pull request
Apr 16, 2025
…he#49665) ### What problem does this PR solve? 1. Enhances the `GeometryFromText` function to support parsing `MULTIPOLYGON` WKT 2. Support `ST_CONTAINS ` , `ST_INTERSECTS`, `ST_TOUCHES` for it and other shapes. 3. Fixed the behavior of `ST_Touches` between two polygons, which has been updated to return `true` when they touch at a single point that is not on a horizontal or vertical edge. For example, the following polygons now return true for ST_Touches: - `POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))` - `POLYGON((5 10, 0 15, 10 15))` Obviously, they touches at the point `(5 10)`
yiguolei pushed a commit
that referenced
this pull request
Apr 17, 2025
seawinde pushed a commit
to seawinde/doris
that referenced
this pull request
Apr 17, 2025
…he#49665) ### What problem does this PR solve? 1. Enhances the `GeometryFromText` function to support parsing `MULTIPOLYGON` WKT 2. Support `ST_CONTAINS ` , `ST_INTERSECTS`, `ST_TOUCHES` for it and other shapes. 3. Fixed the behavior of `ST_Touches` between two polygons, which has been updated to return `true` when they touch at a single point that is not on a horizontal or vertical edge. For example, the following polygons now return true for ST_Touches: - `POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))` - `POLYGON((5 10, 0 15, 10 15))` Obviously, they touches at the point `(5 10)`
dataroaring pushed a commit
that referenced
this pull request
Apr 22, 2025
Closed
koarz pushed a commit
to koarz/doris
that referenced
this pull request
Jun 4, 2025
…he#49665) ### What problem does this PR solve? 1. Enhances the `GeometryFromText` function to support parsing `MULTIPOLYGON` WKT 2. Support `ST_CONTAINS ` , `ST_INTERSECTS`, `ST_TOUCHES` for it and other shapes. 3. Fixed the behavior of `ST_Touches` between two polygons, which has been updated to return `true` when they touch at a single point that is not on a horizontal or vertical edge. For example, the following polygons now return true for ST_Touches: - `POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))` - `POLYGON((5 10, 0 15, 10 15))` Obviously, they touches at the point `(5 10)`
Closed
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 freeto 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 problem does this PR solve?
GeometryFromTextfunction to support parsingMULTIPOLYGONWKTST_CONTAINS,ST_INTERSECTS,ST_TOUCHESfor it and other shapes.ST_Touchesbetween two polygons, which has been updated to returntruewhen they touch at a single point that is not on a horizontal or vertical edge.For example, the following polygons now return true for ST_Touches:
-
POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))-
POLYGON((5 10, 0 15, 10 15))Obviously, they touches at the point
(5 10)Issue Number: close#49481
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)