Skip to content

Fix dates in TPC-DS/YQL-syntax #1138

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

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ydb/library/benchmarks/queries/tpcds/yql/q58.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- NB: Subquerys
$week_seq = (select d_week_seq
from {{date_dim}} as date_dim
where d_date = '1998-02-21');
where d_date = cast('1998-02-21' as date));
$ss_items =
(select item.i_item_id item_id
,sum(ss_ext_sales_price) ss_item_rev
Expand Down
6 changes: 3 additions & 3 deletions ydb/library/benchmarks/queries/tpcds/yql/q83.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $sr_items =
where d_week_seq in
(select d_week_seq
from {{date_dim}} as date_dim
where d_date in ('2000-06-17','2000-08-22','2000-11-17')))
where d_date in (cast('2000-06-17' as date),cast('2000-08-22' as date),cast('2000-11-17' as date))))
and sr_returned_date_sk = d_date_sk
group by item.i_item_id);
$cr_items =
Expand All @@ -30,7 +30,7 @@ $sr_items =
where d_week_seq in
(select d_week_seq
from {{date_dim}} as date_dim
where d_date in ('2000-06-17','2000-08-22','2000-11-17')))
where d_date in (cast('2000-06-17' as date),cast('2000-08-22' as date),cast('2000-11-17' as date))))
and cr_returned_date_sk = d_date_sk
group by item.i_item_id);
$wr_items =
Expand All @@ -46,7 +46,7 @@ $wr_items =
where d_week_seq in
(select d_week_seq
from {{date_dim}} as date_dim
where d_date in ('2000-06-17','2000-08-22','2000-11-17')))
where d_date in (cast('2000-06-17' as date),cast('2000-08-22' as date),cast('2000-11-17' as date))))
and wr_returned_date_sk = d_date_sk
group by item.i_item_id);
-- start query 1 in stream 0 using template query83.tpl and seed 1930872976
Expand Down