Skip to content

Commit 98fd5ac

Browse files
dataroaringSR9064
andcommitted
[fix](docs) replace timestamp with datetime in window examples (#3367)
## Summary - verify #2056 is still open and the example still uses unsupported `timestamp` - replace `closing_date timestamp` with `closing_date datetime` in window-function example SQL - propagate the same fix consistently across current and versioned EN + ZH docs where this example appears - commit is authored with the original author identity from #2056 ## Reference - redoes issue intent from #2056 Co-authored-by: apna clg <sahelim481@gmail.com>
1 parent 63deb6a commit 98fd5ac

14 files changed

Lines changed: 18 additions & 18 deletions

File tree

docs/query-data/window-function.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ The query results are as follows:
498498
1. Assume we have the following stock data, with stock symbol JDR and daily closing prices:
499499

500500
```sql
501-
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date timestamp);
501+
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date datetime);
502502

503503
INSERT INTO stock_ticker VALUES
504504
("JDR", 12.86, "2014-10-02 00:00:00"),
@@ -707,4 +707,4 @@ curl --location-trusted \
707707
http://127.0.0.1:8030/api/doc_tpcds/customer_address/_stream_load
708708
```
709709

710-
The data files ``item_1_10.dat``, ``date-dim_1_10.dat``, ``store_stales.csv``, and ``customer-address_1_10.dat`` can be downloaded by clicking on the [link](https://cdn.selectdb.com/static/doc_ddl_dir_d27a752a7b.tar).
710+
The data files ``item_1_10.dat``, ``date-dim_1_10.dat``, ``store_stales.csv``, and ``customer-address_1_10.dat`` can be downloaded by clicking on the [link](https://cdn.selectdb.com/static/doc_ddl_dir_d27a752a7b.tar).

i18n/zh-CN/docusaurus-plugin-content-docs/current/query-data/window-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ where year in (1999, 2000, 2001, 2002)
479479
1. 假设我们有如下的股票数据,股票代码是 JDR,closing price 是每天的收盘价。
480480

481481
```sql
482-
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date timestamp);
482+
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date datetime);
483483

484484
INSERT INTO stock_ticker VALUES
485485
("JDR", 12.86, "2014-10-02 00:00:00"),

i18n/zh-CN/docusaurus-plugin-content-docs/version-1.2/sql-manual/sql-functions/window-functions/WINDOW-FUNCTION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ROWS BETWEEN [ { m | UNBOUNDED } PRECEDING | CURRENT ROW] [ AND [CURRENT ROW | {
5656
假设我们有如下的股票数据,股票代码是 JDR,closing price 是每天的收盘价。
5757

5858
```sql
59-
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date timestamp);
59+
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date datetime);
6060
...load some data...
6161
select * from stock_ticker order by stock_symbol, closing_date
6262
| stock_symbol | closing_price | closing_date |
@@ -90,4 +90,4 @@ from stock_ticker;
9090

9191
### keywords
9292

93-
WINDOW,FUNCTION
93+
WINDOW,FUNCTION

i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0/query/query-data/window-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ROWS BETWEEN [ { m | UNBOUNDED } PRECEDING | CURRENT ROW] [ AND [CURRENT ROW | {
5353
假设我们有如下的股票数据,股票代码是 JDR,closing price 是每天的收盘价。
5454

5555
```sql
56-
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date timestamp);
56+
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date datetime);
5757
...load some data...
5858
select * from stock_ticker order by stock_symbol, closing_date
5959
```

i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0/sql-manual/sql-functions/window-functions/WINDOW-FUNCTION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ROWS BETWEEN [ { m | UNBOUNDED } PRECEDING | CURRENT ROW] [ AND [CURRENT ROW | {
5555
假设我们有如下的股票数据,股票代码是 JDR,closing price 是每天的收盘价。
5656

5757
```sql
58-
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date timestamp);
58+
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date datetime);
5959
...load some data...
6060
select * from stock_ticker order by stock_symbol, closing_date
6161
| stock_symbol | closing_price | closing_date |

i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/window-functions/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function(<args>) OVER(
4646
1. 假设我们有如下的股票数据,股票代码是 JDR,closing price 是每天的收盘价。
4747

4848
```sql
49-
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date timestamp);
49+
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date datetime);
5050
...load some data...
5151
select * from stock_ticker order by stock_symbol, closing_date
5252
```

i18n/zh-CN/docusaurus-plugin-content-docs/version-3.x/sql-manual/sql-functions/window-functions/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function(<args>) OVER(
4646
1. 假设我们有如下的股票数据,股票代码是 JDR,closing price 是每天的收盘价。
4747

4848
```sql
49-
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date timestamp);
49+
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date datetime);
5050
...load some data...
5151
select * from stock_ticker order by stock_symbol, closing_date
5252
```

i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/query-data/window-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ where year in (1999, 2000, 2001, 2002)
479479
1. 假设我们有如下的股票数据,股票代码是 JDR,closing price 是每天的收盘价。
480480

481481
```sql
482-
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date timestamp);
482+
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date datetime);
483483

484484
INSERT INTO stock_ticker VALUES
485485
("JDR", 12.86, "2014-10-02 00:00:00"),

versioned_docs/version-1.2/sql-manual/sql-functions/window-functions/WINDOW-FUNCTION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ROWS BETWEEN [ { m | UNBOUNDED } PRECEDING | CURRENT ROW] [ AND [CURRENT ROW | {
5656
Suppose we have the following stock data, the stock symbol is JDR, and the closing price is the closing price of each day.
5757

5858
```sql
59-
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date timestamp);
59+
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date datetime);
6060
...load some data...
6161
select * from stock_ticker order by stock_symbol, closing_date
6262
| stock_symbol | closing_price | closing_date |
@@ -90,4 +90,4 @@ from stock_ticker;
9090

9191
### keywords
9292

93-
WINDOW,FUNCTION
93+
WINDOW,FUNCTION

versioned_docs/version-2.0/query/query-data/window-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ ROWS BETWEEN [ { m | UNBOUNDED } PRECEDING | CURRENT ROW] [ AND [CURRENT ROW | {
5151
Taking the following stock data as an example, the stock code is JDR, and the "closing price" refers to the daily closing quotation.
5252

5353
```sql
54-
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date timestamp);
54+
create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date datetime);
5555
...load some data...
5656
select * from stock_ticker order by stock_symbol, closing_date
5757
```

0 commit comments

Comments
 (0)