Closed alberttwong closed 6 months ago
Will take a look
Can you try with interactive=true
for DUCKDB
?
https://docs.slingdata.io/connections/database-connections/duckdb
atwong@Albert-CelerData ~ % duckdb duckdb.db
v0.10.0 20b1486d11
Enter ".help" for usage hints.
D show tables;
┌────────────────────────┐
│ name │
│ varchar │
├────────────────────────┤
│ call_center │
│ catalog_page │
│ catalog_returns │
│ catalog_sales │
│ customer │
│ customer_address │
│ customer_demographics │
│ date_dim │
│ household_demographics │
│ income_band │
│ inventory │
│ item │
│ promotion │
│ reason │
│ ship_mode │
│ store │
│ store_returns │
│ store_sales │
│ time_dim │
│ warehouse │
│ web_page │
│ web_returns │
│ web_sales │
│ web_site │
├────────────────────────┤
│ 24 rows │
└────────────────────────┘
D select count(*) from catalog_page;
┌──────────────┐
│ count_star() │
│ int64 │
├──────────────┤
│ 11718 │
└──────────────┘
D
atwong@Albert-CelerData ~ % cat ~/.sling/env.yaml
# Environment Credentials for Sling CLI
# See https://docs.slingdata.io/sling-cli/environment
connections:
DUCKDB:
type: duckdb
instance: /Users/atwong/duckdb.db
interactive: true
MYSQL:
type: mysql
url: mysql://admin:admin@hw2aq4jfy.cloud-app.celerdata.com:9030/albert
MYSQLLOCAL:
type: mysql
url: mysql://root:password@localhost:3306/employees
POSTGRESLOCAL:
type: postgres
url: postgresql://postgres:postgres@localhost:5432/dvdrental?sslmode=disable
STARROCKSLOCAL:
type: starrocks
fe_url: http://localhost:8030
url: starrocks://root:@localhost:9030/
variables: {}
Weird... will take a look
atwong@Albert-CelerData ~ % sling run -d -r ./replication.yaml
2024-03-12 09:53:39 DBG processing wildcards for DUCKDB
2024-03-12 09:53:39 DBG getting tables for main.*
2024-03-12 09:53:39 DBG csv stream provided is empty
2024-03-12 09:53:39 INF Sling Replication [0 streams] | DUCKDB -> STARROCKSLOCAL
2024-03-12 09:53:39 INF Sling Replication Completed in 0 secs | DUCKDB -> STARROCKSLOCAL | 0 Successes | 0 Failures
this happens when I still am logged in with duckdb.
atwong@Albert-CelerData ~ % cat replication.yaml
source: DUCKDB
target: STARROCKSLOCAL
# default config options which apply to all streams
defaults:
mode: full-refresh
object: main.{stream_table}
streams:
main.*:
atwong@Albert-CelerData ~ % sling run -d -r ./replication.yaml
2024-03-12 09:55:00 DBG processing wildcards for DUCKDB
2024-03-12 09:55:00 DBG getting tables for main.*
2024-03-12 09:55:00 INF Sling Replication [24 streams] | DUCKDB -> STARROCKSLOCAL
2024-03-12 09:55:00 INF [1 / 24] running stream "main"."call_center"
2024-03-12 09:55:00 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:00 DBG type is db-db
2024-03-12 09:55:00 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:00 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:00 INF connecting to source database (duckdb)
2024-03-12 09:55:00 INF connecting to target database (starrocks)
2024-03-12 09:55:00 INF reading from source database
2024-03-12 09:55:00 DBG csv stream provided is empty
2024-03-12 09:55:00 INF execution failed
2024-03-12 09:55:00 INF [2 / 24] running stream "main"."catalog_page"
2024-03-12 09:55:00 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:00 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:00 DBG type is db-db
2024-03-12 09:55:00 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:00 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:00 INF connecting to source database (duckdb)
2024-03-12 09:55:00 INF connecting to target database (starrocks)
2024-03-12 09:55:00 INF reading from source database
2024-03-12 09:55:00 DBG csv stream provided is empty
2024-03-12 09:55:00 INF execution failed
2024-03-12 09:55:01 INF [3 / 24] running stream "main"."catalog_returns"
2024-03-12 09:55:01 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:01 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:01 DBG type is db-db
2024-03-12 09:55:01 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:01 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:01 INF connecting to source database (duckdb)
2024-03-12 09:55:01 INF connecting to target database (starrocks)
2024-03-12 09:55:01 INF reading from source database
2024-03-12 09:55:01 DBG csv stream provided is empty
2024-03-12 09:55:01 INF execution failed
2024-03-12 09:55:01 INF [4 / 24] running stream "main"."catalog_sales"
2024-03-12 09:55:01 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:01 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:01 DBG type is db-db
2024-03-12 09:55:01 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:01 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:01 INF connecting to source database (duckdb)
2024-03-12 09:55:01 INF connecting to target database (starrocks)
2024-03-12 09:55:01 INF reading from source database
2024-03-12 09:55:01 DBG csv stream provided is empty
2024-03-12 09:55:01 INF execution failed
2024-03-12 09:55:01 INF [5 / 24] running stream "main"."customer"
2024-03-12 09:55:01 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:01 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:01 DBG type is db-db
2024-03-12 09:55:01 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:01 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:01 INF connecting to source database (duckdb)
2024-03-12 09:55:01 INF connecting to target database (starrocks)
2024-03-12 09:55:01 INF reading from source database
2024-03-12 09:55:01 DBG csv stream provided is empty
2024-03-12 09:55:01 INF execution failed
2024-03-12 09:55:01 INF [6 / 24] running stream "main"."customer_address"
2024-03-12 09:55:01 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:01 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:01 DBG type is db-db
2024-03-12 09:55:01 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:01 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:01 INF connecting to source database (duckdb)
2024-03-12 09:55:01 INF connecting to target database (starrocks)
2024-03-12 09:55:01 INF reading from source database
2024-03-12 09:55:01 DBG csv stream provided is empty
2024-03-12 09:55:01 INF execution failed
2024-03-12 09:55:01 INF [7 / 24] running stream "main"."customer_demographics"
2024-03-12 09:55:01 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:01 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:01 DBG type is db-db
2024-03-12 09:55:01 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:01 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:01 INF connecting to source database (duckdb)
2024-03-12 09:55:01 INF connecting to target database (starrocks)
2024-03-12 09:55:01 INF reading from source database
2024-03-12 09:55:01 DBG csv stream provided is empty
2024-03-12 09:55:01 INF execution failed
2024-03-12 09:55:01 INF [8 / 24] running stream "main"."date_dim"
2024-03-12 09:55:01 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:01 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:01 DBG type is db-db
2024-03-12 09:55:01 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:01 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:01 INF connecting to source database (duckdb)
2024-03-12 09:55:02 INF connecting to target database (starrocks)
2024-03-12 09:55:02 INF reading from source database
2024-03-12 09:55:02 DBG csv stream provided is empty
2024-03-12 09:55:02 INF execution failed
2024-03-12 09:55:02 INF [9 / 24] running stream "main"."household_demographics"
2024-03-12 09:55:02 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:02 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:02 DBG type is db-db
2024-03-12 09:55:02 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:02 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:02 INF connecting to source database (duckdb)
2024-03-12 09:55:02 INF connecting to target database (starrocks)
2024-03-12 09:55:02 INF reading from source database
2024-03-12 09:55:02 DBG csv stream provided is empty
2024-03-12 09:55:02 INF execution failed
2024-03-12 09:55:02 INF [10 / 24] running stream "main"."income_band"
2024-03-12 09:55:02 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:02 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:02 DBG type is db-db
2024-03-12 09:55:02 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:02 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:02 INF connecting to source database (duckdb)
2024-03-12 09:55:02 INF connecting to target database (starrocks)
2024-03-12 09:55:02 INF reading from source database
2024-03-12 09:55:02 DBG csv stream provided is empty
2024-03-12 09:55:02 INF execution failed
2024-03-12 09:55:02 INF [11 / 24] running stream "main"."inventory"
2024-03-12 09:55:02 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:02 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:02 DBG type is db-db
2024-03-12 09:55:02 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:02 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:02 INF connecting to source database (duckdb)
2024-03-12 09:55:02 INF connecting to target database (starrocks)
2024-03-12 09:55:02 INF reading from source database
2024-03-12 09:55:02 DBG csv stream provided is empty
2024-03-12 09:55:02 INF execution failed
2024-03-12 09:55:02 INF [12 / 24] running stream "main"."item"
2024-03-12 09:55:02 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:02 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:02 DBG type is db-db
2024-03-12 09:55:02 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:02 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:02 INF connecting to source database (duckdb)
2024-03-12 09:55:02 INF connecting to target database (starrocks)
2024-03-12 09:55:02 INF reading from source database
2024-03-12 09:55:02 DBG csv stream provided is empty
2024-03-12 09:55:02 INF execution failed
2024-03-12 09:55:02 INF [13 / 24] running stream "main"."promotion"
2024-03-12 09:55:02 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:02 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:02 DBG type is db-db
2024-03-12 09:55:02 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:02 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:02 INF connecting to source database (duckdb)
2024-03-12 09:55:02 INF connecting to target database (starrocks)
2024-03-12 09:55:02 INF reading from source database
2024-03-12 09:55:03 DBG csv stream provided is empty
2024-03-12 09:55:03 INF execution failed
2024-03-12 09:55:03 INF [14 / 24] running stream "main"."reason"
2024-03-12 09:55:03 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:03 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:03 DBG type is db-db
2024-03-12 09:55:03 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:03 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:03 INF connecting to source database (duckdb)
2024-03-12 09:55:03 INF connecting to target database (starrocks)
2024-03-12 09:55:03 INF reading from source database
2024-03-12 09:55:03 DBG csv stream provided is empty
2024-03-12 09:55:03 INF execution failed
2024-03-12 09:55:03 INF [15 / 24] running stream "main"."ship_mode"
2024-03-12 09:55:03 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:03 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:03 DBG type is db-db
2024-03-12 09:55:03 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:03 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:03 INF connecting to source database (duckdb)
2024-03-12 09:55:03 INF connecting to target database (starrocks)
2024-03-12 09:55:03 INF reading from source database
2024-03-12 09:55:03 DBG csv stream provided is empty
2024-03-12 09:55:03 INF execution failed
2024-03-12 09:55:03 INF [16 / 24] running stream "main"."store"
2024-03-12 09:55:03 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:03 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:03 DBG type is db-db
2024-03-12 09:55:03 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:03 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:03 INF connecting to source database (duckdb)
2024-03-12 09:55:03 INF connecting to target database (starrocks)
2024-03-12 09:55:03 INF reading from source database
2024-03-12 09:55:03 DBG csv stream provided is empty
2024-03-12 09:55:03 INF execution failed
2024-03-12 09:55:03 INF [17 / 24] running stream "main"."store_returns"
2024-03-12 09:55:03 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:03 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:03 DBG type is db-db
2024-03-12 09:55:03 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:03 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:03 INF connecting to source database (duckdb)
2024-03-12 09:55:03 INF connecting to target database (starrocks)
2024-03-12 09:55:03 INF reading from source database
2024-03-12 09:55:03 DBG csv stream provided is empty
2024-03-12 09:55:03 INF execution failed
2024-03-12 09:55:03 INF [18 / 24] running stream "main"."store_sales"
2024-03-12 09:55:03 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:03 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:03 DBG type is db-db
2024-03-12 09:55:03 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:03 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:03 INF connecting to source database (duckdb)
2024-03-12 09:55:03 INF connecting to target database (starrocks)
2024-03-12 09:55:03 INF reading from source database
2024-03-12 09:55:03 DBG csv stream provided is empty
2024-03-12 09:55:03 INF execution failed
2024-03-12 09:55:03 INF [19 / 24] running stream "main"."time_dim"
2024-03-12 09:55:03 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:03 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:03 DBG type is db-db
2024-03-12 09:55:03 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:03 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:03 INF connecting to source database (duckdb)
2024-03-12 09:55:04 INF connecting to target database (starrocks)
2024-03-12 09:55:04 INF reading from source database
2024-03-12 09:55:04 DBG csv stream provided is empty
2024-03-12 09:55:04 INF execution failed
2024-03-12 09:55:04 INF [20 / 24] running stream "main"."warehouse"
2024-03-12 09:55:04 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:04 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:04 DBG type is db-db
2024-03-12 09:55:04 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:04 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:04 INF connecting to source database (duckdb)
2024-03-12 09:55:04 INF connecting to target database (starrocks)
2024-03-12 09:55:04 INF reading from source database
2024-03-12 09:55:04 DBG csv stream provided is empty
2024-03-12 09:55:04 INF execution failed
2024-03-12 09:55:04 INF [21 / 24] running stream "main"."web_page"
2024-03-12 09:55:04 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:04 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:04 DBG type is db-db
2024-03-12 09:55:04 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:04 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:04 INF connecting to source database (duckdb)
2024-03-12 09:55:04 INF connecting to target database (starrocks)
2024-03-12 09:55:04 INF reading from source database
2024-03-12 09:55:04 DBG csv stream provided is empty
2024-03-12 09:55:04 INF execution failed
2024-03-12 09:55:04 INF [22 / 24] running stream "main"."web_returns"
2024-03-12 09:55:04 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:04 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:04 DBG type is db-db
2024-03-12 09:55:04 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:04 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:04 INF connecting to source database (duckdb)
2024-03-12 09:55:04 INF connecting to target database (starrocks)
2024-03-12 09:55:04 INF reading from source database
2024-03-12 09:55:04 DBG csv stream provided is empty
2024-03-12 09:55:04 INF execution failed
2024-03-12 09:55:04 INF [23 / 24] running stream "main"."web_sales"
2024-03-12 09:55:04 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:04 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:04 DBG type is db-db
2024-03-12 09:55:04 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:04 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:04 INF connecting to source database (duckdb)
2024-03-12 09:55:04 INF connecting to target database (starrocks)
2024-03-12 09:55:04 INF reading from source database
2024-03-12 09:55:04 DBG csv stream provided is empty
2024-03-12 09:55:04 INF execution failed
2024-03-12 09:55:04 INF [24 / 24] running stream "main"."web_site"
2024-03-12 09:55:04 DBG could not insert execution into local .sling.db. UNIQUE constraint failed: executions.exec_id
2024-03-12 09:55:04 DBG Sling version: 1.1.13 (darwin arm64)
2024-03-12 09:55:04 DBG type is db-db
2024-03-12 09:55:04 DBG using source options: {"empty_as_null":true,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1}
2024-03-12 09:55:04 DBG using target options: {"datetime_format":"auto","max_decimals":-1,"use_bulk":true,"add_new_columns":true,"column_casing":"source"}
2024-03-12 09:55:04 INF connecting to source database (duckdb)
2024-03-12 09:55:04 INF connecting to target database (starrocks)
2024-03-12 09:55:04 INF reading from source database
2024-03-12 09:55:04 DBG csv stream provided is empty
2024-03-12 09:55:04 INF execution failed
2024-03-12 09:55:05 INF Sling Replication Completed in 4 secs | DUCKDB -> STARROCKSLOCAL | 0 Successes | 24 Failures
fatal:
--- sling_cli.go:384 func1 ---
--- sling_cli.go:430 cliInit ---
--- cli.go:284 CliProcess ---
~ failure running replication (see docs @ https://docs.slingdata.io/sling-cli)
--- sling_logic.go:195 processRun ---
--------------------------- "main"."call_center" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."call_center". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."catalog_page" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."catalog_page". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."catalog_returns" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."catalog_returns". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."catalog_sales" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."catalog_sales". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."customer" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."customer". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."customer_address" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."customer_address". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."customer_demographics" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."customer_demographics". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."date_dim" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."date_dim". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."household_demographics" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."household_demographics". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."income_band" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."income_band". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."inventory" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."inventory". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."item" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."item". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."promotion" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."promotion". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."reason" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."reason". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."ship_mode" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."ship_mode". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."store" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."store". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."store_returns" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."store_returns". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."store_sales" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."store_sales". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."time_dim" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."time_dim". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."warehouse" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."warehouse". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."web_page" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."web_page". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."web_returns" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."web_returns". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."web_sales" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."web_sales". Perhaps it does not exists, or user does not have read permission.
--------------------------- "main"."web_site" ---------------------------
--- task_run.go:98 func1 ---
--- task_run.go:502 runDbToDb ---
--- task_run_read.go:59 ReadFromDB ---
~ execution failed
--- database.go:1490 GetSQLColumns ---
~ Could not ReadFromDB
--- database.go:1624 GetColumns ---
~ Could not get source columns
--- database.go:1555 GetTableColumns ---
did not find any columns for "main"."web_site". Perhaps it does not exists, or user does not have read permission.
I tried with and without FE URL
atwong@Albert-CelerData ~ % cat ~/.sling/env.yaml
# Environment Credentials for Sling CLI
# See https://docs.slingdata.io/sling-cli/environment
connections:
DUCKDB:
type: duckdb
instance: /Users/atwong/duckdb.db
interactive: true
MYSQL:
type: mysql
url: mysql://admin:admin@hw2aq4jfy.cloud-app.celerdata.com:9030/albert
MYSQLLOCAL:
type: mysql
url: mysql://root:password@localhost:3306/employees
POSTGRESLOCAL:
type: postgres
url: postgresql://postgres:postgres@localhost:5432/dvdrental?sslmode=disable
STARROCKSLOCAL:
type: starrocks
# fe_url: http://localhost:8030
url: starrocks://root:@localhost:9030/
variables: {}
Fixed. See https://github.com/slingdata-io/sling-cli/issues/216#issuecomment-1994407872 Closing
confirmed to work
atwong@Albert-CelerData ~ % cat ~/.sling/env.yaml
# Environment Credentials for Sling CLI
# See https://docs.slingdata.io/sling-cli/environment
connections:
DUCKDB:
type: duckdb
instance: /Users/atwong/duckdb.db
# interactive: true
MYSQL:
type: mysql
url: mysql://admin:admin@hw2aq4jfy.cloud-app.celerdata.com:9030/albert
MYSQLLOCAL:
type: mysql
url: mysql://root:password@localhost:3306/employees
POSTGRESLOCAL:
type: postgres
url: postgresql://postgres:postgres@localhost:5432/dvdrental?sslmode=disable
STARROCKSLOCAL:
type: starrocks
fe_url: http://localhost:8030
url: starrocks://root:@localhost:9030/
variables: {}
atwong@Albert-CelerData ~ % cat replication.yaml
source: DUCKDB
target: STARROCKSLOCAL
# default config options which apply to all streams
defaults:
mode: full-refresh
object: 'main.{stream_table}'
source_options:
limit: 50000
streams:
main.*:
Using https://atwong.medium.com/easiest-way-to-load-tpc-ds-data-into-postgresql-1ebd83871a07 to generate TPC DS data in Duckdb.
this generate 1 GB of TPC DS data.