[docs](function) Add ST_IsClosed documentation - #4102
Open
YanzhiJin5 wants to merge 2 commits into
Open
YanzhiJin5 wants to merge 2 commits into
YanzhiJin5 wants to merge 2 commits into
Conversation
8 tasks
Contributor
|
@YanzhiJin5 Why is only an English document written? Please supplement the Chinese‑language document. |
morrySnow
pushed a commit
to apache/doris
that referenced
this pull request
Sep 8, 2026
### What problem does this PR solve? Issue Number: ref #48203 Related PR: apache/doris-website#4102 Problem Summary: Add the `ST_IsClosed` spatial scalar function. For a valid LineString, the function returns: * `true` when the first and last points are exactly equal * `false` when the LineString is open * `NULL` for a `NULL` input * `NULL` for a non-LineString or invalid encoded geometry The implementation uses exact S2 point equality without introducing a tolerance. This PR also adds Nereids registration and visitor support, FE and BE unit tests, and a self-asserting SQL regression suite. ### Release note Add the `ST_IsClosed` spatial function.
Author
Thanks for pointing this out. I’ve added the Chinese-language counterpart for |
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.
Versions
Languages
Docs Checklist
Description
Adds the English dev documentation for
ST_IsClosed.The documentation covers closed and open LineStrings, NULL input, non-LineString input, and the exact endpoint comparison semantics without a distance tolerance.
Only the dev English documentation is included because
ST_IsClosedcurrently exists only on Doris master.Related code PR: apache/doris#67350
The SQL examples were checked against the implementation and its tests but were not executed on a local Doris cluster.