Skip to main content
Version: Next

job

Synopsis​

starlake job [options]

Description​

Execute a SQL or Python transformation task. Starflow resolves dependencies, compiles queries with variable substitutions, and writes results to the target table. Use --recursive for upstream dependencies. See Transform Guide.

Parameters​

ParameterCardinalityDescription
--accessToken <value>OptionalAccess token to use for authentication
--action <value>OptionalMay take one of run (default) or create. When action is set to 'create', only parameters 'name' and 'query' are meaningful
--base <value>OptionalWith --impacted: git ref of the old side. Its merge-base with HEAD is compared with the project as it is, uncommitted edits included
--compileOptionalReturn final query only
--dry-runOptionalDry run only. Refused on engines other than BigQuery, which would really write
--formatOptionalpretty print the final query and update sql file
--impactedOptionalRun the tasks that the changes since --base impact, found as starlake impact finds them, upstream tasks first. A task runs once, as scheduled: an incremental task only rewrites its current slice. Tasks reached only through a changed load table are not run: load the table again first
--interactive <value>OptionalRun query without sinking the result. Valid parameters are: csv, json, table, json-array
--name <value>OptionalTask name in the form domain.task. Several names separated by commas run in one JVM, upstream tasks first. Either --name, --tags or --impacted is required
--options k1=v1,k2=v2...Optional, UnboundedJob arguments to be used as substitutions
--pageNumber <value>OptionalForce table to be truncated before insert. Default value is false
--pageSize <value>OptionalForce table to be truncated before insert. Default value is false
--parallelism <value>OptionalHow many tasks may run at the same time with several names, --tags or --recursive, on DuckDB, JDBC and BigQuery connections only. A task still waits for the tasks it reads. Default is maxParTask (SL_MAX_PAR_TASK), which is 1
--query <value>Optionalif action is 'create', this is the query used to initialize th SQL file. If action is set to 'run', run this query instead of the one in the task
--recursiveOptionalExecute all dependencies recursively. Default value is false
--refresh-inherited-descriptionsOptionalWith --sync-apply or --sync-preview, replace the description of every column that copies a described column with the current one, even a description written in the task
--reloadOptionalReload YAML files. Used in server mode
--reportFormat <value>OptionalReport format: console, json, html
--scheduledDate <value>OptionalScheduled date for the job, in format yyyy-MM-dd'T'HH:mm:ss.SSSZ
--sync-applyOptionalUpdate YAML attributes to match SQL query
--sync-previewOptionalPreview YAML attributes to match SQL query
--tags <value>OptionalRun in one JVM, upstream tasks first, the tasks that have at least one of these tags
--testOptionalShould we run this transform as a test ? Default value is false
--truncate <value>OptionalForce table to be truncated before insert. Default value is false