Views
A view is a logical table that encapsulates business logic and domain-specific semantics. While most compute engines support views natively, each engine stores view metadata in proprietary formats, creating interoperability challenges across different platforms. Paimon views abstracting engine-specific query dialects and establishing unified metadata standards. View metadata could enable centralized view management that facilitates cross-engine sharing and reduces maintenance complexity in heterogeneous computing environments.
Catalog support
View metadata is persisted only when the catalog implementation supports it:
- Hive metastore catalog – view metadata is stored together with table metadata inside the metastore warehouse.
- REST catalog – view metadata is kept in the REST backend and exposed through the catalog API.
File-system catalogs do not currently support views because they lack persistent metadata storage.
Representation structure
| Field | Type | Description |
|---|---|---|
query | string | Canonical SQL SELECT statement that defines the view. |
dialect | string | SQL dialect identifier (for example, spark or flink). |
Multiple representations can be stored for the same version so that different engines can access the view using their native dialect.