YanzhiJin5 opened a new pull request, #67350:
URL: https://github.com/apache/doris/pull/67350
### What problem does this PR solve?
Issue Number: ref #48203
Related PR: Pending documentation PR
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.
### Check List (For Author)
* Test
* [x] Regression test
* [x] Unit Test
* FE targeted unit test passed
* BE `VGeoFunctionsTest.*` passed
* FE production build passed
* SQL regression suite is included but was not run locally; it will be
validated by CI
* [ ] Manual test
* [ ] No need to test or manual test
* Behavior changed:
* [x] No.
* [ ] Yes.
* Does this need documentation?
* [ ] No.
* [x] Yes. Pending documentation PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]