Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on docs window-function #2006

Open
ConradWen opened this issue Feb 8, 2025 · 2 comments · May be fixed by #2056
Open

Issue on docs window-function #2006

ConradWen opened this issue Feb 8, 2025 · 2 comments · May be fixed by #2056

Comments

@ConradWen
Copy link

Path:/zh-CN/docs/sql-manual/sql-functions/window-functions/window-function

create table stock_ticker (stock_symbol string, closing_price decimal(8,2), closing_date timestamp);
...load some data...
select * from stock_ticker order by stock_symbol, closing_date

In the table building statement" closing_date timestamp",doris' data type does not support timestamp.
May mislead users.

@ConradWen
Copy link
Author

The test data can be used as the following examples:

create table stock_ticker
(
closing_date dateTime,
stock_symbol string,
closing_price decimal(10, 0)
) duplicate key(closing_date)
distributed by hash(closing_date) buckets 1
properties
(
"replication_num"="1"
);

insert into stock_ticker values
('2014-10-02 00:00:00','JDR',12.86),
('2014-10-03 00:00:00','JDR',12.89),
('2014-10-04 00:00:00','JDR',12.94),
('2014-10-05 00:00:00','JDR',12.55),
('2014-10-06 00:00:00','JDR',14.03),
('2014-10-07 00:00:00','JDR',14.75),
('2014-10-08 00:00:00','JDR',13.98),
('2014-10-08 00:00:00','TTD',16.98),
('2014-10-06 00:00:00','TTD',13.98),
('2014-10-07 00:00:00','TTD',12.98);

select * from stock_ticker;

@KassieZ
Copy link
Contributor

KassieZ commented Feb 21, 2025

Thank you for the contribution, will review it then merge it ASAP

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 a pull request may close this issue.

2 participants