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

Object Storage Sources

Object storage sources read files from S3, MinIO, GCS, or Azure Blob. Assets work like file-system assets.

Providers: s3 | minio | gcs | azure_blob

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_').
format (required)csv or json or orc or parquet or text or excel--
files_pattern (required)string-Glob pattern to match object names. Recursive traversal is controlled by 'recursive'; '**' is not supported.
schemastring-Optional schema definition for file_system-based sources (e.g., csv, json). 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').
downloadable_filesobject-Controls how remote-provider files are stored locally after download. API-specific fields (url_field, name_field, pattern, format, schema, read_options) are not permitted.
downloadable_files.files_reading (required)booleantrueIf true (default), downloaded files are read into a Spark DataFrame using the asset's format and schema. If false, returns a metadata DataFrame (file_name, file_format, source_name, asset_name, local_path) without reading file contents.
downloadable_files.downloading_directory (required)string-Permanent local directory where downloaded files are stored. The user must control this path explicitly.
downloadable_files.ignore_missing_filesbooleanfalseWhen true, a missing remote file does not fail the run. In metadata mode (files_reading: false) a row is still emitted with file_name set and local_path null so missing files can be identified later. Default false.
recursivebooleanfalseWhen true, traverse descendant object prefixes and include matching objects. When false (default), only immediate objects are considered. For recursive file_name offsets, file names should be globally unique/sortable across descendant folders.
max_depthinteger-Optional maximum descendant-prefix depth when recursive is true. If omitted, recursive traversal is unlimited. Minimum: 1.

Minimal example

A complete object_storage source with one asset, written for provider s3:

Code
sources: - name: orders type: object_storage provider: s3 # Reuse a saved connection instead of the fields below: # connection_name: <name> settings: bucket: <bucket> path: <path> auth: access_key: <access_key> secret_key: <secret_key> region: <region> assets: - name: orders_raw format: parquet files_pattern: "*.parquet"

Providers

s3

An example for provider s3:

Code
sources: - name: orders type: object_storage provider: s3 # Reuse a saved connection instead of the fields below: # connection_name: <name> settings: bucket: <bucket> path: <path> auth: access_key: <access_key> secret_key: <secret_key> region: <region> assets: - name: orders_raw format: parquet files_pattern: "*.parquet"

Connection

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

FieldTypeDefaultNotes
protocols3a or s3n or s3s3aS3 access protocol (e.g., s3a or s3n).
bucket (required)string-S3 bucket name.
path (required)string-S3 bucket path (e.g., /path-inside-bucket/).
auth (required)object--
auth.access_key (required)string-S3 access key.
auth.secret_key (required)string-S3 secret key.
auth.region (required)string-AWS region (required for AWS S3, ignored for MinIO/R2).

Settings options

settings.options:

FieldTypeDefaultNotes
path_style_accessbooleanfalseEnable path-style access. Required for MinIO, Ceph, and some R2 deployments. Maps to fs.s3a.path.style.access.
sslbooleantrueEnable SSL/TLS for S3 connections (usually true when endpoint is https). Maps to fs.s3a.connection.ssl.enabled.
readahead_rangeinteger-Read-ahead buffer size for S3A input streams (bytes). Minimum: 0. Maps to fs.s3a.readahead.range.
connection_maximuminteger-Maximum number of simultaneous S3 connections. Minimum: 1. Maps to fs.s3a.connection.maximum.
threads_maxinteger-Maximum number of threads for S3A operations. Minimum: 1. Maps to fs.s3a.threads.max.

minio

An example for provider minio:

Code
sources: - name: orders type: object_storage provider: minio # Reuse a saved connection instead of the fields below: # connection_name: <name> settings: url: s3a://<bucket>/orders bucket: <bucket> path: <path> auth: access_key: <access_key> secret_key: <secret_key> assets: - name: orders_raw format: parquet files_pattern: "*.parquet"

Connection

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

