Skip to content

Cloud Data ​

The wvlet.uni.cloud packages read and write data where it usually lives today: in object storage, as Parquet files, organized as Iceberg or Delta Lake tables. They are part of the uni artifact and written in Scala. They don't pull in Hadoop, iceberg-java, Avro, or the AWS, Google, or Azure SDKs, so a service, a CLI, a Scala Native binary, or a browser page can read a data lake with the same code.

PagePackageWhat it does
Object Storagewvlet.uni.cloud.storageRead, write, list, and presign objects in S3, R2, MinIO, Google Cloud Storage, and Azure Blob, with their credential chains
Parquetwvlet.uni.cloud.parquetRead and write Parquet files and partitioned datasets, from and to case classes, maps, JSON, or column batches, with filters that skip files and row groups
Iceberg Tableswvlet.uni.cloud.icebergRead, create, append to, delete and update rows in, compact, and alter Apache Iceberg tables (format versions 1 to 3)
Delta Lake Tableswvlet.uni.cloud.parquetRead Delta Lake tables, with time travel and typed partitions
Arrow IPCwvlet.uni.cloud.arrowSend column batches to pyarrow, pandas, polars, Arrow JS, and ADBC clients as Arrow streams or files

A Table in S3, End to End ​

Write case classes as an Iceberg table, append to it, and read back only the rows a filter matches. The first write creates the table; Spark, Trino, DuckDB, and pyiceberg can read it too.

scala
import wvlet.uni.cloud.parquet.*
import wvlet.uni.cloud.parquet.ParquetFilter.col
import wvlet.uni.weaver.Weaver
import java.time.LocalDate

case class Order(id: Long, customer: String, dt: LocalDate, amount: Double) derives Weaver

val root    = "s3://my-bucket/warehouse/orders/"
val day     = LocalDate.parse("2026-11-20")
val asTable = ParquetDatasetWriteOptions
  .default
  .withTableFormat(ParquetTableFormat.Iceberg)
  .withPartitionBy("dt")

Parquet.writeDataset(root, Seq(Order(1L, "aina", day, 12.5)), asTable)
Parquet.writeDataset(
  root,
  Seq(Order(2L, "leo", day, 40.0)),
  asTable.withMode(ParquetWriteMode.Append) // one more snapshot
)

val table = Parquet.dataset(root)
val large =
  try table.readAs[Order](ParquetReadOptions.default.withFilter(col("amount") >= 20.0)).toSeq
  finally table.close()
// Seq(Order(2, leo, 2026-11-20, 40.0))

ObjectStore.s3() finds AWS credentials as the AWS SDK does: environment variables, ~/.aws profiles and SSO, and the EC2, ECS, and EKS metadata services. gs:// and az:// roots work the same way with Google and Azure credentials (see Object Storage).

Platforms ​

JVMScala NativeNode.jsBrowsers
Object storage✓✓✓✓ (...Async calls, CORS)
Parquet files and datasets✓✓✓✓ (async reads and writes)
Iceberg reads, creates, appends, overwrites✓✓✓✓ (async)
Iceberg deletes, updates, compaction, schema changes✓✓✓—
Delta Lake reads✓✓✓✓ (async)
Arrow IPC writes✓✓✓✓

From TypeScript or JavaScript, the npm package @wvlet/uni reads and writes Parquet files and datasets (see Parquet from TypeScript).

Uni and Other Engines ​

Spark, Trino, Flink, DuckDB, pyiceberg, and delta-rs are the engines most data lakes run on, and Uni reads and writes the same files and tables, so they work side by side. Those engines fit cluster-scale jobs, SQL over many tables, and catalog-owned tables. Uni fits the code around them: an API server that reads a table, a job that appends results, a CLI or Scala Native binary that needs no JVM, or a browser page that shows a Parquet file.

Know the current limits before you choose:

  • Iceberg commits go to Hadoop tables (metadata/vN.metadata.json, no catalog). Commit to tables a Glue, REST, Hive, or SQL catalog owns through the catalog; Uni can read them from the catalog's metadata file.
  • Iceberg partitions that Uni writes are identity partitions on string, int, long, and date columns. Tables with day, bucket, or truncate partitions read, take deletes, and compact, but don't take appends yet.
  • Delta Lake is read-only, and tables with deletion vectors or column mapping fail by name.
  • Encrypted Iceberg tables and Parquet files aren't read, since they need a key management service.
  • Arrow is written, not read.

Released under the Apache 2.0 License.