# OpenDAL 升级到 0.56，新增 CLI 元数据命令｜Greptime 双周精选 - No. 82

Source: https://greptime.cn/blogs/2026-05-03-greptimedb-biweekly-report

## 内容概述

*开发周期：2026-04-20 - 2026-05-03*

近期主要更新：

- `greptime` CLI 支持 `metadata put` 命令，可以直接操作键值对
- Flat 格式查询在扫描数据文件前预过滤列
- 确保窗口函数查询中 TimeRange 精度和列别名被正确处理

建议旧版本用户升级到最新版本。

## 贡献者

过去两周，共有 **14 位贡献者**合并了 **43 个 PR**。 其中 **5 位社区贡献者**贡献了 **8 个 PR**。
欢迎新贡献者：**[@QuakeWang](https://github.com/QuakeWang)**、**[@BootstrapperSBL](https://github.com/BootstrapperSBL)**、**[@onepizzateam](https://github.com/onepizzateam)**、**[@JoeS51](https://github.com/JoeS51)**！

本期活跃社区贡献者：

> - **[@QuakeWang](https://github.com/QuakeWang)** *[db#8051](https://github.com/GreptimeTeam/greptimedb/pull/8051)* *[db#8036](https://github.com/GreptimeTeam/greptimedb/pull/8036)* *[db#8021](https://github.com/GreptimeTeam/greptimedb/pull/8021)*
> - **[@BootstrapperSBL](https://github.com/BootstrapperSBL)** *[db#8035](https://github.com/GreptimeTeam/greptimedb/pull/8035)*
> - **[@JoeS51](https://github.com/JoeS51)** *[db#7994](https://github.com/GreptimeTeam/greptimedb/pull/7994)*
## PR 亮点

### [db#8003](https://github.com/GreptimeTeam/greptimedb/pull/8003) chore: update the opendal to 0.56 rc2

GreptimeDB 的存储层升级到 OpenDAL 0.56。对象存储接口保持不变，包含了上游的 bug 修复和改进。

### [db#7982](https://github.com/GreptimeTeam/greptimedb/pull/7982) refactor(mito2): remove PrimaryKey variants

Mito 引擎移除了旧的主键扫描路径，所有查询统一使用 Flat 格式。清理了查询执行管道中约 1800 行废弃代码。

### [db#7989](https://github.com/GreptimeTeam/greptimedb/pull/7989) feat(cli): add metadata put key and table commands

GreptimeDB CLI 新增了 `metadata put` 命令，支持直接写入元数据。可以执行键值操作和表级别的更新。用户可以通过 `--value-stdin` 管道传入 JSON 数据来更新表信息和路由，避免 shell 转义问题。

### [db#7972](https://github.com/GreptimeTeam/greptimedb/pull/7972) feat: support prefiltering any columns in flat format

之前 parquet prefiltering 只能处理主键列。现在支持所有列类型（标签、字段、时间戳），对 `IN` 和 `BETWEEN` 等复杂表达式有专门的执行路径。TSBS cpu-max-all 查询快了 4.5 倍。

### [db#8019](https://github.com/GreptimeTeam/greptimedb/pull/8019) fix: window sort off by one precision TimeRange&better alias track

Window sort 优化现在能识别别名和包装的时间索引表达式，比如 `SELECT ts AS timestamp ... ORDER BY timestamp` 和 `SELECT to_timestamp_millis(ts) ... ORDER BY ts`。这些查询会使用更快的 windowed sort 执行路径，而不是回退到常规排序。分区边界的精度转换问题也修复了，时间戳单位变化时不再出现错误的行切片。


## Good First Issue

### [Issue#7755](https://github.com/GreptimeTeam/greptimedb/issues/7755) Feature request: Support EKS Pod Identity / ECS container credentials endpoint for S3 object storage

更新 OpenDAL 依赖到包含 reqsign >=0.18.1 的版本，支持 AWS 容器凭证端点，用于 EKS Pod Identity 和 ECS 任务角色。

* 关键词：Storage, Dependencies
* 难度：Easy

### [Issue#7987](https://github.com/GreptimeTeam/greptimedb/issues/7987) feat: add flow_statistics system table and SHOW FLOW STATUS for flow runtime observability

增加一个名为 `flow_statistics` 的系统表，以及 `SHOW FLOW STATUS` SQL 命令，用于显示 flow 的运行时信息，包括启动时间、运行时长、已处理的数据量和最近的错误。

* 关键词：SQL, Observability
* 难度：Medium
