Table and File Reference
Look up the options and supported formats of the Wvlet engine here. For a walkthrough, start with Tables and Files.
Connector properties
Set these in the properties of a "type": "wvlet" connector:
| Property | Meaning |
|---|---|
dataDir | Folder whose data files and sub-folders (Iceberg tables or folders of Parquet files) become read-only tables, named without the extension |
tables | Object mapping table names to paths |
warehouse | Folder that keeps tables across sessions; unset, they are in memory |
keepSnapshots | Number of newest snapshots to keep per warehouse table; unset, every snapshot is kept |
prepareTPCH, tpchScaleFactor | Register generated TPC-H tables |
prepareTPCDS, tpcdsScaleFactor | Register generated TPC-DS tables |
s3Region | AWS region |
s3Endpoint | URL of an S3-compatible service; also AWS_ENDPOINT_URL_S3 |
s3PathStyle | Use endpoint/bucket/key addresses, as MinIO needs |
s3Anonymous | Send no credentials, for public buckets |
Relative paths resolve against the working folder. The S3 properties override the AWS environment. A name that is both a warehouse table and a dataDir or tables entry is an error.
File formats and options
| Extension | Format | Read | Write |
|---|---|---|---|
.parquet | Parquet | Yes | Yes |
.csv | CSV with a header row | Yes, also .csv.gz | Yes |
.tsv | TSV with a header row | Yes | Yes |
.json, .jsonl | JSON; written as JSON lines | Yes, also .gz | Yes |
.ndjson | JSON lines | Yes | Yes |
Tables of dataDir and tables may also be .tsv.gz or .ndjson.gz files.
Options of save to '<path>' with:
format:parquet,csv,tsv, orjson, overriding the extension;icebergfor an Iceberg tablecompression(Parquet and Iceberg):snappy,zstd,gzip,brotli,lz4, oruncompressedheader(CSV, defaulttrue) anddelimiter(CSV)partition_by(Iceberg): comma-separated columns
append to '<path>' matches columns by position and creates the file when it doesn't exist. Appending to a Parquet file rewrites the file, so prefer an Iceberg table for frequent appends. Files are written to local paths only.
Folders of Parquet files
- Hive partitions:
key=value/sub-folders become columns, and a filter or join on one reads only the matching partitions. A key is alongor adate(yyyy-MM-dd) when all its values are, and a string otherwise.__HIVE_DEFAULT_PARTITION__is NULL. - Added columns: a file without a column reads it as NULL. Columns of the same name must have the same type.
Remote files
The JVM, Native, and Node.js builds read a single Parquet file on https or S3, in queries and in tables, fetching only the parts a query needs. The server must support range requests.
- Credentials are never read from a Wvlet profile. S3 uses those the AWS CLI would use.
- Plain
http://is read only from localhost, and URLs with a query string (such as presigned URLs) aren't supported. - A query fails rather than mixing two versions of a file that changes while it runs, if the server sends a strong ETag, as S3 does. Otherwise, some changes can go unnoticed.
- Globs (
s3://bucket/dir/*.parquet) and Icebergmetadata.jsonfiles are readable on S3, but slower than single files, and without the check for files that change. - JSON and CSV files are read from local paths only.
- A server reads remote files only where its operator allows them.
Iceberg compatibility
| Feature | Support |
|---|---|
| Format versions | 1 to 3 |
| Schema evolution | Added, dropped, renamed, and promoted columns |
| Row-level deletes | Reads position deletes, deletion vectors, and equality deletes |
| Data files | Parquet; ORC and encrypted files are not supported |
| Writing | Local tables with metadata/vN.metadata.json, as the Wvlet engine and Hadoop catalogs create them |
| Catalog-owned tables (pyiceberg, REST catalogs) | Read-only |
save to '<dir>' with format: 'iceberg'creates a table in a new or empty folder, or replaces the rows of an existing Iceberg table. It keeps the table's partitioning unless you givepartition_byor the result drops a partition column. Any other non-empty folder is an error.append toneeds an existing table, matches columns by position, and checks the constraints of a table made bycreate table.- Other engines don't see the defaults and constraints of a
create tabledeclaration, so they can write rows that break them. - A table with Iceberg branches or tags other than
maincan't be renamed.