Batch pipeline config
Complete field reference for Nilus batch pipelines: spec structure, all source.options and sink.options, supported values, and annotated examples.
This page explains the current batch pipeline authoring shape. Author the nilus resource and keep the operational intent under spec.
Nilus batch pipelines are created as type: nilus resources with spec.type: batch.
Configuration Elements
Fields are grouped below by function.
1. Metadata
name
Unique pipeline name.
version
Use v1alpha for the current Nilus resource shape.
type
Must be nilus.
tags
Optional labels for search, grouping, and operations.
description
Optional human-readable summary.
2. Nilus Spec
The spec block defines the batch pipeline contract that Nilus validates and then renders into an executable workflow.
compute
Yes
Compute profile used to run the batch workload.
resources
No
Optional CPU and memory requests or limits.
logLevel
No
Optional log level such as DEBUG, INFO, WARNING, or ERROR.
repo
No
Optional repository block for repo-backed connector extensions.
sink
Yes for data movement
Destination definition for batch pipelines that write extracted data.
3. Schedule and Runtime Controls
Use schedule only when the batch pipeline should run on a recurring cadence.
cronsis an array, not a singlecronstring.If
scheduleis omitted, the batch pipeline behaves like an instance that must be triggered manually.concurrencyPolicycontrols overlap handling for scheduled runs.
Runtime settings such as compute, logs, and resource sizing stay under spec:
Persistent volumes and restricted runtimes
For large Lakehouse/Iceberg loads, or any load that needs durable writable scratch space, attach a DataOS Volume and point Nilus at it with the DATAOS_PERSISTENT_DIR environment variable. Nilus then writes its intermediate staging files to that directory instead of the pod's ephemeral filesystem. This prevents disk-exhaustion evictions and out-of-memory failures on big loads. The volume directory and DATAOS_PERSISTENT_DIR must point to the same path:
idreferences an existing DataOS Volume resource.directoryis the in-container mount path for the volume.readOnlydefaults tofalse; settrueonly for read-only reference mounts.DATAOS_PERSISTENT_DIRmust matchdirectoryso staging files land on the volume.
See tuning large Lakehouse (Iceberg) loads for why this matters and how to size the volume for memory-bound loads.
4. Secrets and Repo Settings
For direct connector URIs, project secrets under spec.use.projection and reference them through {ENV_VAR} placeholders in source.address or sink.address.
Use spec.repo only when the pipeline depends on a repo-backed extension:
5. Source
The source block defines where Nilus reads from. Use a direct connector URI or a dataos:// depot address.
Source Fields
address
Yes
Connector URI or dataos:// depot reference.
source.options
These are the batch-oriented source.options keys currently consumed by the Nilus runtime. Some are broadly useful across SQL-style batch connectors, while others are connector-specific tuning knobs.
source_table
Yes
Logical source object. Depending on the connector, this may be a SQL table, a file selector, a sheet name, an API object, or a report definition.
public.customer
primary_key
No
Merge key. Write the source column name, not snake_case. Table reads can pick up a table primary key. query: never does, so set this for every query: merge. See custom query (SQL sources).
id / OrderId
incremental_key
No
Cursor field for connectors that support bounded reads. Write the source column name. Some SaaS sources reject it and manage incrementality themselves. Stripe uses :sync:incremental on created only. See Stripe.
updated_at / LastModifiedDate
interval_start
No
Optional lower bound for bounded incremental extraction.
"2026-01-01T00:00:00Z"
interval_end
No
Optional upper bound for bounded incremental extraction.
"2026-01-31T23:59:59Z"
type_hints
No
Column type overrides that Nilus maps into the underlying column-hints contract.
{ amount: decimal, created_at: timestamp }
mask
No
Column masking rules. Nilus expects an object whose values are algorithm strings such as hash, redact, or partial:3.
{ email: hash, phone: partial:3 }
extract_parallelism
No
Number of extraction jobs to run in parallel for supported connectors.
5
page_size
No
Rows or items fetched per extraction page for paged connectors.
50000
sql_limit
No
Extraction row limit for table reads. Rejected on source_table: "query:…"; put LIMIT in the SQL instead.
5000
sql_exclude_columns
No
Columns to skip during extraction. The current runtime expects a comma-separated string.
debug_payload,raw_html
yield_limit
No
Caps how many extraction pages or batches the source yields before the run stops.
10
max_table_nesting
No
How deeply nested objects are flattened into parent columns. Default "0" keeps nested objects as json on the parent. Raise to "1" or "2" to flatten. Quote the string; an integer is rejected. See shape knobs.
"0" (default)
Source Option Notes
Start with
source_tableonly, then addincremental_keyandprimary_keywhen the connector and load strategy need them. Write both as source names, such asOrderIdandLastModifiedDate.query:sources never inherit a table primary key. Setprimary_keyfor merge, and do not setsql_limit. See custom query (SQL sources).On a DataOS Lakehouse destination, table reads and
query:write different Iceberg decimal precision and scale for every SQL batch source. Do not switch styles on the samedest_table. See schema evolution.Some SaaS sources reject
incremental_key. Stripe incrementality is:sync:incrementaloncreatedonly. Later updates to older charges are not picked up. See Stripe.type_hintsandmaskare object-valued options. Nilus turns them into the lower-level runtime contract for you. On schema-flexible sources, later extraction pages can add nullable columns in the same run. Pin a sparse, all-null early column withtype_hints. See schema evolution.Set
SCHEMA_NAMING=directthroughspec.use.projection.projections.envVars. Do not setschema_namingundersource.options.directpreserves source names such aspkey. See Correctness Knobs and Secrets and Projections.extract_parallelism,page_size,sql_limit,sql_exclude_columns,yield_limit, andmax_table_nestingare best treated as tuning knobs, not mandatory pipeline fields.max_table_nestingonly applies to sources that produce nested records. Default"0"keeps nested objects asjson. Raising it flattens objects and can break arrays into child tables. See shape knobs.Connector pages remain the source of truth for connector-specific
source_tablesyntax and any additional connector-only options.
Direct URI vs Depot Address
Use a direct connector URI when you need to assemble the connection explicitly and provide credentials through
spec.use.projection.Use
dataos://<depot>?purpose=<ro|rw>when the connection should be inferred from a depot.
6. Sink
The sink block defines where Nilus writes the batch output.
Sink Fields
address
Yes
Destination URI or dataos:// depot reference.
sink.options
These are the commonly used batch sink.options keys currently wired through the Nilus runtime.
dest_table
Yes
Target object name in the destination.
analytics.customer
incremental_strategy
Yes
Write behavior across repeated runs. Accepts only replace, append, or merge. Other values, such as delete+insert, scd2, or none, fail at apply.
replace
partition_by
No
Destination layout hint for partitioned sinks. This is most relevant for lakehouse-style destinations and should follow the destination page examples.
structured partition rules
cluster_by
No
Optional clustering hint for destinations that implement clustering or sort-like organization.
customer_id
loader_file_size
No
Controls how many rows Nilus writes per output file or loader batch.
100000
Sink Option Notes
incremental_strategybelongs undersink.options. Customer YAML acceptsreplace,append, ormergeonly.incremental_strategy: mergewith no usableprimary_keydoes not fail. Nilus logs a warning and falls back to append, which duplicates rows. Table reads can pick up a table primary key.query:cannot. See correctness knobs.partition_byandcluster_byare destination-sensitive. Use them only when the destination page explicitly supports them and the access pattern justifies them.loader_file_sizeis a performance and file-layout knob. Start with the runtime default and tune gradually.
Destination-specific options such as region overrides and staging locations are documented in the corresponding destination page.
7. Execution Model
The important authoring consequence is:
Author the
nilusresource inv1alphaKeep the operational intent in
specTreat this page as the primary reference for batch pipeline configuration
Validation Notes
Use
type: niluswithspec.type: batchfor batch pipeline authoring.Put recurring schedule settings under
spec.schedule.crons, not a legacy top-level workflow schedule block.Use
spec.use.projectionfor direct connector credentials, usedataos://...purpose=when a depot should supply credentials automatically.Referenced resources are validated at apply time.
dataos-ctl resource applyfails fast if thecompute, source depot, or sink depot does not exist in the tenant, with an error likeinvalid resource dependency, not found: depot:<name>. Create the dependency before applying. See common troubleshooting guides.Keep
source_tablesemantics connector-aware:schema.tablefor SQL sources, named objects for SaaS sources, and resource-specific identifiers for connectors such as sheets or streams.Treat
extract_parallelism,page_size,sql_limit,sql_exclude_columns,yield_limit,max_table_nesting,partition_by,cluster_by, andloader_file_sizeas optional tuning knobs, not baseline required fields.The Nilus runtime accepts some additional internal values and destination-specific options, but this page documents the stable batch pipeline authoring surface users should rely on by default.
Related Docs
Last updated
Was this helpful?