Skip to content

[docs](function) Add ST_IsClosed documentation - #4102

Open
YanzhiJin5 wants to merge 2 commits into
apache:masterfrom
YanzhiJin5:docs/st-isclosed
Open

YanzhiJin5 wants to merge 2 commits into
apache:masterfrom
YanzhiJin5:docs/st-isclosed

Conversation

@YanzhiJin5

@YanzhiJin5 YanzhiJin5 commented Sep 1, 2026

Copy link
Copy Markdown

Versions

  • dev
  • 4.x
  • 3.x
  • 2.1 or older (not covered by version/language sync gate)

Languages

  • Chinese
  • English

Docs Checklist

  • Checked by AI
  • Test Cases Built
  • Updated required version and language counterparts, or explained why not
  • If only one language changed, confirmed whether source/translation counterparts need sync

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_IsClosed currently 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.

@HappenLee

Copy link
Copy Markdown
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.
@YanzhiJin5

Copy link
Copy Markdown
Author

@YanzhiJin5为什么只有英文文件?请补充中文文件。

Thanks for pointing this out. I’ve added the Chinese-language counterpart for ST_IsClosed and updated the PR accordingly.

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