-
Notifications
You must be signed in to change notification settings - Fork 577
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 xx/lifetime
- Loading branch information
Showing
56 changed files
with
2,471 additions
and
390 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,35 @@ sqllogictest -p 4566 -d dev -e postgres-extended './e2e_test/extended_query/**/* | |
echo "--- Kill cluster" | ||
cargo make ci-kill | ||
|
||
if [[ "$RUN_COMPACTION" -eq "1" ]]; then | ||
echo "--- e2e, ci-compaction-test, nexmark_q7" | ||
cargo make clean-data | ||
cargo make ci-start ci-compaction-test | ||
# Please make sure the regression is expected before increasing the timeout. | ||
sqllogictest -p 4566 -d dev './e2e_test/compaction/ingest_rows.slt' | ||
|
||
# We should ingest about 100 version deltas before the test | ||
echo "--- Wait for data ingestion" | ||
# Poll the current version id until we have around 100 version deltas | ||
delta_log_cnt=0 | ||
while [ $delta_log_cnt -le 95 ] | ||
do | ||
delta_log_cnt="$(./risedev ctl hummock list-version | grep -w '^ *id:' | grep -o '[0-9]\+' | head -n 1)" | ||
echo "Current version $delta_log_cnt" | ||
sleep 5 | ||
done | ||
|
||
echo "--- Pause source and disable commit new epochs" | ||
./risedev ctl meta pause | ||
./risedev ctl hummock disable-commit-epoch | ||
|
||
echo "--- Start to run compaction test" | ||
cargo run -r --bin compaction-test -- --ci-mode true --state-store hummock+minio://hummockadmin:[email protected]:9301/hummock001 | ||
|
||
echo "--- Kill cluster" | ||
cargo make ci-kill | ||
fi | ||
|
||
if [[ "$RUN_SQLSMITH" -eq "1" ]]; then | ||
echo "--- e2e, ci-3cn-1fe, fuzzing" | ||
buildkite-agent artifact download sqlsmith-"$profile" target/debug/ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
statement ok | ||
CREATE SOURCE person | ||
(id INTEGER, name VARCHAR, "email_address" VARCHAR, "credit_card" VARCHAR, city VARCHAR, state VARCHAR, "date_time" TIMESTAMP) | ||
with ( | ||
connector = 'nexmark', | ||
nexmark.table.type = 'Person', | ||
nexmark.split.num = '12', | ||
nexmark.min.event.gap.in.ns = '0' | ||
) ROW FORMAT JSON; | ||
|
||
statement ok | ||
CREATE SOURCE auction (id INTEGER, "item_name" VARCHAR, description VARCHAR, "initial_bid" INTEGER, reserve INTEGER, "date_time" TIMESTAMP, expires TIMESTAMP, seller INTEGER, category INTEGER) | ||
with ( | ||
connector = 'nexmark', | ||
nexmark.table.type = 'Auction', | ||
nexmark.split.num = '12', | ||
nexmark.min.event.gap.in.ns = '0' | ||
) ROW FORMAT JSON; | ||
|
||
statement ok | ||
CREATE SOURCE bid (auction INTEGER, bidder INTEGER, price INTEGER, "date_time" TIMESTAMP) | ||
with ( | ||
connector = 'nexmark', | ||
nexmark.table.type = 'Bid', | ||
nexmark.split.num = '12', | ||
nexmark.min.event.gap.in.ns = '0' | ||
) ROW FORMAT JSON; | ||
|
||
statement ok | ||
CREATE MATERIALIZED VIEW nexmark_q7 AS | ||
SELECT | ||
B.auction, | ||
B.price, | ||
B.bidder, | ||
B.date_time | ||
FROM | ||
bid B | ||
JOIN ( | ||
SELECT | ||
MAX(price) AS maxprice, | ||
window_end as date_time | ||
FROM | ||
TUMBLE(bid, date_time, INTERVAL '10' SECOND) | ||
GROUP BY | ||
window_end | ||
) B1 ON B.price = B1.maxprice | ||
WHERE | ||
B.date_time BETWEEN B1.date_time - INTERVAL '10' SECOND | ||
AND B1.date_time; |
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.