# Greptime 双周精选 （12 月 26 日 - 1 月 13 日）｜ gRPC 重构优化

Source: https://greptime.cn/blogs/2023-01-27-biweekly

## 内容概述

作为一个成长中的开源项目，GreptimeDB 的进展离不开来自全球的社区贡献者们，感谢各位！

以下是这段时间较为重要的 PR 总结：

首先，祝大家兔年一切顺遂，平安喜乐！由于春节假期原因，我们将三周的项目进展合并到本次双周报中，以下是这段时间的总结：

- 支持**写入数据使用默认值**

- 支持**修改表名**

- 完成 **gRPC 的重构优化**

- 实现**删除数据的 API**

- 开始**兼容 PromQL** 的工作以及相关依赖库的升级

以上进展离不开社区贡献者的帮助，感谢各位！🐰🧨

## 社区贡献者名单

在过去的两周里，共有 **3 位贡献者**，累计 **12 个 PR 被成功合并**，还有很多待合并的 PR。

祝贺以下各位在过去 2 周内成为我们活跃的贡献者：

- @[e1ijah1](https://github.com/e1ijah1) ([db#824](https://github.com/GreptimeTeam/greptimedb/pull/824) [db#864](https://github.com/GreptimeTeam/greptimedb/pull/864) [db#780](https://github.com/GreptimeTeam/greptimedb/pull/780) [db#802](https://github.com/GreptimeTeam/greptimedb/pull/802))

- @[lizheming](https://github.com/lizhemingi) ([db#854](https://github.com/GreptimeTeam/greptimedb/pull/854))

- @[Xuanwo](https://github.com/Xuanwo) ([db#874](https://github.com/GreptimeTeam/greptimedb/pull/874))

过去三周社区的贡献者十分活跃，总计有 **6 个 PR 被合并**， **1 个 PR 等待 merge**，还有 **1 个新贡献者**尝试提交 PR。这次的英雄非 @[e1ijah1](https://github.com/e1ijah1) 莫属，将一个复杂的 issue 拆解成 3 个 PR 提交，并都顺利合并👍！

除此之外，让我们格外感动的是社区贡献者的热情和不弃，请允许我们摘抄一段来自一位活跃的社区贡献者 @[azhsmesos](https://github.com/azhsmesos)  的留言:

Today on Slack, I received a New Year's gift from GreptimeDB community, which made me very happy. Rust Hong persuaded me to withdraw an issue before, but I am still learning and do not give up. **I want to try to complete this issue, I may encounter many problems, but I will not give up, please assign it to me**, thanks!

## PR 亮点

### [db#490](https://github.com/GreptimeTeam/greptimedb/pull/490) 

我们的 gRPC 需要重构优化，比如：

- 在 gRPC 部署过程中使用的 "object" 和 "expr" 名称本身并不清晰；

- gRPC 对象和其他协议（比如 Prometheus remote read write）请求和返回结果的转换比较繁琐；

- 很难使用 gRPC CLI 工具来调试

- 其他问题。

这些上一期未完成的任务，本期都已完成。

### [db#755](https://github.com/GreptimeTeam/greptimedb/pull/755) 

实现删除数据的功能，目前仅提供了删除的 API，还不支持 delete 的 SQL 语句，非常欢迎参与贡献。

## 新鲜事

### [db#63](https://github.com/GreptimeTeam/greptimedb/pull/63)

我们刚刚合并了 GreptimeDB Dashboard 的脚本工作台分支。现在可以直接从 Dashboard 管理、编辑和运行 Python 脚本。

## Good first issue

### [db#759](https://github.com/GreptimeTeam/greptimedb/pull/759) 写入数据时支持使用默认值

写入数据的时候支持使用默认值是大部分数据库都有的功能，在 [@lizheming](https://github.com/lizhemingi) 的贡献下，GreptimeDB 也跟上了。这个 PR 是正值疫情高峰期间完成，特别感谢 [@lizheming](https://github.com/lizhemingi)，也想借此机会，望大家注意休息，保重身体，一切安好。

### [db#823](https://github.com/GreptimeTeam/greptimedb/pull/823) 支持阿里云 OSS 对象存储

GreptimeDB 已经支持本地文件和基于 OpenDAL 的 Amazon S3 存储，我们也希望支持 Aliyun OSS。因为 OpenDAL 已经支持 OSS，所以我们只需要基于 OpenDAL 实现即可。

## 关于 Greptime

[Greptime 格睿科技](https://greptime.cn/)专注于为可观测、物联网及车联网等领域提供实时、高效的数据存储和分析服务，帮助客户挖掘数据的深层价值。目前基于云原生的时序数据库 [GreptimeDB](https://github.com/GreptimeTeam/greptimedb) 已经衍生出多款适合不同用户的解决方案，更多信息或 demo 展示请联系下方小助手（微信号：greptime）。

欢迎对开源感兴趣的朋友们参与贡献和讨论，从带有 good first issue 标签的 issue 开始你的开源之旅吧～期待在开源社群里遇见你！添加小助手微信即可加入“技术交流群”与志同道合的朋友们面对面交流哦~

Star us on GitHub Now: https://github.com/GreptimeTeam/greptimedb

官网：https://greptime.cn/

文档：https://docs.greptime.cn/

Twitter: https://twitter.com/Greptime

Slack: https://greptime.com/slack

LinkedIn: https://www.linkedin.com/company/greptime/
