-
Notifications
You must be signed in to change notification settings - Fork 600
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 xxchan/multiple-scan-node
- Loading branch information
Showing
34 changed files
with
442 additions
and
297 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
query IIITTT rowsort | ||
select * from nexmark_q10; | ||
---- | ||
1000 1001 499920 2015-07-15 00:00:01.001 2015-07-15 12:00 | ||
1000 1007 12655 2015-07-15 00:00:01.001 2015-07-15 12:00 | ||
1012 1003 19269 2015-07-15 00:00:02.001 2015-07-15 12:00 | ||
1000 1001 43672280 2015-07-15 00:03:00.001 2015-07-15 12:03 | ||
1000 1010 235 2015-07-15 00:00:04.001 2015-07-15 12:00 | ||
1007 1001 242 2015-07-15 00:00:05.002 2015-07-15 12:00 | ||
1012 1001 71083760 2015-07-15 00:00:06.002 2015-07-15 12:00 | ||
1009 1001 209960 2015-07-15 00:00:07.002 2015-07-15 12:00 | ||
1003 1001 89027544 2015-07-15 00:00:08.002 2015-07-15 12:00 | ||
1000 1002 322 2015-07-15 00:00:09.002 2015-07-15 12:00 | ||
1000 1004 2349 2015-07-15 00:00:10.003 2015-07-15 12:00 | ||
1011 1001 5255 2015-07-15 00:00:11.003 2015-07-15 12:00 | ||
1000 1001 13982877 2015-07-15 00:00:13.003 2015-07-15 12:00 | ||
1001 1001 84935 2015-07-15 00:00:14.003 2015-07-15 12:00 | ||
1000 1001 28676694 2015-07-15 00:00:15.003 2015-07-15 12:00 | ||
1000 1001 1930913 2015-07-15 00:00:16.004 2015-07-15 12:00 | ||
1000 1001 567581 2015-07-15 00:00:16.004 2015-07-15 12:00 | ||
1010 1001 213 2015-07-15 00:00:20.004 2015-07-15 12:00 | ||
1006 1001 21659600 2015-07-15 00:00:21.004 2015-07-15 12:00 | ||
1012 1001 170060 2015-07-15 00:00:22.004 2015-07-15 12:00 | ||
1010 1002 2092 2015-07-15 00:00:23.005 2015-07-15 12:00 |
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,8 @@ | ||
query IIRTT rowsort | ||
SELECT * FROM nexmark_q14; | ||
---- | ||
1000 1001 39654430.240 nightTime 2015-07-15 00:03:00.001 | ||
1000 1001 12696452.316 nightTime 2015-07-15 00:00:13.003 | ||
1000 1001 26038438.152 nightTime 2015-07-15 00:00:15.003 | ||
1000 1001 1753269.004 nightTime 2015-07-15 00:00:16.004 | ||
1006 1001 19666916.800 nightTime 2015-07-15 00:00:21.004 |
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 @@ | ||
statement ok | ||
CREATE MATERIALIZED VIEW nexmark_q10 AS | ||
SELECT auction, bidder, price, dateTime, TO_CHAR(dateTime, 'YYYY-MM-DD') as date, TO_CHAR(dateTime, 'HH:MI') as time FROM bid; |
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,24 @@ | ||
statement ok | ||
CREATE MATERIALIZED VIEW nexmark_q14 AS | ||
SELECT | ||
auction, | ||
bidder, | ||
0.908 * price as price, | ||
CASE | ||
WHEN | ||
extract(hour from dateTime) >= 8 AND | ||
extract(hour from dateTime) <= 18 | ||
THEN 'dayTime' | ||
WHEN | ||
extract(hour from dateTime) <= 6 OR | ||
extract(hour from dateTime) >= 20 | ||
THEN 'nightTime' | ||
ELSE 'otherTime' | ||
END AS bidTimeType, | ||
dateTime | ||
-- extra | ||
-- TODO: count_char is an UDF, add it back when we support similar functionality. | ||
-- https://github.com/nexmark/nexmark/blob/master/nexmark-flink/src/main/java/com/github/nexmark/flink/udf/CountChar.java | ||
-- count_char(extra, 'c') AS c_counts | ||
FROM bid | ||
WHERE 0.908 * price > 1000000 AND 0.908 * price < 50000000; |
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
Oops, something went wrong.