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

File System Sources

File system sources read files from local disk, SFTP, SMB, OneDrive, or SharePoint. An asset needs a format and a files_pattern.

Providers: local | onedrive | sharepoint | sftp | smb

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 files. Recursive traversal is controlled by 'recursive'; '**' is not supported.
recursivebooleanfalseWhen true, traverse descendant folders and include matching files. When false (default), only immediate files are considered. For recursive file_name offsets, file names should be globally unique/sortable across descendant folders.
max_depthinteger-Optional maximum descendant-folder depth when recursive is true. If omitted, recursive traversal is unlimited. Minimum: 1.
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. When false, 'downloading_directory' is required.
downloadable_files.downloading_directory (required)string-Required persistent directory where downloaded files are stored. Temporary staging used internally is cleaned after the pipeline run.
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.

Settings options

These settings.options apply to every provider:

FieldTypeDefaultNotes
ignore_corrupt_filesboolean-When set to true, Spark will ignore corrupt files while reading data from files. The Spark jobs will continue to run when encountering corrupted files and the contents that have been read will still be returned. Maps to ignoreCorruptFiles.
ignore_missing_filesboolean-When set to true, Spark will ignore missing files while reading data from files. Missing file means the deleted file under directory after you construct the DataFrame. The Spark jobs will continue to run when encountering missing files and the contents that have been read will still be returned. Maps to ignoreMissingFiles.
modified_beforestring-An optional timestamp to only include files with modification times occurring before the specified time. The provided timestamp must be in the following format: YYYY-MM-DDTHH:mm (e.g. 2020-06-01T13:00:00). Note: Structured Streaming file sources don't support this option. Maps to modifiedBefore.
modified_afterstring-An optional timestamp to only include files with modification times occurring after the specified time. The provided timestamp must be in the following format: YYYY-MM-DDTHH:mm (e.g. 2020-06-01T13:00:00). Note: Structured Streaming file sources don't support this option. Maps to modifiedAfter.
time_zonestring-Sets the timezone ID to be used to interpret timestamps for modifiedBefore and modifiedAfter options. When not provided, the timestamps will be interpreted according to the Spark session timezone (spark.sql.session.timeZone). Maps to timeZone.

Minimal example

A complete file_system source with one asset, written for provider local:

Code
sources: - name: orders type: file_system provider: local # Reuse a saved connection instead of the fields below: # connection_name: <name> settings: url: /app/data/orders assets: - name: orders_raw format: parquet files_pattern: "*.parquet"

Providers

local

An example for provider local:

Code
sources: - name: orders type: file_system provider: local # Reuse a saved connection instead of the fields below: # connection_name: <name> settings: url: /app/data/orders 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-Local directory path (e.g., /app/data/inputs/orders).

onedrive

An example for provider onedrive:

Code
sources: - name: orders type: file_system provider: onedrive # Reuse a saved connection instead of the fields below: # connection_name: <name> settings: url: <url> email: <email> auth: tenant_id: <tenant_id> client_id: <client_id> client_secret: <client_secret> 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-Microsoft Graph API URL to list folder children (e.g., https://graph.microsoft.com/v1.0/users/&#123;user&#125;/drive/root:/&#123;path&#125;:/children).
email (required)string-Email address of the OneDrive user (e.g., user@example.com).
auth (required)object--
auth.tenant_id (required)string-Tenant ID for Azure authentication.
auth.client_id (required)string-Client ID for Azure authentication.
auth.client_secret (required)string-Client secret for Azure authentication.

sharepoint

An example for provider sharepoint:

Code
sources: - name: orders type: file_system provider: sharepoint # Reuse a saved connection instead of the fields below: # connection_name: <name> settings: url: <url> site_id: <site_id> drive_id: <drive_id> auth: tenant_id: <tenant_id> client_id: <client_id> client_secret: <client_secret> 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-Microsoft Graph API URL to list folder children (e.g., https://graph.microsoft.com/v1.0/sites/&#123;site-id&#125;/drives/&#123;drive-id&#125;/root:/&#123;path&#125;:/children).
site_id (required)string-Site ID of the SharePoint site (e.g., site-id).
drive_id (required)string-Drive ID of the SharePoint document library (e.g., b!abc123def456ghi789jkl012mno345).
auth (required)object--
auth.tenant_id (required)string-Tenant ID for Azure authentication.
auth.client_id (required)string-Client ID for Azure authentication.
auth.client_secret (required)string-Client secret for Azure authentication.

sftp

An example for provider sftp:

Code
sources: - name: orders type: file_system provider: sftp # Reuse a saved connection instead of the fields below: # connection_name: <name> settings: url: sftp://<host>/uploads/orders host: <host> auth: user: <user> password: <password> 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-Remote directory path on the SFTP server (e.g., sftp://home/user/data or /home/user/data).
host (required)string-SFTP server hostname or IP address.
portinteger22SFTP port (default: 22). Range: 1 to 65535.
auth (required)object--
auth.user (required)string-SSH/SFTP username.
auth.password (required)string-SSH/SFTP password.

smb

An example for provider smb:

Code
sources: - name: orders type: file_system provider: smb # Reuse a saved connection instead of the fields below: # connection_name: <name> settings: url: smb://<host>/share/orders host: <host> auth: user: <user> password: <password> 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-Share name and optional subdirectory path (e.g., 'SharedDocuments/orders' or 'data'). An smb:// prefix is stripped automatically.
host (required)string-SMB server hostname or IP address.
portinteger445SMB port (default: 445). Range: 1 to 65535.
domainstring-Windows/NTLM domain (e.g., 'WORKGROUP' or 'CORP'). Optional - defaults to empty string (workgroup/local auth).
auth (required)object--
auth.user (required)string-SMB/NTLM username.
auth.password (required)string-SMB/NTLM password.

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
NoSQL SourcesObject Storage Sources
On this page
  • Asset fields
  • Settings options
  • Minimal example
  • Providers
    • local
    • onedrive
    • sharepoint
    • sftp
    • smb
  • File format options
    • csv
    • excel
    • json
    • orc
    • parquet
    • text
  • Related pages
YAML
YAML
YAML
YAML
YAML
YAML