Module view

Source
Expand description

View management for Apache Iceberg tables

This module provides the core functionality for working with Iceberg views:

  • Creating and managing views through the View struct
  • Atomic updates via transaction support
  • Schema evolution and versioning
  • View metadata management
  • Integration with catalogs and object stores

Views provide a logical abstraction over underlying data, supporting:

  • SQL-based view definitions
  • Schema evolution tracking
  • Version history
  • Properties and configuration
  • Metadata management

§Example

use iceberg_rust::view::View;

// Create a new view using the builder pattern
let mut view = View::builder()
    .with_name("example_view")
    .with_schema(/* ... */)
    .build()
    .await?;

// Start a transaction to update the view
view.new_transaction(None)
    .update_properties(vec![("comment".into(), "Example view".into())])
    .commit()
    .await?;

Modules§

transaction
Defines the Transaction type for views to perform multiple view [Operation]s with ACID guarantees.

Structs§

View
An Iceberg view provides a logical view over underlying data with schema evolution and versioning