zclllyybb commented on code in PR #2416:
URL: https://github.com/apache/doris-website/pull/2416#discussion_r2107637880
##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/spatial-functions/st-geometryfromtext.md:
##########
@@ -59,4 +92,95 @@ SELECT ST_AsText(ST_GeometryFromText("LINESTRING (1 1, 2
2)"));
+---------------------------------------------------------+
| LINESTRING (1 1, 2 2) |
+---------------------------------------------------------+
+```
+
+```sql
+-- LINESTRING 不合法样例(端点过少)
+SELECT ST_AsText(ST_GeometryFromText("LINESTRING (1 1)"));
+```
+
+```text
++----------------------------------------------------+
+| ST_AsText(ST_GeometryFromText("LINESTRING (1 1)")) |
++----------------------------------------------------+
+| NULL |
++----------------------------------------------------+
+```
+
+```sql
+-- POLYGON 样例
+SELECT ST_AsText(ST_GeometryFromText("POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))"));
+```
+
+``` text
++-----------------------------------------------------------------------+
+| ST_AsText(ST_GeometryFromText("POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))")) |
++-----------------------------------------------------------------------+
+| POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0)) |
++-----------------------------------------------------------------------+
+```
+
+```sql
+-- POLYGON 不合法样例(收尾不闭合)
Review Comment:
typo. 首尾
--
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]