michael_23134
08/11/2025, 6:50 PMmichael_23134
08/11/2025, 6:54 PMyml
source: product__prod_us
target: snowflake__prod
defaults:
mode: incremental
object: sling__product__prod_us.{stream_table}
primary_key:
- id
update_key: updatedAt
streams:
public.comments:
source_options:
batch_size: 500000
chunk_size: 14d # 14 days
target_options:
batch_limit: 500000
select:
- col1
- col2
- col3
- col4
- col5
env:
SLING_CLI_TOKEN: ${SLING_CLI_TOKEN}michael_23134
08/11/2025, 6:55 PMsh
Exception: {"lvl":"info","time":"2025-08-11T17:33:24Z","msg":"Sling CLI | https://slingdata.io"}
{"lvl":"warn","time":"2025-08-11T17:33:24Z","msg":"error validating cli token: illegal base64 data at input byte 8"}
[31mfatal:
~ could not generate chunk ranges: public.comments
invalid or missing token. Please see https://docs.slingdata.io/sling-cli/cli-pro to enable chunking[0m
Sling command failedmichael_23134
08/11/2025, 6:56 PM1.4.16flarco
08/11/2025, 6:56 PMmichael_23134
08/11/2025, 6:57 PMmichael_23134
08/11/2025, 7:41 PMzsh
sling run \
--src-conn product__360_stage_us \
--src-stream "public.comments" \
--tgt-conn ARTICULATE_ANALYTICS_SNOWFLAKE_DEV \
--tgt-object "sling__product__360_stage_us.comments" \
--mode full-refresh \
--primary-key id \
--update-key createdAt \
--select "id,createdAt" \
--batch-size 50000 \
--max-rows 100000 \
--chunk-size 7d
3:37PM WRN could not load connection DUCKDB:
Property value not provided: instance
3:37PM INF Sling CLI | https://slingdata.io
3:37PM INF connecting to source database (postgres)
3:37PM INF connecting to target database (snowflake)
3:37PM INF reading from source database
3:37PM INF writing to target database [mode: full-refresh]
3:37PM INF created table "SLING__PRODUCT__360_STAGE_US"."COMMENTS_TMP"
3:37PM INF streaming data
8s 70,995 10458 r/s 4.8 MB
3:37PM INF created table "SLING__PRODUCT__360_STAGE_US"."COMMENTS"
3:37PM INF inserted 70995 rows into "SLING__PRODUCT__360_STAGE_US"."COMMENTS" in 16 secs [4,192 r/s] [4.8 MB]
3:37PM INF execution succeededflarco
08/11/2025, 7:47 PM--batch-size, --chunk-size and --max-rows are not compatible flags, you'd have to do --src-options '{ batch_size: 50000, chunk_size: 14d }'. You can actually just save your replication file and do sling run -r /path/to/file.yaml -dmichael_23134
08/11/2025, 7:52 PMflarco
08/11/2025, 7:53 PMCLI Pro token validated?flarco
08/11/2025, 7:53 PMmichael_23134
08/11/2025, 7:58 PMSLING_THREADS env var maybe ?
https://cdn.discordapp.com/attachments/1404537384749760544/1404554605907411035/sling_run_-r_test_config.yaml_-d_output.log?ex=689b9ce9&is=689a4b69&hm=0193d5368ca6684da2eba8fc7cced60934b9841222ab9ad93b32409c0eb58d3c&
https://cdn.discordapp.com/attachments/1404537384749760544/1404554606289223750/test_config.yaml?ex=689b9ce9&is=689a4b69&hm=ed41fb493366cc0496d9b17e1002d34df5be37f7de7d5f75e0b75e3daf0d29f4&flarco
08/11/2025, 7:59 PM1.4.4, could you upgrade and try again?flarco
08/11/2025, 7:59 PMsling updatemichael_23134
08/11/2025, 8:00 PMmichael_23134
08/11/2025, 8:01 PMflarco
08/11/2025, 8:01 PMmichael_23134
08/11/2025, 8:01 PMflarco
08/11/2025, 8:01 PMflarco
08/11/2025, 8:02 PMdagster-sling package is managed by the Dagster teamflarco
08/11/2025, 8:02 PMSLING_CLI_TOKEN machine wide?flarco
08/11/2025, 8:03 PMflarco
08/11/2025, 8:04 PMvariables section, see https://docs.slingdata.io/concepts/replication/runtime-variables#definitionflarco
08/11/2025, 8:05 PMSLING_CLI_TOKEN under variables, this should be picked up by slingmichael_23134
08/11/2025, 8:06 PMvariables section a try too 👀 thank you @flarco ! 🙏