https://slingdata.io logo
Do the `file_max_bytes` and
# sling-help
c
Do the
file_max_bytes
and
compression
options not work when specified as defaults? I'm using an env variable to specify LOCAL_PARQUET, but the max bytes and compression are in the yaml file. Can default not apply to env vars?
Copy code
source: MYSQL
target: LOCAL_PARQUET
defaults:
  mode: full-refresh
  object: /data/exports/{stream_schema}/2024-09-01/{stream_table}/{part_year}
  target_options:
    batch_limit: 50000
    file_max_bytes: 104857600
    format: parquet
    compression: snappy
streams: ...
f
hey @Colin , when you run with debug logging, it should display the options registered, such as below:
Copy code
2025-10-25 07:43:48 DBG using: {"columns":null,"mode":"full-refresh","select":null,"transforms":null}
2025-10-25 07:43:48 DBG using source options: {"empty_as_null":false,"datetime_format":"AUTO","max_decimals":-1}
2025-10-25 07:43:48 DBG using target options: {"datetime_format":"auto","file_max_rows":0,"max_decimals":-1,"use_bulk":true,"add_new_columns":true,"adjust_column_type":false,"column_casing":"normalize"}
Can you confirm it's not showing there?
c
Hey @flarco thanks for all of your support on here, I'm sooo close... On a few of my biggest streams I got this error. MySQL logs do not indicate any server-side errors.. Any suggestions?
Copy code
falcon.sales_flat_order_address              | 10:38PM INF writing to target database [mode: incremental]
falcon.sales_flat_order_address              | 10:39PM INF created table "main"."order_address_sling_duckdb_tmp"
falcon.sales_flat_order_address              | 10:39PM INF streaming data
falcon.sales_flat_order_address              | [mysql] 2025/11/08 00:13:59 packets.go:94 unexpected EOF
falcon.sales_flat_order_address              | 12:14AM INF execution failed
falcon.sales_flat_order_address              |
falcon.sales_flat_order_address              | fatal:
falcon.sales_flat_order_address              | ~ failure running replication (see docs @ https://docs.slingdata.io/sling-cli)
falcon.sales_flat_order_address              | --------------------------- falcon.sales_flat_order_address ---------------------------
falcon.sales_flat_order_address              | ~ Could not WriteToDb
falcon.sales_flat_order_address              | ~ error after row iteration
falcon.sales_flat_order_address              | invalid connection
falcon.sales_flat_order_address              |
falcon.sales_flat_order_address              |
falcon.sales_flat_order_address              | ~ error after row iteration
falcon.sales_flat_order_address              | invalid connection
f
@Colin sent you email