From a24d3a3c3a59b7842bc13fcca6baa77d2ae6632b Mon Sep 17 00:00:00 2001 From: michelle-qinqin <1031516513@qq.com> Date: Fri, 22 Jul 2022 13:57:32 +0800 Subject: [PATCH 1/4] docs: improved en version of sql/dql/limit --- docs/en/reference/sql/dql/LIMIT_CLAUSE.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/en/reference/sql/dql/LIMIT_CLAUSE.md b/docs/en/reference/sql/dql/LIMIT_CLAUSE.md index 492ee238197..e859ca6fac8 100644 --- a/docs/en/reference/sql/dql/LIMIT_CLAUSE.md +++ b/docs/en/reference/sql/dql/LIMIT_CLAUSE.md @@ -26,7 +26,6 @@ SELECT ... LIMIT ... ### SELECT with LIMIT ```SQL --- desc: SELECT Limit SELECT t1.COL1 c1 FROM t1 limit 10; ``` From 5ca862d2014ca500879c0180f6e0debaea52a24a Mon Sep 17 00:00:00 2001 From: michelle-qinqin <1031516513@qq.com> Date: Fri, 22 Jul 2022 14:01:22 +0800 Subject: [PATCH 2/4] docs: improved the table --- docs/en/reference/sql/dql/LIMIT_CLAUSE.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/reference/sql/dql/LIMIT_CLAUSE.md b/docs/en/reference/sql/dql/LIMIT_CLAUSE.md index e859ca6fac8..9f2c17fc220 100644 --- a/docs/en/reference/sql/dql/LIMIT_CLAUSE.md +++ b/docs/en/reference/sql/dql/LIMIT_CLAUSE.md @@ -1,6 +1,6 @@ # Limit Clause -The Limit clause is used to limit the number of results. OpenMLDB currently only supports Limit accepting one parameter, indicating the maximum number of rows of returned data; +The Limit clause is used to limit the number of results. OpenMLDB currently only supports one parameter to limit the maximum number of rows of returned data. ## Syntax @@ -16,10 +16,10 @@ SELECT ... LIMIT ... ``` ## Boundary Description +| `SELECT` Statement Elements | Offline Mode | Online Preview Mode | Online Request Mode | Note | +|:-----------------------------------------------------------|--------------|---------------------|---------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------| +| LIMIT Clause | **``✓``** | **``✓``** | **``✓``** | The Limit clause is used to limit the number of results. OpenMLDB currently only supports one parameter to limit the maximum number of rows of returned data. | -| SELECT statement elements | state | direction | -| :------------- | -------------------- | :----------------------------------------------------------- | -| LIMIT Clause | Online Serving is not supported | The Limit clause is used to limit the number of results. OpenMLDB currently only supports Limit accepting one parameter, indicating the maximum number of rows of returned data; | ## Example From 66f191398147cf21cfca5b90fdbda5c0e76e7947 Mon Sep 17 00:00:00 2001 From: michelle-qinqin <1031516513@qq.com> Date: Fri, 22 Jul 2022 14:18:26 +0800 Subject: [PATCH 3/4] docs: added introduction of standalone version --- docs/en/reference/sql/dql/LIMIT_CLAUSE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/en/reference/sql/dql/LIMIT_CLAUSE.md b/docs/en/reference/sql/dql/LIMIT_CLAUSE.md index 9f2c17fc220..8b3ffbc0f4e 100644 --- a/docs/en/reference/sql/dql/LIMIT_CLAUSE.md +++ b/docs/en/reference/sql/dql/LIMIT_CLAUSE.md @@ -16,6 +16,8 @@ SELECT ... LIMIT ... ``` ## Boundary Description +For the standalone version, `LIMIT` is supported in all conditions. For the cluster version, the execution modes which support this clause is shown below. + | `SELECT` Statement Elements | Offline Mode | Online Preview Mode | Online Request Mode | Note | |:-----------------------------------------------------------|--------------|---------------------|---------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------| | LIMIT Clause | **``✓``** | **``✓``** | **``✓``** | The Limit clause is used to limit the number of results. OpenMLDB currently only supports one parameter to limit the maximum number of rows of returned data. | From fb40ec5867ad91cd41b199923437b481126468f6 Mon Sep 17 00:00:00 2001 From: michelle-qinqin <1031516513@qq.com> Date: Sun, 24 Jul 2022 14:14:01 +0800 Subject: [PATCH 4/4] docs: fixed synatx error --- docs/en/reference/sql/dql/LIMIT_CLAUSE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/reference/sql/dql/LIMIT_CLAUSE.md b/docs/en/reference/sql/dql/LIMIT_CLAUSE.md index 8b3ffbc0f4e..360fb367a49 100644 --- a/docs/en/reference/sql/dql/LIMIT_CLAUSE.md +++ b/docs/en/reference/sql/dql/LIMIT_CLAUSE.md @@ -16,7 +16,7 @@ SELECT ... LIMIT ... ``` ## Boundary Description -For the standalone version, `LIMIT` is supported in all conditions. For the cluster version, the execution modes which support this clause is shown below. +For the standalone version, `LIMIT` is supported in all conditions. For the cluster version, the execution modes, which support this clause, are shown below. | `SELECT` Statement Elements | Offline Mode | Online Preview Mode | Online Request Mode | Note | |:-----------------------------------------------------------|--------------|---------------------|---------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------|