@clickzetta/cz-cli-darwin-x64 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/cz-cli CHANGED
Binary file
@@ -35,6 +35,50 @@ You have no direct Lakehouse access. Always delegate via cz-cli.
35
35
  - Create offline batch sync tasks with Cron scheduling — single-table (task_type=10) or multi-table (task_type=291)
36
36
  - Manage sync task lifecycle: start, stop, offline, backfill, add tables, re-sync individual tables
37
37
 
38
+ #### Offline integration sync (`cz-cli task integration`)
39
+ Configure offline data-integration (batch sync) task content. Create the task skeleton first, then configure its content:
40
+
41
+ ```bash
42
+ # 1) Create the task skeleton (single-table → INTEGRATION; multi/whole-db → MULTI_DI)
43
+ cz-cli task create my_sync --type INTEGRATION
44
+ cz-cli task create my_db_sync --type MULTI_DI
45
+
46
+ # 2) Configure content
47
+ # single-table: creates the sink table from the source DDL + generates a default field mapping
48
+ cz-cli task integration setup my_sync --sync-type single \
49
+ --source-datasource my_mysql --source-schema app --source-table orders \
50
+ --sink-datasource lakehouse --sink-schema public --sink-table orders
51
+ # multi-table: one job per table (no table creation; the running task creates them)
52
+ cz-cli task integration setup my_db_sync --sync-type multi \
53
+ --source-datasource my_mysql --source-schema app --source-tables orders,users,items \
54
+ --sink-datasource lakehouse --sink-schema public
55
+ # whole-db: mirror entire databases
56
+ cz-cli task integration setup my_db_sync --sync-type whole_db \
57
+ --source-datasource my_mysql --source-schema app --source-dbs app,inventory \
58
+ --sink-datasource lakehouse --sink-schema public
59
+
60
+ # 3) Inspect current config (read before editing)
61
+ cz-cli task integration show my_sync
62
+
63
+ # 4) Edit field mapping / sync params (applied & saved immediately — no UI needed)
64
+ # single-table — column-mapping is a FULL replace (include every row to keep):
65
+ cz-cli task integration edit my_sync \
66
+ --column-mapping '[{"source":"id","sink":"id"},{"source":"name","sink":"name"}]' \
67
+ --parallelism 4 --error-limit -1 --m-bytes 8 --split-pk id --where "dt = bizdate"
68
+ # multi/whole-db — table mapping + write modes + naming rules + grouping strategy:
69
+ cz-cli task integration edit my_db_sync \
70
+ --table-mapping '[{"source":"app.orders","sink":"public.orders"}]' \
71
+ --pk-write-mode OVERWRITE --non-pk-write-mode OVERWRITE \
72
+ --schema-rule '{SOURCE_DATABASE}' --table-rule '{SOURCE_DATABASE}_{SOURCE_TABLE}' \
73
+ --parallelism 4 --batch-size 4 --connections 4
74
+ ```
75
+
76
+ Notes:
77
+ - `setup` does NOT change field mapping/params on an existing task — use `edit`. `edit` does NOT change source/sink tables — use `setup`.
78
+ - Datasource types are auto-resolved from the datasource name/ID; no need to pass type codes.
79
+ - **`--where` with date/time scheduling params** (e.g. `bizdate`, `$[yyyyMMdd]`, monthly partitions): look up the correct Studio scheduling-parameter syntax first (`cz-cli ai-guide` / docs). Do NOT invent parameter formats.
80
+ - Integration tasks must execute on an **INTEGRATION-type vcluster** — pick one via the vcluster list, not the default/GENERAL vc.
81
+
38
82
  ### Data Ingestion Pipelines
39
83
  - Create continuous OSS/S3/COS ingest PIPE (LIST_PURGE scan mode or EVENT_NOTIFICATION mode)
40
84
  - Create continuous Kafka ingest PIPE using READ_KAFKA function
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickzetta/cz-cli-darwin-x64",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "cz-cli binary for macOS x64 (Intel)",
5
5
  "os": [
6
6
  "darwin"