Skip to content

[feature](function) Add ST_NumGeometries, ST_NumPoints, ST_Geometries functions#63049

Open
acarofpigs wants to merge 1 commit into
apache:masterfrom
acarofpigs:add-geo-functions
Open

[feature](function) Add ST_NumGeometries, ST_NumPoints, ST_Geometries functions#63049
acarofpigs wants to merge 1 commit into
apache:masterfrom
acarofpigs:add-geo-functions

Conversation

@acarofpigs
Copy link
Copy Markdown

@acarofpigs acarofpigs commented May 7, 2026

… functions

What problem does this PR solve?

Issue Number: ref #48203

Related PR: apache/doris-website#3623

Problem Summary:
Add three new spatial functions for geometry collection operations:

  • ST_NumGeometries: Returns the number of sub-geometries in a geometry object.
  • ST_NumPoints: Returns the total number of vertices (points) in a geometry object.
  • ST_Geometries: Decomposes a geometry object into an array of its sub-geometries.

Release note

None

Check List (For Author)

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@hello-stephen
Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@acarofpigs acarofpigs force-pushed the add-geo-functions branch from 0a9a3ff to e870bd2 Compare May 7, 2026 06:33
@acarofpigs
Copy link
Copy Markdown
Author

run buildall

@acarofpigs
Copy link
Copy Markdown
Author

/review

@hello-stephen
Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 97.01% (130/134) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 73.69% (27751/37661)
Line Coverage 57.57% (300405/521787)
Region Coverage 54.85% (250579/456843)
Branch Coverage 56.33% (108273/192225)

@acarofpigs acarofpigs force-pushed the add-geo-functions branch from facf26f to 0d5d800 Compare May 15, 2026 12:59
@acarofpigs
Copy link
Copy Markdown
Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 4.48% (6/134) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 53.50% (20656/38606)
Line Coverage 37.16% (195159/525203)
Region Coverage 33.52% (152699/455535)
Branch Coverage 34.56% (66589/192654)

@acarofpigs acarofpigs force-pushed the add-geo-functions branch from 0d5d800 to 0fdb594 Compare May 19, 2026 11:22
@acarofpigs acarofpigs force-pushed the add-geo-functions branch from 0fdb594 to 8feb287 Compare May 19, 2026 11:36
@acarofpigs
Copy link
Copy Markdown
Author

run buildall

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.

2 participants