Skip to main content

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:

PropertyMeaning
dataDirFolder whose data files and sub-folders (Iceberg tables or folders of Parquet files) become read-only tables, named without the extension
tablesObject mapping table names to paths
warehouseFolder that keeps tables across sessions; unset, they are in memory
keepSnapshotsNumber of newest snapshots to keep per warehouse table; unset, every snapshot is kept
prepareTPCH, tpchScaleFactorRegister generated TPC-H tables
prepareTPCDS, tpcdsScaleFactorRegister generated TPC-DS tables
s3RegionAWS region
s3EndpointURL of an S3-compatible service; also AWS_ENDPOINT_URL_S3
s3PathStyleUse endpoint/bucket/key addresses, as MinIO needs
s3AnonymousSend 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​

ExtensionFormatReadWrite
.parquetParquetYesYes
.csvCSV with a header rowYes, also .csv.gzYes
.tsvTSV with a header rowYesYes
.json, .jsonlJSON; written as JSON linesYes, also .gzYes
.ndjsonJSON linesYesYes

Tables of dataDir and tables may also be .tsv.gz or .ndjson.gz files.

Options of save to '<path>' with:

  • format: parquet, csv, tsv, or json, overriding the extension; iceberg for an Iceberg table
  • compression (Parquet and Iceberg): snappy, zstd, gzip, brotli, lz4, or uncompressed
  • header (CSV, default true) and delimiter (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 a long or a date (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 Iceberg metadata.json files 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​

FeatureSupport
Format versions1 to 3
Schema evolutionAdded, dropped, renamed, and promoted columns
Row-level deletesReads position deletes, deletion vectors, and equality deletes
Data filesParquet; ORC and encrypted files are not supported
WritingLocal 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 give partition_by or the result drops a partition column. Any other non-empty folder is an error.
  • append to needs an existing table, matches columns by position, and checks the constraints of a table made by create table.
  • Other engines don't see the defaults and constraints of a create table declaration, so they can write rows that break them.
  • A table with Iceberg branches or tags other than main can't be renamed.