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

Sources

Sources read data into the pipeline. Each source has a type, a provider, settings, and a list of assets - the concrete things to read (tables, file sets, topics, API calls).

At a glance

  • Six types - jdbc, nosql, file_system, object_storage, api, stream.
  • Assets are the unit of read - each becomes a sources.<source>.<asset> FQN.
  • Offsets make reads incremental - batch sources only; stream position lives in Spark checkpoints.
  • Connections keep credentials out - reference a saved connection or go inline.

Common shape

Code
sources: - name: orders # your name for the source type: jdbc # one of the six types below provider: postgres # provider within the type settings: connection_name: bdp_psql # or inline fields + auth assets: - name: orders_asset # becomes sources.orders.orders_asset table: public.orders offset: # optional - incremental reads key: ts initial_value: "2024-01-20 00:00:00" type: timestamp

Provider matrix

Source typeProviders
jdbcpostgres, mysql, mssql, oracle
nosqlmongodb, cassandra, dynamodb, cosmosdb, hbase
elasticsearch, solr, firestore, rethinkdb, couchdb
file_systemlocal, sftp, onedrive, sharepoint, smb
object_storages3, minio, gcs, azure_blob
apirest
streamkafka, redis, kinesis, sqs

Reference by type

Every connection field, settings option, asset field, asset option, and file-format option is listed per type:

TypeReference
jdbcJDBC sources
nosqlNoSQL sources
file_systemFile system sources
object_storageObject storage sources
apiAPI sources
streamStream sources

Settings

settings holds either a connection_name (a saved connection, resolved from /api/connections) or inline connection fields with an auth block, plus provider-level options. Common auth shapes:

Auth fieldsUsed by
user, passwordJDBC, NoSQL (most), SFTP, SMB
tenant_id, client_id, client_secretOneDrive, SharePoint (Graph)
access_key, secret_key, regionS3, MinIO, Kinesis, SQS, DynamoDB
service_account_jsonGCS, Firestore
account_name, account_keyAzure Blob
security protocols + SASLKafka (see below)

Kafka auth is one of: PLAINTEXT, SSL (truststore), SASL_PLAINTEXT (PLAIN / SCRAM-SHA-256 / SCRAM-SHA-512 + user/password), or SASL_SSL (same + truststore).

Assets

FieldUsed byPurpose
nameallAsset name (part of the FQN)
formatfile, objectcsv, json, parquet, orc, text, excel
files_patternfile, objectGlob - no ** allowed
recursive / max_depthfile, objectDescend into subfolders
schemafile, object, jdbc, nosql, apiDDL: "id int, name string"
tablejdbc, nosqlTable or collection
queryjdbc, nosqlQuery instead of a table
cataloghbaseHBase catalog (with table)
url, methodapiREST call (GET/POST/PUT/PATCH)
topic / stream / queuestreamKafka topic / Redis, Kinesis stream / SQS queue
offsetall except streamIncremental watermark
downloadable_filesfile, object, apiDownload remote files first
chainall except streamRead per-row from another asset
optionsallPer-provider, per-format options

By source type

file_system

Reads files from local disk, SFTP, SMB shares, or OneDrive/SharePoint (via Microsoft Graph). Assets need format + files_pattern. Remote providers (SFTP/SMB/OneDrive/SharePoint) either stream reads through Hadoop or download files first (see Downloadable files).

Settings options worth knowing: ignore_corrupt_files, ignore_missing_files, modified_before, modified_after, time_zone. Format options (e.g. CSV delimiter, header, infer_schema, mode; Excel sheet_name, workbook_password) are schema-validated per format.

jdbc

Reads from PostgreSQL, MySQL, MSSQL, or Oracle. Each asset uses table or query - not both. A declared schema overrides inference. Useful asset options: partition_column with lower_bound/upper_bound for parallel reads, fetch_size, push_down_predicate.

Offsets are pushed down into SQL - a WHERE key > value is appended to the query or table select before the read.

nosql

Ten providers. Assets use table (collection/index/keyspace table), except Cassandra which also accepts query; HBase needs table + catalog. Per-provider read options are schema-validated - e.g. MongoDB partitioner and allow_disk_use, Cassandra where and consistency_level. Write options such as operation_type, upsert_document, and id_field_list live on destinations. MongoDB also supports change streams in stream mode (stream_startup_mode, stream_lookup_full_document).

