-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into xxh/add-feature-check
- Loading branch information
Showing
334 changed files
with
4,246 additions
and
1,222 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
DROP SINK nexmark_q0_temporal_filter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
CREATE SINK nexmark_q0_temporal_filter | ||
AS | ||
SELECT auction, bidder, price, date_time | ||
FROM bid_filtered | ||
WITH ( connector = 'blackhole', type = 'append-only', force_append_only = 'true'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
DROP SINK nexmark_q1_temporal_filter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
CREATE SINK nexmark_q1_temporal_filter | ||
AS | ||
SELECT auction, | ||
bidder, | ||
0.908 * price as price, | ||
date_time | ||
FROM bid_filtered | ||
WITH ( connector = 'blackhole', type = 'append-only', force_append_only = 'true'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
DROP SINK nexmark_q10_temporal_filter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
CREATE SINK nexmark_q10_temporal_filter AS | ||
SELECT auction, | ||
bidder, | ||
price, | ||
date_time, | ||
TO_CHAR(date_time, 'YYYY-MM-DD') as date, | ||
TO_CHAR(date_time, 'HH:MI') as time | ||
FROM bid_filtered | ||
WITH ( connector = 'blackhole', type = 'append-only', force_append_only = 'true'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
DROP SINK nexmark_q101_temporal_filter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
CREATE SINK nexmark_q101_temporal_filter AS | ||
SELECT | ||
a.id AS auction_id, | ||
a.item_name AS auction_item_name, | ||
b.max_price AS current_highest_bid | ||
FROM auction a | ||
LEFT OUTER JOIN ( | ||
SELECT | ||
b1.auction, | ||
MAX(b1.price) max_price | ||
FROM bid_filtered b1 | ||
GROUP BY b1.auction | ||
) b ON a.id = b.auction | ||
WITH ( connector = 'blackhole', type = 'append-only', force_append_only = 'true'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
DROP SINK nexmark_q102_temporal_filter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
CREATE SINK nexmark_q102_temporal_filter AS | ||
SELECT | ||
a.id AS auction_id, | ||
a.item_name AS auction_item_name, | ||
COUNT(b.auction) AS bid_count | ||
FROM auction a | ||
JOIN bid_filtered b ON a.id = b.auction | ||
GROUP BY a.id, a.item_name | ||
HAVING COUNT(b.auction) >= ( | ||
SELECT COUNT(*) / COUNT(DISTINCT auction) FROM bid_filtered | ||
) | ||
WITH ( connector = 'blackhole', type = 'append-only', force_append_only = 'true'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
DROP SINK nexmark_q103_temporal_filter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
CREATE SINK nexmark_q103_temporal_filter AS | ||
SELECT | ||
a.id AS auction_id, | ||
a.item_name AS auction_item_name | ||
FROM auction a | ||
WHERE a.id IN ( | ||
SELECT b.auction FROM bid_filtered b | ||
GROUP BY b.auction | ||
HAVING COUNT(*) >= 20 | ||
) | ||
WITH ( connector = 'blackhole', type = 'append-only', force_append_only = 'true'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
DROP SINK nexmark_q104_temporal_filter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
CREATE SINK nexmark_q104_temporal_filter AS | ||
SELECT | ||
a.id AS auction_id, | ||
a.item_name AS auction_item_name | ||
FROM auction a | ||
WHERE a.id NOT IN ( | ||
SELECT b.auction FROM bid_filtered b | ||
GROUP BY b.auction | ||
HAVING COUNT(*) < 20 | ||
) | ||
WITH ( connector = 'blackhole', type = 'append-only', force_append_only = 'true'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
DROP SINK nexmark_q105_temporal_filter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
CREATE SINK nexmark_q105_temporal_filter AS | ||
SELECT | ||
a.id AS auction_id, | ||
a.item_name AS auction_item_name, | ||
COUNT(b.auction) AS bid_count | ||
FROM auction a | ||
JOIN bid_filtered b ON a.id = b.auction | ||
GROUP BY a.id, a.item_name | ||
ORDER BY bid_count DESC | ||
LIMIT 1000 | ||
WITH ( connector = 'blackhole', type = 'append-only', force_append_only = 'true'); |
3 changes: 3 additions & 0 deletions
3
ci/scripts/sql/nexmark/q105-without-limit-temporal-filter.drop.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
DROP SINK nexmark_q105_without_limit_temporal_filter; |
11 changes: 11 additions & 0 deletions
11
ci/scripts/sql/nexmark/q105-without-limit-temporal-filter.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
CREATE SINK nexmark_q105_without_limit_temporal_filter AS | ||
SELECT | ||
a.id AS auction_id, | ||
a.item_name AS auction_item_name, | ||
COUNT(b.auction) AS bid_count | ||
FROM auction a | ||
JOIN bid_filtered b ON a.id = b.auction | ||
GROUP BY a.id, a.item_name | ||
WITH ( connector = 'blackhole', type = 'append-only', force_append_only = 'true'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
DROP SINK nexmark_q105_without_limit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
CREATE SINK nexmark_q105_without_limit AS | ||
SELECT | ||
a.id AS auction_id, | ||
a.item_name AS auction_item_name, | ||
COUNT(b.auction) AS bid_count | ||
FROM auction a | ||
JOIN bid b ON a.id = b.auction | ||
GROUP BY a.id, a.item_name | ||
WITH ( connector = 'blackhole', type = 'append-only', force_append_only = 'true'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
DROP SINK nexmark_q106; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
CREATE SINK nexmark_q106 | ||
AS | ||
SELECT | ||
MIN(final) AS min_final | ||
FROM | ||
( | ||
SELECT | ||
auction.id, | ||
MAX(price) AS final | ||
FROM | ||
auction, | ||
bid | ||
WHERE | ||
bid.auction = auction.id | ||
AND bid.date_time BETWEEN auction.date_time AND auction.expires | ||
GROUP BY | ||
auction.id | ||
) | ||
WITH ( connector = 'blackhole', type = 'append-only', force_append_only = 'true'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
-- noinspection SqlResolveForFile | ||
DROP SINK nexmark_q107; |
Oops, something went wrong.