Support Iceberg SQL views

未关闭
#1,099 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
cpp
领域
databases

调研方向

Start with PR #1069 and the existing table catalog APIs, then read the Iceberg view and REST catalog specifications linked in the issue. The scope spans metadata, JSON, lifecycle handling, REST operations, and integration tests; use the listed validation areas to map the work. Done means persisted views support the specified lifecycle through a REST catalog while existing table APIs remain compatible.

由索引模型根据 Issue 内容生成。

描述

Add support for persisted Iceberg SQL views so C++ applications can create, inspect, and manage view definitions through a REST catalog.

The initial metadata types and validation are under review in https://github.com/apache/iceberg-cpp/pull/1069. This issue tracks the complete implementation and expands the view-related work listed in #273.

Proposed scope

  • View metadata types, version history, representations, and validation — #1069.
  • View metadata JSON parsing and serialization, including preservation of unknown representation payloads.
  • View update and requirement types matching the REST wire contract.
  • A metadata builder for schema/version reuse, ordered updates, history retention, and dialect-removal checks.
  • A separate ViewCatalog interface and View handle, with an in-memory implementation for lifecycle tests.
  • REST read operations: load, exists, and paginated list.
  • REST mutations: create, replace, rename, drop, and register, plus property and location updates.

Expected behavior

  • Existing table catalog APIs remain compatible.
  • View handles expose immutable metadata snapshots. Refresh checks the view UUID and installs metadata and response configuration together.
  • SQL representation lookup matches dialects without regard to ASCII case and reports an absent dialect.
  • REST operations honor advertised endpoints and reuse existing authentication and error-handling behavior.
  • Mutations preserve ordered update semantics and report uncertain commit outcomes without automatically replaying the commit.

Validation

  • Metadata and JSON tests using view-format fixtures from the Java and Rust implementations.
  • In-memory lifecycle tests covering history, rollback, schema/version reuse, refresh, and snapshot immutability.
  • REST tests for request/response handling, endpoint discovery, pagination, conflicts, and uncertain commit outcomes.
  • A reference REST catalog integration test covering create, load, replace, rename, and drop.

SQL parsing and planning, materialized views, production storage in non-REST backends, and conditional replacement beyond the standard REST requirements are outside this initial scope.

References:

主要语言
C++
星标
227
派生
142
平均合并
3 天 21 分钟
30 天内合并 PR
70

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/iceberg-cpp 的其他 Issue

查看 apache/iceberg-cpp 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。