object_storage

Reads from S3, MinIO, GCS, or Azure Blob. Settings pick protocol (s3a default, gs, wasbs/abfss), bucket/container, path, and auth. Assets work like file-system assets (format + files_pattern, recursive, max_depth). Provider settings options map to Hadoop connector configs (fs.s3a.*, fs.gs.*, fs.azure.*).

api (REST)

Each asset is one HTTP call: url + method, plus options:

  • headers, params, body, response_path (JSONPath into the response)
  • max_fetch_size, ignore_not_found (status-code rules)
  • Pagination - four strategies, each with limit (max_pages 10, max_records 1000) and delay_ms:
StrategyKey config
page_numberpage_num_param, page_size_param
skip_limitskip_param, page_size_param
cursorcursor_param, cursor_path
next_linknext_link_path

Each strategy stops on a completion_on rule (empty_page, short_page, total_pages, total_records, no_link) or when a limit is hit.

stream

Reads Kafka topics, Redis streams, Kinesis streams, or SQS queues with Spark Structured Streaming. Output columns per provider:

ProviderColumns
kafkakey, message, topic, partition, offset, timestamp
redisConnector's own schema (no wrapper columns)
kinesiskey, message, streamName, sequenceNumber, timestamp
sqsmessage, ingest_ts

Kafka asset options include starting_offsets (latest/earliest), fail_on_data_loss, max_offsets_per_trigger, min_partitions, include_headers/header_names; Kinesis uses starting_position (LATEST/TRIM_HORIZON/EARLIEST/AT_TIMESTAMP); SQS has poll_interval.

Stream sources do not use asset offset or chain - their position lives in Spark checkpoints instead (see Checkpoints and Offsets).

Offsets

Declare an offset on an asset to make batch reads incremental. key, initial_value, and type are all required; type is one of timestamp, datetime, date, integer, int, long, id, string, text, cursor, token, or page. APIs also accept response_key and format (iso8601, epoch_millis, epoch_seconds, or a pattern).

How each family applies the watermark:

FamilyFilterNew offset
jdbcWHERE key > value pushed into SQLmax(key)
nosqlPost-read Spark filtermax(key)
file, objectfile_modified → modifiedAfter
file_name → metadata filter
max(...) of the key
apiOffset injected as request paramsresponse_key max

Offsets are committed only after a fully successful run - a failed run re-reads from the previous watermark (at-least-once).

Downloadable files

Some assets download remote files before Spark reads them (SFTP, SMB, OneDrive/SharePoint, S3/GCS/Azure, REST). Configure with downloadable_files:

Code
downloadable_files: files_reading: true # false → metadata-only mode downloading_directory: raw/ # optional - persists the downloads ignore_missing_files: false
  • files_reading: true → files are downloaded (run temp dir by default, cleaned after the run; downloading_directory keeps them) and read with the asset's format/schema.
  • files_reading: false → the frame is a listing: file_name, file_format, source_name, asset_name, local_path (REST adds original_url).
  • REST listing mode also needs url_field (JSONPath to the download URL in each item) and supports name_field, pattern, or direct_download: true when the response body is the file itself.

Asset chaining

An asset can read once per row of a previously loaded asset:

Code
assets: - name: per_table chain: from: sources.meta.tables pass_columns: true prepend_label: t_ files_pattern: "{{file_name}}.{{file_type}}"

{{column}} placeholders resolve per parent row; pass_columns: true prepends the parent row's columns (optionally prefixed). Chained results are unioned into one frame, and chain is mutually exclusive with offset.

An asset that reads 0 rows with no declared schema: makes the run a no-op - downstream stages are skipped and offsets stay unchanged.

Related pages

  • Pipeline Spec Overview - the full spec model
  • Transforms - shape the frames you just read
  • Destinations - where the results go
  • Checkpoints and Offsets - watermark semantics in depth
Suggest edit
Last modified on November 26, 2026
ConnectionsJDBC Sources
On this page
  • At a glance
  • Common shape
  • Provider matrix
  • Reference by type
  • Settings
  • Assets
  • By source type
    • file_system
    • jdbc
    • nosql
    • object_storage
    • api (REST)
    • stream
  • Offsets
  • Downloadable files
  • Asset chaining
  • Related pages
YAML
YAML
YAML