FieldTypeDefaultNotes
url (required)string-Custom S3 endpoint (MinIO, R2, Ceph). Omit for AWS S3.
protocols3a or s3n or s3 or minios3aAccess protocol (e.g., s3a, s3n, or minio).
bucket (required)string-S3/MinIO bucket name.
path (required)string-S3/MinIO bucket path (e.g., /path-inside-bucket/).
auth (required)object--
auth.access_key (required)string-S3/MinIO access key.
auth.secret_key (required)string-S3/MinIO secret key.
auth.regionstring-Optional AWS region (required for AWS S3, ignored for MinIO/R2).

Settings options

settings.options:

FieldTypeDefaultNotes
path_style_accessbooleanfalseEnable path-style access. Required for MinIO, Ceph, and some R2 deployments. Maps to fs.s3a.path.style.access.
sslbooleantrueEnable SSL/TLS for S3 connections (usually true when endpoint is https). Maps to fs.s3a.connection.ssl.enabled.
readahead_rangeinteger-Read-ahead buffer size for S3A input streams (bytes). Minimum: 0. Maps to fs.s3a.readahead.range.
connection_maximuminteger-Maximum number of simultaneous S3 connections. Minimum: 1. Maps to fs.s3a.connection.maximum.
threads_maxinteger-Maximum number of threads for S3A operations. Minimum: 1. Maps to fs.s3a.threads.max.

gcs

An example for provider gcs:

Code
sources: - name: orders type: object_storage provider: gcs # Reuse a saved connection instead of the fields below: # connection_name: <name> settings: bucket: <bucket> path: <path> auth: service_account_json: <service_account_json> assets: - name: orders_raw format: parquet files_pattern: "*.parquet"

Connection

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

FieldTypeDefaultNotes
protocolgsgsGCS access protocol (e.g., gs).
bucket (required)string-GCS bucket name.
path (required)string-GCS bucket path (e.g., /path-inside-bucket/).
auth (required)object-Authentication configs for Google Cloud Storage.
auth.service_account_json (required)string-Inline GCP service account JSON.

Settings options

settings.options:

FieldTypeDefaultNotes
project_idstring-Google Cloud Project ID used for GCS access. Maps to fs.gs.project.id.
working_dirstring/Default working directory for gs:// URIs. Maps to fs.gs.working.dir.
auth_typeAPPLICATION_DEFAULT or COMPUTE_ENGINE or SERVICE_ACCOUNT_JSON_KEYFILE or UNAUTHENTICATEDAPPLICATION_DEFAULTAuthentication mechanism used to access GCS. Maps to fs.gs.auth.type.
service_account_keyfilestring-Path to service account JSON keyfile. Maps to fs.gs.auth.service.account.json.keyfile.
block_sizeinteger67108864Reported filesystem block size (bytes). Maps to fs.gs.block.size.
implicit_dir_repairbooleantrueEnable implicit directory repair. Maps to fs.gs.implicit.dir.repair.enable.
status_parallel_enablebooleantrueEnable parallel status and list operations. Maps to fs.gs.status.parallel.enable.
list_max_items_per_callinteger5000Maximum items returned per list call. Minimum: 1. Maps to fs.gs.list.max.items.per.call.
inputstream_fast_fail_on_not_foundbooleantrueFail fast if object not found when opening input stream. Maps to fs.gs.inputstream.fast.fail.on.not.found.enable.
proxy_addressstring-HTTP proxy address in host format. Maps to fs.gs.proxy.address.
proxy_usernamestring-Proxy username. Maps to fs.gs.proxy.username.
proxy_passwordstring-Proxy password. Maps to fs.gs.proxy.password.
requester_pays_modeDISABLED or AUTO or CUSTOM or ENABLEDDISABLEDRequester Pays mode. Maps to fs.gs.requester.pays.mode.
requester_pays_project_idstring-Billing project for Requester Pays. Maps to fs.gs.requester.pays.project.id.
requester_pays_bucketsarray of string-Buckets enabled for Requester Pays when CUSTOM mode is used. Maps to fs.gs.requester.pays.buckets.

azure_blob

An example for provider azure_blob:

Code
sources: - name: orders type: object_storage provider: azure_blob # Reuse a saved connection instead of the fields below: # connection_name: <name> settings: container: <container> path: <path> auth: account_name: <account_name> account_key: <account_key> assets: - name: orders_raw format: parquet files_pattern: "*.parquet"

Connection

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

FieldTypeDefaultNotes
protocolwasbs or wasb or abfs or abfsswasbsAzure Blob access protocol (e.g., wasbs, wasb for Blob Storage or abfs, abfss for ADLS Gen2).
endpointstring-Optional Azure Blob service endpoint override, e.g. http://azurite:10000/devstoreaccount1. When omitted, the standard Azure endpoint is used.
container (required)string-Azure Blob container name e.g. blobdataflow20260406.
path (required)string-Azure Blob container path e.g. /path-inside-container/.

auth is one of:

Account Key Authentication

FieldTypeDefaultNotes
account_name (required)string-Azure storage account name e.g. testfiles98.
account_key (required)string-Azure storage account key e.g. account_key.

SAS Token Authentication

FieldTypeDefaultNotes
sas_token (required)string-Azure storage SAS token e.g. ?sv=2020-08-04&ss=b&srt=sco&sp=rlx&se=2022-12-31T23:59:59Z&st=2021-01-01T00:00:00Z&spr=https&sig=signature.

Settings options

settings.options:

FieldTypeDefaultNotes
sslbooleantrueEnable SSL for Azure Blob access (wasbs:// vs wasb://).
read_request_sizeinteger-Read request size for Azure Blob Storage (bytes). Accepts integer bytes or a size string like 4MB. Minimum: 0. Maps to fs.azure.read.request.size.
delete_threadsinteger-Number of threads used for parallel delete operations. Minimum: 1. Maps to fs.azure.delete.threads.
rename_threadsinteger-Number of threads used for parallel rename operations. Minimum: 1. Maps to fs.azure.rename.threads.
user_agent_prefixstring-Custom prefix for Azure Blob Storage User-Agent header. Maps to fs.azure.user.agent.prefix.

File format options

An asset's options depend on its format:

csv

Valid options for CSV output operations based on Spark CSV data source version 3.5.1

FieldTypeDefaultNotes
delimiterstring-Sets the single character used for separating fields.
encodingstring-For reading, decodes the CSV files by the given encoding type. For writing, specifies encoding (charset) of saved CSV files.
quotestring-Sets the single character used for escaping quoted values.
escapestring-Sets the single character used for escaping quotes inside an already quoted value.
commentstring-Sets the single character used for commenting out lines.
headerbooleantrueUses the first line as names of columns. Default: false.
infer_schemabooleantrueInfers the schema of the CSV file. Default: false. Maps to inferSchema.
prefer_dateboolean-Indicates whether date should be preferred over timestamp. Maps to preferDate.
enforce_schemaboolean-Indicates whether the schema should be enforced. Maps to enforceSchema.
ignore_leading_white_spaceboolean-Indicates whether leading whitespaces should be ignored. Maps to ignoreLeadingWhiteSpace.
ignore_trailing_white_spaceboolean-Indicates whether trailing whitespaces should be ignored. Maps to ignoreTrailingWhiteSpace.
null_valuestring-Sets the string representation of a null value. Maps to nullValue.
nan_valuestring-Sets the string representation of a NaN value. Maps to nanValue.
positive_infinitystring-Sets the string representation of a positive infinity value. Maps to positiveInf.
negative_infinitystring-Sets the string representation of a negative infinity value. Maps to negativeInf.
date_formatstring-Sets the string that indicates a date format. Maps to dateFormat.
timestamp_formatstring-Sets the string that indicates a timestamp format. Maps to timestampFormat.
timestamp_without_timezone_formatstring-Sets the string that indicates a timestamp without time zone format. Maps to timestampNTZFormat.
enable_date_time_parsing_fallbackboolean-Indicates whether to enable date time parsing fallback. Maps to enableDateTimeParsingFallback.
max_columnsinteger-Sets the maximum number of columns to read. Maps to maxColumns.
max_chars_per_columninteger-Sets the maximum number of characters to read for each column. Maps to maxCharsPerColumn.
modePERMISSIVE or DROPMALFORMED or FAILFAST-Sets the mode to use for parsing the CSV file. Default: PERMISSIVE.
column_name_of_corrupt_recordstring-Sets the name of the column to store the corrupt record. Maps to columnNameOfCorruptRecord.
multi_lineboolean-Indicates whether to enable multi line mode. Maps to multiLine.
char_to_escape_quote_escapingstring-Sets the character to escape quote escaping. Maps to charToEscapeQuoteEscaping.
sampling_rationumber-Defines fraction of rows used for schema inferring. Maps to samplingRatio.
empty_valuestring-Sets the string representation of an empty value. Maps to emptyValue.
localestring-Sets the locale to use for parsing dates and timestamps.
line_separatorstring-Defines the line separator that should be used for writing. Maps to lineSep.
unescaped_quote_handlingSTOP_AT_CLOSING_QUOTE or BACK_TO_DELIMITER or STOP_AT_DELIMITER or SKIP_VALUE or RAISE_ERROR-Compression codec to use when saving to file. Default: STOP_AT_DELIMITER. Maps to unescapedQuoteHandling.

excel

Valid options for reading Excel files via crealytics spark-excel

FieldTypeDefaultNotes
headerbooleantrueUse the first row as names of columns.
infer_schemabooleantrueInfers the schema of the Excel sheet. Maps to inferSchema.
sheet_namestring-Name of the sheet to read (e.g. 'Sheet1'). If not set, the first sheet is read. Maps to sheetName.
data_addressstring-Cell range to read in Excel format (e.g. "'My Sheet'!A1" or "A1"). Default: A1. Maps to dataAddress.
treat_empty_values_as_nullsbooleantrueWhether to treat empty cells as null. Maps to treatEmptyValuesAsNulls.
use_plain_number_formatbooleanfalseWhen true, format cells without rounding and scientific notation. Maps to usePlainNumberFormat.
set_error_cells_to_fallback_valuesbooleanfalseWhen true, ERROR cell values (e.g. #N/A) are converted to zero values of the column's data type. Maps to setErrorCellsToFallbackValues.
date_formatstring-Sets the string that indicates a date format. Maps to dateFormat.
timestamp_formatstring-Sets the string that indicates a timestamp format. Maps to timestampFormat.
excerpt_sizeinteger-Number of rows to use for schema inference. Maps to excerptSize.
add_color_columnsboolean-When true, adds color columns to the DataFrame. Default: false. Maps to addColorColumns.
max_rows_in_memoryinteger-Maximum number of rows to read into memory. When set, it uses a streaming reader which can help with big files. xls format files are not supported. Maps to maxRowsInMemory.
max_byte_array_sizeinteger-Maximum byte array size to read into memory. Maps to maxByteArraySize.
temp_file_thresholdinteger-Number of bytes at which a zip entry is regarded as too large for holding in memory and the data is put in a temp file instead. Maps to tempFileThreshold.
workbook_passwordstring-Password to access the workbook. Maps to workbookPassword.

json

Valid options for JSON asset operations based on Spark JSON data source version 3.5.1

FieldTypeDefaultNotes
allow_backslash_escaping_any_characterboolean-Allows accepting quoting of all characters using backslash quoting mechanism. Maps to allowBackslashEscapingAnyCharacter.
allow_commentsboolean-Allows Java/C++ style comments in JSON. Maps to allowComments.
allow_non_numeric_numbersboolean-Allows JSON parser to recognize set of "Not-a-Number" (NaN) tokens as legal floating number values. Maps to allowNonNumericNumbers.
allow_numeric_leading_zerosboolean-Allows (non-standard) JSON integers to start with additional zero(s). Maps to allowNumericLeadingZeros.
allow_single_quotesboolean-Allows single quotes in addition to number quotes. Maps to allowSingleQuotes.
allow_unquoted_control_charsboolean-Allows JSON Strings to contain unquoted control characters. Maps to allowUnquotedControlChars.
allow_unquoted_field_namesboolean-Allows unquoted field names in JSON. Maps to allowUnquotedFieldNames.
column_name_of_corrupt_recordstring-Sets the name of the column to store the corrupt record. Maps to columnNameOfCorruptRecord.
date_formatstring-Sets the string that indicates a date format. Default is "yyyy-MM-dd". Maps to dateFormat.
drop_field_if_all_nullboolean-Whether to ignore column of all null values or empty array/struct during schema inference. Maps to dropFieldIfAllNull.
enable_date_time_parsing_fallbackboolean-Indicates whether to enable date time parsing fallback. Maps to enableDateTimeParsingFallback.
encodingstring-For reading, decodes the JSON files by the given encoding type.
line_separatorstring-Defines the line separator for parsing JSON files. Maps to lineSep.
localestring-Sets the locale to use for parsing dates and timestamps.
modePERMISSIVE or DROPMALFORMED or FAILFAST-Sets the mode to use for parsing the JSON file. Default: PERMISSIVE.
multi_lineboolean-Parse one record, which may span multiple lines, per file. Maps to multiLine.
prefers_decimalboolean-Infers all floating-point values as a decimal type. Maps to prefersDecimal.
primitives_as_stringboolean-Infers all primitive values as a string type. Maps to primitivesAsString.
sampling_rationumber-Defines fraction of rows used for schema inferring. Maps to samplingRatio.
timestamp_formatstring-Sets the string that indicates a timestamp format. Default is "yyyy-MM-dd'T'HH:mm.SSS[XXX]". Maps to timestampFormat.
timestamp_without_timezone_formatstring-Sets the string that indicates a timestamp without time zone format. Default is "yyyy-MM-dd'T'HH:mm.SSS". Maps to timestampNTZFormat.
time_zonestring-Sets the string that indicates a time zone ID to be used to format timestamps. Maps to timeZone.

orc

Valid options for ORC asset operations based on Spark ORC data source version 3.5.1

FieldTypeDefaultNotes
merge_schemaboolean-Sets whether we should merge schemas collected from all ORC part-files. This will override spark.sql.orc.mergeSchema. Default: false. Maps to mergeSchema.

parquet

Valid options for Parquet asset operations based on Spark Parquet data source version 3.5.1

FieldTypeDefaultNotes
merge_schemaboolean-When true, merges schemas collected from all Parquet part-files. This will override spark.sql.parquet.mergeSchema. Maps to mergeSchema.
datetime_rebase_modeEXCEPTION or CORRECTED or LEGACY-The rebasing mode for the values of the DATE, TIMESTAMP_MILLIS, TIMESTAMP_MICROS logical types from the Julian to Proleptic Gregorian calendar. This will override spark.sql.parquet.datetimeRebaseModeInRead. Maps to datetimeRebaseMode.
int96_rebase_modeEXCEPTION or CORRECTED or LEGACY-The rebasing mode for the values of the INT96 timestamp type from the Julian to Proleptic Gregorian calendar. This will override spark.sql.parquet.int96RebaseModeInRead. Maps to int96RebaseMode.

text

Valid options for Text asset operations based on Spark Text data source version 3.5.1

FieldTypeDefaultNotes
whole_textboolean-If true, read each file from input path(s) as a single row. Maps to wholetext.
line_separatorstring-Defines the line separator that should be used for reading. Default handles all \r, \r\n and \n. Maps to lineSep.

Related pages

  • Sources
  • Connections
  • Pipeline Spec Overview
  • API Reference
Suggest edit
Last modified on November 26, 2026
File System SourcesAPI Sources
On this page
  • Asset fields
  • Minimal example
  • Providers
    • s3
    • minio
    • gcs
    • azure_blob
  • File format options
    • csv
    • excel
    • json
    • orc
    • parquet
    • text
  • Related pages
YAML
YAML
YAML
YAML
YAML