Before you start
Prepare an input file or folder, a private output folder, and storage access for the driver and workers. Use a separate output folder for each format. An output path names a dataset directory, even if its name ends with a file extension. The engine can read files through a configured storage mount or its runtime storage resolver. Runtime reads need a supported location, a valid identity, and access to the data. Writes require an explicit mount that covers the destination. A read that succeeds through runtime credentials does not by itself make that path a writable mount. Use File sources to define mounts. Local paths must be visible at the same location on the driver and workers. Remote workers need shared storage or an object store.
Read access needs permission to list a folder and read its objects. Write access also needs the permissions required to publish dataset files and metadata. Use an identity with access to the private example destination.
Read in SQL
Create a local temporary view in Workbench. Keep its queries in the same session. Replace the path with a file or folder visible to the engine.header 'true' when the first record contains column names. Use an explicit schema when column types must stay fixed. See CSV and TSV.
File-source views are local temporary views. Persistent and global temporary views are not supported for this form. IF NOT EXISTS is also not supported.
Connect a Python client
Use a PySpark client version supported by your deployment. Install its Spark Connect dependencies. Obtain the engine’s Spark Connect endpoint, including any required client authentication settings.spark. See Notebook connection settings.
Each format guide uses this connection for its client examples. Paths refer to engine storage. A path on the client’s laptop is not uploaded by calling load or save.
Read options shared by file formats
These are read options. A file writer uses the configured destination mount. It does not accept these connection or file-selection options in its writer options.
Folder selection is bounded by file-source limits. Use one compatible schema across the selected files. File-name filtering does not create a partitioned-table schema.
Write and verify a dataset
The client supportsmode("append") and mode("overwrite"). Append adds rows. Whole-dataset overwrite replaces the active rows. Neither mode performs an update or merge of individual records.
Use the same format and compatible schema for later appends. CSV and TSV also need compatible parsing options. The first write can establish a new file dataset inside a mounted destination. This differs from Delta writes, which require an existing table.
After a write returns successfully, read the destination through the engine. Check row counts, column types, and known values. For the sample rows used in these guides, expect two rows and an amount total of 20.0.
Writes publish part files through the engine’s commit path. Readers use the published dataset state. Old or uncommitted files can remain in storage, so a directory listing is not a list of active rows. Repeating a completed append adds the rows again. Use overwrite for the repeatable examples below.
SQL directory exports support STORED AS PARQUET, AVRO, and JSONFILE. Use the client writer for CSV, TSV, or Arrow IPC exports. Direct file writes do not support partitioning, bucketing, clustering, sort layout, or schema-evolution options.