Object Storage Destinations
Object storage destinations write files to S3, MinIO, GCS, or Azure Blob.
Providers: s3 | minio | gcs | azure_blob
Output fields
Every output in this type carries these fields; provider and format values live under options.
| Field | Type | Default | Notes |
|---|---|---|---|
name (required) | string | - | - |
mode (required) | overwrite or append | - | - |
from (required) | string | - | - |
subpath | string | - | - |
format (required) | csv or json or orc or parquet or text or excel | - | - |
Minimal example
A complete object_storage destination with one output, 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 |
|---|---|---|---|
endpoint_region | string | - | Region hint for the endpoint/bucket. Useful for some private endpoints or when endpoint parsing is not reliable. Maps to fs.s3a.endpoint.region. |
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. |
multipart_size | integer | - | Minimum part size for multipart uploads (bytes). Minimum: 0. Maps to fs.s3a.multipart.size. |
fast_upload | boolean | true | Enable fast upload mechanism for writes to S3. Maps to fs.s3a.fast.upload. |
fast_upload_buffer | disk or array or bytebuffer | disk | Buffer type used for fast upload. Maps to fs.s3a.fast.upload.buffer. |
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 |
|---|---|---|---|
endpoint_region | string | - | Region hint for the endpoint/bucket. Useful for some private endpoints or when endpoint parsing is not reliable. Maps to fs.s3a.endpoint.region. |
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. |
multipart_size | integer | - | Minimum part size for multipart uploads (bytes). Minimum: 0. Maps to fs.s3a.multipart.size. |
fast_upload | boolean | true | Enable fast upload mechanism for writes to S3. Maps to fs.s3a.fast.upload. |
fast_upload_buffer | disk or array or bytebuffer | disk | Buffer type used for fast upload. Maps to fs.s3a.fast.upload.buffer. |
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 | SERVICE_ACCOUNT_JSON_KEYFILE | 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. |
outputstream_buffer_size | integer | 8388608 | Write buffer size for output streams (bytes). Maps to fs.gs.outputstream.buffer.size. |
upload_chunk_size | integer | 25165824 | Upload chunk size for write operations (bytes). Maps to fs.gs.outputstream.upload.chunk.size. |
batch_threads | integer | 15 | Number of threads for parallel GCS operations. Minimum: 1. Maps to fs.gs.batch.threads. |
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 |
|---|---|---|---|
write_request_size | integer | - | Write request size for Azure Blob Storage (bytes). Minimum: 0. Maps to fs.azure.write.request.size. |
block_blob_compaction_dirs | string | - | Comma-separated list of directories where block blob compaction is enabled. Maps to fs.azure.block.blob.with.compaction.dir. |
page_blob_dirs | string | - | Comma-separated list of directories that should use page blobs. Maps to fs.azure.page.blob.dir. |
page_blob_size | integer | - | Initial page blob size (bytes). Must be >= 128MB. Minimum: 134217728. Maps to fs.azure.page.blob.size. |
page_blob_extension_size | integer | - | Page blob extension size (bytes). Must be >= 128MB. Minimum: 134217728. Maps to fs.azure.page.blob.extension.size. |
enable_append_support | boolean | false | Enable Append API support (single-writer semantics required). Maps to fs.azure.enable.append.support. |
atomic_rename_dirs | string | - | Comma-separated list of directories where rename operations are atomic. Maps to fs.azure.atomic.rename.dir. |
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. |
Streaming query options
These apply to every output in a streaming pipeline:
| Field | Type | Default | Notes |
|---|---|---|---|
output_mode | append or complete or update | append | Output mode of the streaming query. append: only new rows; complete: full result table; update: only updated rows (since 2.0). Maps to outputMode. |
trigger_interval | string | - | Trigger interval for processing (e.g. '10 seconds', '1 minute'). When set, uses Trigger.ProcessingTime(interval). Maps to triggerInterval. |
checkpoint_location | string | - | Optional custom checkpoint directory. When not set, a default under /app/data/spark-checkpoints/ is used. Maps to checkpointLocation. |
query_name | string | - | Name for the streaming query (for monitoring and debugging). Maps to queryName. |
File format options
An output'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. |
quote_all | boolean | - | Indicates whether all values should always be enclosed in quotes. Maps to quoteAll. |
escape | string | - | Sets the single character used for escaping quotes inside an already quoted value. |
escape_quotes | boolean | - | Indicates whether values containing quotes should always be enclosed in quotes. Maps to escapeQuotes. |
header | boolean | true | Uses the first line as names of columns. Default: false. |
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. |
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. |
char_to_escape_quote_escaping | string | - | Sets the character to escape quote escaping. Maps to charToEscapeQuoteEscaping. |
empty_value | string | - | Sets the string representation of an empty value. Maps to emptyValue. |
line_separator | string | - | Defines the line separator that should be used for writing. Maps to lineSep. |
compression | none or bzip2 or deflate or gzip or lz4 or snappy or zstd | - | Compression codec to use when saving to file. Default: none. |
excel
Valid options for writing Excel files via crealytics spark-excel
| Field | Type | Default | Notes |
|---|---|---|---|
header | boolean | true | Write the first row as column names. |
data_address | string | - | Cell address or range where to write (e.g. "'My Sheet'!A1"). Used with append mode for multiple sheets. Maps to dataAddress. |
treat_empty_values_as_nulls | boolean | - | When true, empty values are treated as null. Maps to treatEmptyValuesAsNulls. |
date_format | string | - | Format string for date columns. Maps to dateFormat. |
timestamp_format | string | - | Format string for timestamp columns. Maps to timestampFormat. |
use_plain_number_format | boolean | false | When true, write numbers without rounding or scientific notation. Maps to usePlainNumberFormat. |
max_rows_in_memory | integer | - | Maximum number of rows to write in memory. When set, it uses a streaming writer which can help with big files. Maps to maxRowsInMemory. |
json
Valid options for JSON output operations based on Spark JSON data source version 3.5.1
| Field | Type | Default | Notes |
|---|---|---|---|
compression | none or bzip2 or deflate or gzip or lz4 or snappy or zstd | - | Compression codec to use when saving to file. Default: none. |
date_format | string | - | Sets the string that indicates a date format. Default is "yyyy-MM-dd". Maps to dateFormat. |
encoding | string | - | Specifies encoding (charset) of saved JSON files. |
ignore_null_fields | boolean | - | Whether to ignore null fields when generating JSON objects. Default: false. Maps to ignoreNullFields. |
line_separator | string | - | Defines the line separator that should be used for writing. Maps to lineSep. |
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 output operations based on Spark ORC data source version 3.5.1
| Field | Type | Default | Notes |
|---|---|---|---|
compression | none or snappy or zlib or lzo or zstd or lz4 | - | Compression codec to use when saving to file. This will override orc.compress and spark.sql.orc.compression.codec. Default: snappy. |
parquet
Valid options for Parquet output operations based on Spark Parquet data source version 3.5.1
| Field | Type | Default | Notes |
|---|---|---|---|
compression | none or uncompressed or snappy or gzip or lzo or brotli or lz4 or zstd | - | Compression codec to use when saving to file. Default: snappy. |
block_size | integer | - | The size of the block to write to the file (bytes). Default: 134217728 (128 MB). Maps to parquet.block.size. |
text
Valid options for Text output operations based on Spark Text data source version 3.5.1
| Field | Type | Default | Notes |
|---|---|---|---|
compression | none or bzip2 or deflate or gzip or lz4 or snappy or zstd | - | Compression codec to use when saving to file. Default: none. |
line_separator | string | - | Defines the line separator that should be used for writing. Default is \n. Maps to lineSep. |
avro
Valid options for Avro output operations based on Spark Avro data source version 3.5.1
| Field | Type | Default | Notes |
|---|---|---|---|
compression | uncompressed or snappy or deflate or bzip2 or xz or zstandard | - | Compression codec to use when saving to Avro file. Default: snappy. |
record_name | string | - | Top level record name in write result. Default: topLevelRecord. Maps to recordName. |
record_namespace | string | - | Record namespace in write result. Default: empty string. Maps to recordNamespace. |