feat: cz-cli task param system, JDBC datasource binding, execute improvements#8
Merged
Conversation
- task content now parses adhocConfigs JSON and returns datasource_id, session_schema_name, ds_type fields for JDBC tasks - task execute auto-resolves datasourceId/sessionSchemaName/dsType from saved adhocConfigs; --datasource and --database flags allow override - SDK ExecuteAdhocParams extended with optional datasourceId, sessionSchemaName, dsType fields passed to /adhoc/execute endpoint - fixes "获取数据源配置异常" error when executing JDBC tasks via CLI Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…or id - --datasource now accepts datasource name or numeric ID (string type) - dsType is auto-resolved via resolveDatasource() when --datasource is provided, fixing "dsType is null" error on new JDBC tasks - export resolveDatasource and ResolvedDatasource from datasource.ts - adhocConfigs parsing moved into execute command scope (was missing) - new JDBC tasks (no saved adhocConfigs) now work with: cz-cli task execute <task> --datasource <name|id> --database <db> Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Add Aurora MySQL (39), Aurora PostgreSQL (40), PolarDB PostgreSQL (48) which are supported by JDBC tasks but were missing from the type map. Also fix PolarDB (19) display name to "PolarDB MySQL" for clarity. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
hellozepp
pushed a commit
that referenced
this pull request
Jun 3, 2026
…er, #9 rerun -y Co-Authored-By: cz-cli <noreply@clickzetta.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR merges the
feat/cz-cli-ts-rewritebranch intomain, including 143 commits of feature work and bug fixes. The changes most relevant to this session are highlighted below.Task Parameter System
task save-content --paramsnow auto-detectsparamType=systemfor built-in system params (bizdate,sys_biz_day,sys_biz_datetime,sys_plan_day,sys_plan_datetime,sys_plan_timestamp,sys_task_id,sys_task_name,sys_task_owner) and time expressions starting with$[task contentnow returnsparams,input_params,output_paramsfields from the raw API responsetask executeauto-loads savedmanualparams as defaults;--param KEY=VALoverrides; warns to stderr when unresolved${placeholders}remain after merge (SQL tasks will fail; Python/Shell silently keep literal strings)JDBC Task Datasource Binding
task contentparsesadhocConfigsand returnsdatasource_id,session_schema_name,ds_typefieldstask executeauto-resolves JDBC datasource config from savedadhocConfigs; new--datasource <name|id>and--database <db>flags for override or new tasks--datasourceaccepts name or numeric ID;dsTypeis auto-resolved via datasource API (fixesdsType is nullerror on new JDBC tasks)Runs Refill
runs refill --from/--todescribe updated to clarifyYYYY-MM-DD(day boundary) vsYYYY-MM-DDTHH:MM:SS(exact datetime for hourly/minutely task backfills)SKILL / Documentation
runs refillrouting hintcz-cli-inner/SKILL.mdwith newexecute,refill,save-contentbehaviorlocale.tstask_contentmessage updated to describeparamsfield andparamTypesemanticsTesting
All changes verified against live ClickZetta Lakehouse environment:
--datasource aliyun_mysql --database clickzetta_authority(new task, name lookup)task contentreturning datasource fieldsruns refilldatetime format behavior