Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xxhZs committed Oct 9, 2023
1 parent 51da627 commit 8d799b4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: "3"
services:
compactor-0:
image: "ghcr.io/risingwavelabs/risingwave:${RW_IMAGE_VERSION:-v1.2.0}"
image: "ghcr.io/risingwavelabs/risingwave:git-51da6271ec5e482ab62bb24aac267c45ab2be350"
command:
- compactor-node
- "--listen-addr"
Expand Down Expand Up @@ -37,7 +37,7 @@ services:
timeout: 5s
retries: 5
compute-node-0:
image: "ghcr.io/risingwavelabs/risingwave:${RW_IMAGE_VERSION:-v1.2.0}"
image: "ghcr.io/risingwavelabs/risingwave:git-51da6271ec5e482ab62bb24aac267c45ab2be350"
command:
- compute-node
- "--listen-addr"
Expand Down Expand Up @@ -122,7 +122,7 @@ services:
timeout: 5s
retries: 5
frontend-node-0:
image: "ghcr.io/risingwavelabs/risingwave:${RW_IMAGE_VERSION:-v1.2.0}"
image: "ghcr.io/risingwavelabs/risingwave:git-51da6271ec5e482ab62bb24aac267c45ab2be350"
command:
- frontend-node
- "--listen-addr"
Expand Down Expand Up @@ -179,7 +179,7 @@ services:
timeout: 5s
retries: 5
meta-node-0:
image: "ghcr.io/risingwavelabs/risingwave:${RW_IMAGE_VERSION:-v1.2.0}"
image: "ghcr.io/risingwavelabs/risingwave:git-51da6271ec5e482ab62bb24aac267c45ab2be350"
command:
- meta-node
- "--listen-addr"
Expand Down Expand Up @@ -295,7 +295,7 @@ services:
timeout: 5s
retries: 5
connector-node:
image: ghcr.io/risingwavelabs/risingwave:${RW_IMAGE_VERSION:-v1.2.0}
image: ghcr.io/risingwavelabs/risingwave:git-51da6271ec5e482ab62bb24aac267c45ab2be350
entrypoint: "/risingwave/bin/connector-node/start-service.sh"
ports:
- 50051
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/starrocks-sink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ CREATE table demo_bhv_table(
target_id text,
event_timestamp datetime
) ENGINE=OLAP
PRIMARY KEY(`id`)
DISTRIBUTED BY HASH(`id`) properties("replication_num" = "1");
PRIMARY KEY(`user_id`)
DISTRIBUTED BY HASH(`user_id`) properties("replication_num" = "1");

CREATE USER 'users'@'%' IDENTIFIED BY '123456';
GRANT ALL ON *.* TO 'users'@'%';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM
bhv_mv WITH (
connector = 'starrocks',
type = 'append-only',
starrocks.host = '127.0.0.1',
starrocks.host = 'starrocks-fe',
starrocks.mysqlport = '9030',
starrocks.httpport = '8030',
starrocks.user = 'users',
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/starrocks-sink/upsert/create_sink.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ FROM
bhv_mv WITH (
connector = 'starrocks',
type = 'upsert',
starrocks.host = '127.0.0.1',
starrocks.host = 'starrocks-fe',
starrocks.mysqlport = '9030',
starrocks.httpport = '8030',
starrocks.user = 'users',
starrocks.password = '123456',
starrocks.database = 'demo',
starrocks.table = 'demo_bhv_table',
primary_key = 'id'
primary_key = 'user_id'
);
1 change: 1 addition & 0 deletions src/connector/src/sink/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ macro_rules! for_all_sinks {
{ ElasticSearch, $crate::sink::remote::ElasticSearchSink },
{ Cassandra, $crate::sink::remote::CassandraSink },
{ Doris, $crate::sink::doris::DorisSink },
{ Starrocks, $crate::sink::starrocks::StarrocksSink },
{ Test, $crate::sink::test_sink::TestSink }
}
$(,$arg)*
Expand Down

0 comments on commit 8d799b4

Please sign in to comment.