-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into siyuan/cdc-backfill-pg
- Loading branch information
Showing
155 changed files
with
3,658 additions
and
1,058 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
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 |
---|---|---|
@@ -1,11 +1,27 @@ | ||
# This file is generated by `gen.py`. Do not edit it manually! | ||
|
||
statement ok | ||
SET RW_IMPLICIT_FLUSH TO true; | ||
|
||
include ./basic/mod.slt.part | ||
include ./rank_func/mod.slt.part | ||
include ./expr_in_win_func/mod.slt.part | ||
include ./agg_in_win_func/mod.slt.part | ||
include ./opt_agg_then_join/mod.slt.part | ||
include ./with_filter/mod.slt.part | ||
set rw_implicit_flush = true; | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = full; | ||
|
||
include ./run_all.slt.part | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = recent; | ||
|
||
include ./run_all.slt.part | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = recent_first_n; | ||
|
||
include ./run_all.slt.part | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = recent_last_n; | ||
|
||
include ./run_all.slt.part | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = default; |
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 @@ | ||
# This file is generated by `gen.py`. Do not edit it manually! | ||
|
||
include ./basic/mod.slt.part | ||
include ./rank_func/mod.slt.part | ||
include ./expr_in_win_func/mod.slt.part | ||
include ./agg_in_win_func/mod.slt.part | ||
include ./opt_agg_then_join/mod.slt.part | ||
include ./with_filter/mod.slt.part |
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 |
---|---|---|
@@ -1,11 +1,27 @@ | ||
# This file is generated by `gen.py`. Do not edit it manually! | ||
|
||
statement ok | ||
SET RW_IMPLICIT_FLUSH TO true; | ||
|
||
include ./basic/mod.slt.part | ||
include ./rank_func/mod.slt.part | ||
include ./expr_in_win_func/mod.slt.part | ||
include ./agg_in_win_func/mod.slt.part | ||
include ./opt_agg_then_join/mod.slt.part | ||
include ./with_filter/mod.slt.part | ||
set rw_implicit_flush = true; | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = full; | ||
|
||
include ./run_all.slt.part | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = recent; | ||
|
||
include ./run_all.slt.part | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = recent_first_n; | ||
|
||
include ./run_all.slt.part | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = recent_last_n; | ||
|
||
include ./run_all.slt.part | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = default; |
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 @@ | ||
# This file is generated by `gen.py`. Do not edit it manually! | ||
|
||
include ./basic/mod.slt.part | ||
include ./rank_func/mod.slt.part | ||
include ./expr_in_win_func/mod.slt.part | ||
include ./agg_in_win_func/mod.slt.part | ||
include ./opt_agg_then_join/mod.slt.part | ||
include ./with_filter/mod.slt.part |
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 |
---|---|---|
@@ -1,9 +1,25 @@ | ||
statement ok | ||
SET RW_IMPLICIT_FLUSH TO true; | ||
|
||
include ./basic/mod.slt.part | ||
include ./rank_func/mod.slt.part | ||
include ./expr_in_win_func/mod.slt.part | ||
include ./agg_in_win_func/mod.slt.part | ||
include ./opt_agg_then_join/mod.slt.part | ||
include ./with_filter/mod.slt.part | ||
set rw_implicit_flush = true; | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = full; | ||
|
||
include ./run_all.slt.part | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = recent; | ||
|
||
include ./run_all.slt.part | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = recent_first_n; | ||
|
||
include ./run_all.slt.part | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = recent_last_n; | ||
|
||
include ./run_all.slt.part | ||
|
||
statement ok | ||
set rw_streaming_over_window_cache_policy = default; |
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,6 @@ | ||
include ./basic/mod.slt.part | ||
include ./rank_func/mod.slt.part | ||
include ./expr_in_win_func/mod.slt.part | ||
include ./agg_in_win_func/mod.slt.part | ||
include ./opt_agg_then_join/mod.slt.part | ||
include ./with_filter/mod.slt.part |
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,25 @@ | ||
# Demo: Sinking to Delta Lake | ||
|
||
In this demo, we will create an append-only source via our datagen source, | ||
and sink the data generated from source to the downstream delta lake table | ||
stored on minio. | ||
|
||
1. Launch the cluster via docker compose | ||
``` | ||
docker compose up -d | ||
``` | ||
|
||
2. Create a delta lake table on minio | ||
``` | ||
docker compose exec minio-0 mkdir /data/deltalake | ||
docker compose exec spark bash /spark-script/run-sql-file.sh create-table | ||
``` | ||
|
||
3. Execute the SQL queries in sequence: | ||
- create_source.sql | ||
- create_sink.sql | ||
|
||
4. Query delta lake table. The following command will query the total count of records. | ||
``` | ||
docker compose exec spark bash /spark-script/run-sql-file.sh query-table | ||
``` |
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 @@ | ||
create sink delta_lake_sink from source | ||
with ( | ||
connector = 'deltalake', | ||
type = 'append-only', | ||
force_append_only='true', | ||
location = 's3a://deltalake/delta', | ||
s3.access.key = 'hummockadmin', | ||
s3.secret.key = 'hummockadmin', | ||
s3.endpoint = 'http://minio-0:9301' | ||
); |
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 @@ | ||
CREATE table source (id int, name varchar); | ||
|
||
INSERT into source values (1, 'a'), (2, 'b'), (3, 'c'); |
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,43 @@ | ||
--- | ||
version: "3" | ||
services: | ||
spark: | ||
image: apache/spark:3.3.1 | ||
command: tail -f /dev/null | ||
depends_on: | ||
- minio-0 | ||
volumes: | ||
- "./spark-script:/spark-script" | ||
container_name: spark | ||
risingwave-standalone: | ||
extends: | ||
file: ../../docker/docker-compose.yml | ||
service: risingwave-standalone | ||
etcd-0: | ||
extends: | ||
file: ../../docker/docker-compose.yml | ||
service: etcd-0 | ||
grafana-0: | ||
extends: | ||
file: ../../docker/docker-compose.yml | ||
service: grafana-0 | ||
minio-0: | ||
extends: | ||
file: ../../docker/docker-compose.yml | ||
service: minio-0 | ||
prometheus-0: | ||
extends: | ||
file: ../../docker/docker-compose.yml | ||
service: prometheus-0 | ||
volumes: | ||
compute-node-0: | ||
external: false | ||
etcd-0: | ||
external: false | ||
grafana-0: | ||
external: false | ||
minio-0: | ||
external: false | ||
prometheus-0: | ||
external: false | ||
name: risingwave-compose |
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 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
# build minio dir and create table | ||
docker compose exec minio-0 mkdir /data/deltalake | ||
docker compose exec spark bash /spark-script/run-sql-file.sh create-table |
Oops, something went wrong.