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.
| Field | Type | Default | Notes |
|---|---|---|---|
name (required) | string | - | - |
chain | object | - | 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_label | string | - | 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. |
schema | string | - | Optional schema definition for file_system-based sources (e.g., csv, json). Format: 'field1 type1, field2 type2, ...' or multi-line string for better readability. |
offset | object | - | - |
offset.key (required) | string | - | - |
offset.response_key | string | - | - |
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.format | string | - | 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_files | object | - | 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) | boolean | true | If 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_files | boolean | false | When 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. |
recursive | boolean | false | When 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_depth | integer | - | 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
Providers
s3
An example for provider s3:
Code
Connection
Use settings.connection_name for a saved connection, or configure it inline:
| Field | Type | Default | Notes |
|---|---|---|---|
protocol | s3a or s3n or s3 | s3a | S3 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:
| Field | Type | Default | Notes |
|---|---|---|---|
path_style_access | boolean | false | Enable path-style access. Required for MinIO, Ceph, and some R2 deployments. Maps to fs.s3a.path.style.access. |
ssl | boolean | true | Enable SSL/TLS for S3 connections (usually true when endpoint is https). Maps to fs.s3a.connection.ssl.enabled. |
readahead_range | integer | - | Read-ahead buffer size for S3A input streams (bytes). Minimum: 0. Maps to fs.s3a.readahead.range. |
connection_maximum | integer | - | Maximum number of simultaneous S3 connections. Minimum: 1. Maps to fs.s3a.connection.maximum. |
threads_max | integer | - | Maximum number of threads for S3A operations. Minimum: 1. Maps to fs.s3a.threads.max. |
minio
An example for provider minio:
Code
Connection
Use settings.connection_name for a saved connection, or configure it inline:
| Field | Type | Default | Notes |
|---|---|---|---|
url (required) | string | - | Custom S3 endpoint (MinIO, R2, Ceph). Omit for AWS S3. |
protocol | s3a or s3n or s3 or minio | s3a | Access 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.region | string | - | Optional AWS region (required for AWS S3, ignored for MinIO/R2). |
Settings options
settings.options:
| Field | Type | Default | Notes |
|---|---|---|---|
path_style_access | boolean | false | Enable path-style access. Required for MinIO, Ceph, and some R2 deployments. Maps to fs.s3a.path.style.access. |
ssl | boolean | true | Enable SSL/TLS for S3 connections (usually true when endpoint is https). Maps to fs.s3a.connection.ssl.enabled. |
readahead_range | integer | - | Read-ahead buffer size for S3A input streams (bytes). Minimum: 0. Maps to fs.s3a.readahead.range. |
connection_maximum | integer | - | Maximum number of simultaneous S3 connections. Minimum: 1. Maps to fs.s3a.connection.maximum. |
threads_max | integer | - | Maximum number of threads for S3A operations. Minimum: 1. Maps to fs.s3a.threads.max. |
gcs
An example for provider gcs:
Code
Connection
Use settings.connection_name for a saved connection, or configure it inline:
| Field | Type | Default | Notes |
|---|---|---|---|
protocol | gs | gs | GCS 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:
| Field | Type | Default | Notes |
|---|---|---|---|
project_id | string | - | Google Cloud Project ID used for GCS access. Maps to fs.gs.project.id. |
working_dir | string | / | Default working directory for gs:// URIs. Maps to fs.gs.working.dir. |
auth_type | APPLICATION_DEFAULT or COMPUTE_ENGINE or SERVICE_ACCOUNT_JSON_KEYFILE or UNAUTHENTICATED | APPLICATION_DEFAULT | Authentication mechanism used to access GCS. Maps to fs.gs.auth.type. |
service_account_keyfile | string | - | Path to service account JSON keyfile. Maps to fs.gs.auth.service.account.json.keyfile. |
block_size | integer | 67108864 | Reported filesystem block size (bytes). Maps to fs.gs.block.size. |
implicit_dir_repair | boolean | true | Enable implicit directory repair. Maps to fs.gs.implicit.dir.repair.enable. |
status_parallel_enable | boolean | true | Enable parallel status and list operations. Maps to fs.gs.status.parallel.enable. |
list_max_items_per_call | integer | 5000 | Maximum items returned per list call. Minimum: 1. Maps to fs.gs.list.max.items.per.call. |
inputstream_fast_fail_on_not_found | boolean | true | Fail fast if object not found when opening input stream. Maps to fs.gs.inputstream.fast.fail.on.not.found.enable. |
proxy_address | string | - | HTTP proxy address in hostfs.gs.proxy.address. |
proxy_username | string | - | Proxy username. Maps to fs.gs.proxy.username. |
proxy_password | string | - | Proxy password. Maps to fs.gs.proxy.password. |
requester_pays_mode | DISABLED or AUTO or CUSTOM or ENABLED | DISABLED | Requester Pays mode. Maps to fs.gs.requester.pays.mode. |
requester_pays_project_id | string | - | Billing project for Requester Pays. Maps to fs.gs.requester.pays.project.id. |
requester_pays_buckets | array 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
Connection
Use settings.connection_name for a saved connection, or configure it inline:
| Field | Type | Default | Notes |
|---|---|---|---|
protocol | wasbs or wasb or abfs or abfss | wasbs | Azure Blob access protocol (e.g., wasbs, wasb for Blob Storage or abfs, abfss for ADLS Gen2). |
endpoint | string | - | 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
| Field | Type | Default | Notes |
|---|---|---|---|
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
| Field | Type | Default | Notes |
|---|---|---|---|
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:
| Field | Type | Default | Notes |
|---|---|---|---|
ssl | boolean | true | Enable SSL for Azure Blob access (wasbs:// vs wasb://). |
read_request_size | integer | - | 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_threads | integer | - | Number of threads used for parallel delete operations. Minimum: 1. Maps to fs.azure.delete.threads. |
rename_threads | integer | - | Number of threads used for parallel rename operations. Minimum: 1. Maps to fs.azure.rename.threads. |
user_agent_prefix | string | - | 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
| Field | Type | Default | Notes |
|---|---|---|---|
delimiter | string | - | Sets the single character used for separating fields. |
encoding | string | - | For reading, decodes the CSV files by the given encoding type. For writing, specifies encoding (charset) of saved CSV files. |
quote | string | - | Sets the single character used for escaping quoted values. |
escape | string | - | Sets the single character used for escaping quotes inside an already quoted value. |
comment | string | - | Sets the single character used for commenting out lines. |
header | boolean | true | Uses the first line as names of columns. Default: false. |
infer_schema | boolean | true | Infers the schema of the CSV file. Default: false. Maps to inferSchema. |
prefer_date | boolean | - | Indicates whether date should be preferred over timestamp. Maps to preferDate. |
enforce_schema | boolean | - | Indicates whether the schema should be enforced. Maps to enforceSchema. |
ignore_leading_white_space | boolean | - | Indicates whether leading whitespaces should be ignored. Maps to ignoreLeadingWhiteSpace. |
ignore_trailing_white_space | boolean | - | Indicates whether trailing whitespaces should be ignored. Maps to ignoreTrailingWhiteSpace. |
null_value | string | - | Sets the string representation of a null value. Maps to nullValue. |
nan_value | string | - | Sets the string representation of a NaN value. Maps to nanValue. |
positive_infinity | string | - | Sets the string representation of a positive infinity value. Maps to positiveInf. |
negative_infinity | string | - | Sets the string representation of a negative infinity value. Maps to negativeInf. |
date_format | string | - | Sets the string that indicates a date format. Maps to dateFormat. |
timestamp_format | string | - | Sets the string that indicates a timestamp format. Maps to timestampFormat. |
timestamp_without_timezone_format | string | - | Sets the string that indicates a timestamp without time zone format. Maps to timestampNTZFormat. |
enable_date_time_parsing_fallback | boolean | - | Indicates whether to enable date time parsing fallback. Maps to enableDateTimeParsingFallback. |
max_columns | integer | - | Sets the maximum number of columns to read. Maps to maxColumns. |
max_chars_per_column | integer | - | Sets the maximum number of characters to read for each column. Maps to maxCharsPerColumn. |
mode | PERMISSIVE or DROPMALFORMED or FAILFAST | - | Sets the mode to use for parsing the CSV file. Default: PERMISSIVE. |
column_name_of_corrupt_record | string | - | Sets the name of the column to store the corrupt record. Maps to columnNameOfCorruptRecord. |
multi_line | boolean | - | Indicates whether to enable multi line mode. Maps to multiLine. |
char_to_escape_quote_escaping | string | - | Sets the character to escape quote escaping. Maps to charToEscapeQuoteEscaping. |
sampling_ratio | number | - | Defines fraction of rows used for schema inferring. Maps to samplingRatio. |
empty_value | string | - | Sets the string representation of an empty value. Maps to emptyValue. |
locale | string | - | Sets the locale to use for parsing dates and timestamps. |
line_separator | string | - | Defines the line separator that should be used for writing. Maps to lineSep. |
unescaped_quote_handling | STOP_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
| Field | Type | Default | Notes |
|---|---|---|---|
header | boolean | true | Use the first row as names of columns. |
infer_schema | boolean | true | Infers the schema of the Excel sheet. Maps to inferSchema. |
sheet_name | string | - | Name of the sheet to read (e.g. 'Sheet1'). If not set, the first sheet is read. Maps to sheetName. |
data_address | string | - | Cell range to read in Excel format (e.g. "'My Sheet'!A1dataAddress. |
treat_empty_values_as_nulls | boolean | true | Whether to treat empty cells as null. Maps to treatEmptyValuesAsNulls. |
use_plain_number_format | boolean | false | When true, format cells without rounding and scientific notation. Maps to usePlainNumberFormat. |
set_error_cells_to_fallback_values | boolean | false | When true, ERROR cell values (e.g. #N/A) are converted to zero values of the column's data type. Maps to setErrorCellsToFallbackValues. |
date_format | string | - | Sets the string that indicates a date format. Maps to dateFormat. |
timestamp_format | string | - | Sets the string that indicates a timestamp format. Maps to timestampFormat. |
excerpt_size | integer | - | Number of rows to use for schema inference. Maps to excerptSize. |
add_color_columns | boolean | - | When true, adds color columns to the DataFrame. Default: false. Maps to addColorColumns. |
max_rows_in_memory | integer | - | 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_size | integer | - | Maximum byte array size to read into memory. Maps to maxByteArraySize. |
temp_file_threshold | integer | - | 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_password | string | - | 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
| Field | Type | Default | Notes |
|---|---|---|---|
allow_backslash_escaping_any_character | boolean | - | Allows accepting quoting of all characters using backslash quoting mechanism. Maps to allowBackslashEscapingAnyCharacter. |
allow_comments | boolean | - | Allows Java/C++ style comments in JSON. Maps to allowComments. |
allow_non_numeric_numbers | boolean | - | Allows JSON parser to recognize set of "Not-a-Number" (NaN) tokens as legal floating number values. Maps to allowNonNumericNumbers. |
allow_numeric_leading_zeros | boolean | - | Allows (non-standard) JSON integers to start with additional zero(s). Maps to allowNumericLeadingZeros. |
allow_single_quotes | boolean | - | Allows single quotes in addition to number quotes. Maps to allowSingleQuotes. |
allow_unquoted_control_chars | boolean | - | Allows JSON Strings to contain unquoted control characters. Maps to allowUnquotedControlChars. |
allow_unquoted_field_names | boolean | - | Allows unquoted field names in JSON. Maps to allowUnquotedFieldNames. |
column_name_of_corrupt_record | string | - | Sets the name of the column to store the corrupt record. Maps to columnNameOfCorruptRecord. |
date_format | string | - | Sets the string that indicates a date format. Default is "yyyy-MM-dd". Maps to dateFormat. |
drop_field_if_all_null | boolean | - | Whether to ignore column of all null values or empty array/struct during schema inference. Maps to dropFieldIfAllNull. |
enable_date_time_parsing_fallback | boolean | - | Indicates whether to enable date time parsing fallback. Maps to enableDateTimeParsingFallback. |
encoding | string | - | For reading, decodes the JSON files by the given encoding type. |
line_separator | string | - | Defines the line separator for parsing JSON files. Maps to lineSep. |
locale | string | - | Sets the locale to use for parsing dates and timestamps. |
mode | PERMISSIVE or DROPMALFORMED or FAILFAST | - | Sets the mode to use for parsing the JSON file. Default: PERMISSIVE. |
multi_line | boolean | - | Parse one record, which may span multiple lines, per file. Maps to multiLine. |
prefers_decimal | boolean | - | Infers all floating-point values as a decimal type. Maps to prefersDecimal. |
primitives_as_string | boolean | - | Infers all primitive values as a string type. Maps to primitivesAsString. |
sampling_ratio | number | - | Defines fraction of rows used for schema inferring. Maps to samplingRatio. |
timestamp_format | string | - | Sets the string that indicates a timestamp format. Default is "yyyy-MM-dd'T'HH:mmtimestampFormat. |
timestamp_without_timezone_format | string | - | Sets the string that indicates a timestamp without time zone format. Default is "yyyy-MM-dd'T'HH:mmtimestampNTZFormat. |
time_zone | string | - | 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
| Field | Type | Default | Notes |
|---|---|---|---|
merge_schema | boolean | - | 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
| Field | Type | Default | Notes |
|---|---|---|---|
merge_schema | boolean | - | When true, merges schemas collected from all Parquet part-files. This will override spark.sql.parquet.mergeSchema. Maps to mergeSchema. |
datetime_rebase_mode | EXCEPTION 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_mode | EXCEPTION 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
| Field | Type | Default | Notes |
|---|---|---|---|
whole_text | boolean | - | If true, read each file from input path(s) as a single row. Maps to wholetext. |
line_separator | string | - | Defines the line separator that should be used for reading. Default handles all \r, \r\n and \n. Maps to lineSep. |