Data FlowData Flow
DataFlow
  • User Manual
  • Developer Manual
  • Examples
  • API Reference
Overview
Getting Started
Pipeline Authoring
    Pipeline Spec OverviewConnections
    Sources
      SourcesJDBC SourcesNoSQL SourcesFile System SourcesObject Storage SourcesAPI SourcesStream Sources
    Transforms
    Destinations
    Execution Settings
Execution
Deployment
Troubleshooting
Examples
Sources

JDBC Sources

JDBC sources read from PostgreSQL, MySQL, MSSQL, or Oracle. An asset reads a table or a query, and a declared schema overrides inference.

Providers: postgres, mysql, mssql, oracle

Asset fields

Every asset in this type carries these fields; provider and format values live under options.

FieldTypeDefaultNotes
name (required)string--
chainobject-Per-row iteration over a previously loaded asset. When set, offset is not allowed.
chain.from (required)string-FQN of a previous asset whose distinct rows drive per-row iteration (e.g. sources.source_name.asset_name).
chain.pass_columns (required)boolean-When true, prepend the parent row's columns onto every result row produced by that chained iteration.
chain.prepend_labelstring-Optional prefix concatenated onto passed parent column names to avoid name conflicts (e.g. 'right_').
tablestring--
querystring--
schemastring-Optional schema definition for jdbc-based sources (e.g., psql, mysql, mssql, oracle...). Format: 'field1 type1, field2 type2, ...' or multi-line string for better readability.
offsetobject--
offset.key (required)string--
offset.response_keystring--
offset.initial_value (required)string-Initial offset value.
offset.type (required)timestamp or datetime or date or integer or int or long or id or string or text or cursor or token or page--
offset.formatstring-Optional target format used to reformat the value extracted from response_key so it matches the requestParam format expected by the API. Applied only when type is 'timestamp' or 'integer'. For timestamp: 'iso8601' (default), 'epoch_millis', 'epoch_seconds', or any DateTimeFormatter pattern (e.g. 'yyyy-MM-dd'). For integer: any java.util.Formatter pattern (e.g. '%d', '%08d', '%x').

Minimal example

A complete jdbc source with one asset, written for provider postgres:

Code
sources: - name: orders type: jdbc provider: postgres # Reuse a saved connection instead of the fields below: # connection_name: <name> settings: url: jdbc:postgresql://<host>:5432/orders database: <database> auth: user: <user> password: <password> assets: - name: orders_raw table: public.orders

Providers

postgres, mysql, mssql, oracle

Connection

Use settings.connection_name for a saved connection, or configure it inline:

FieldTypeDefaultNotes
url (required)string--
database (required)string--
auth (required)object--
auth.user (required)string--
auth.password (required)string--

Settings options

settings.options:

FieldTypeDefaultNotes
driverstring-The class name of the JDBC driver to use to connect to this URL.
partitions_numberinteger-The maximum number of partitions that can be used for parallelism in table reading and writing. Maps to numPartitions.
query_timeoutinteger-The number of seconds the driver will wait for a Statement object to execute. Zero means there is no limit. Maps to queryTimeout.
keytabstring-Location of the kerberos keytab file for the JDBC client.
principalstring-Specifies kerberos principal name for the JDBC client.
refresh_krb5_configboolean-This option controls whether the kerberos configuration is to be refreshed or not for the JDBC client before establishing a new connection. Maps to refreshKrb5Config.
connection_providerstring-The name of the JDBC connection provider to use to connect to this URL, e.g. db2, mssql. Maps to connectionProvider.

Asset options

assets[].options:

FieldTypeDefaultNotes
prepare_querystring-A prefix that will form the final query together with query. Similar to CTE in SQL. Maps to prepareQuery.
partition_columnstring-The name of the column to partition the data by. Maps to partitionColumn.
lower_boundstring-The lower bound of the partition column. Maps to lowerBound.
upper_boundstring-The upper bound of the partition column. Maps to upperBound.
fetch_sizeinteger-The number of rows to fetch at a time. Maps to fetchsize.
session_init_statementstring-After each database session is opened to the remote DB and before starting to read data, this option executes a custom SQL statement. Maps to sessionInitStatement.
custom_schemastring-The custom schema to use for the data. Maps to customSchema.
push_down_predicateboolean-The option to enable or disable PUSH_DOWN_PREDICATE push-down into V2 JDBC data source. Maps to pushDownPredicate.
push_down_aggregateboolean-The option to enable or disable PUSH_DOWN_AGGREGATE push-down into V2 JDBC data source. Maps to pushDownAggregate.
push_down_limitboolean-The option to enable or disable LIMIT push-down into V2 JDBC data source. Maps to pushDownLimit.
push_down_offsetboolean-The option to enable or disable OFFSET push-down into V2 JDBC data source. Maps to pushDownOffset.
push_down_table_sampleboolean-The option to enable or disable TABLESAMPLE push-down into V2 JDBC data source. Maps to pushDownTableSample.
prefer_timestamp_without_timezoneboolean-When the option is set to true, all timestamps are inferred as TIMESTAMP WITHOUT TIME ZONE. Maps to preferTimestampNTZ.

Related pages

  • Sources
  • Connections
  • Pipeline Spec Overview
  • API Reference
Suggest edit
Last modified on November 26, 2026
SourcesNoSQL Sources
On this page
  • Asset fields
  • Minimal example
  • Providers
    • postgres, mysql, mssql, oracle
  • Related pages
YAML