# Greptime 双周精选 （2 月 6 日-2 月 26 日）｜支持 compaction

Source: https://greptime.cn/blogs/2023-03-03-biweekly

## 内容概述

作为一个成长中的开源项目，GreptimeDB 的进展离不开来自全球的社区贡献者们，感谢各位！在这三周内，GreptimeDB 进行了大量的优化和重构，以下是相关重点功能的总结：

- 初步支持 PromQL

- 支持 compaction 功能

- 提供将数据导出到 Parquet 格式文件

- 提供了简单的 REPL 以便开发调试

- 使用对象存储时默认开启缓存

## 社区贡献者名单

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

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

- @[Brian Crant](https://github.com/bcrant) ([db#184](https://github.com/GreptimeTeam/greptimedb/pull/184))

- @[etolbakov](https://github.com/etolbakov) ([db#966](https://github.com/GreptimeTeam/greptimedb/pull/966), [db#973](https://github.com/GreptimeTeam/greptimedb/pull/973), [db#1002](https://github.com/GreptimeTeam/greptimedb/pull/1002), [db#987](https://github.com/GreptimeTeam/greptimedb/pull/987))

- @[hezhizhen](https://github.com/hezhizhen) ([db#949](https://github.com/GreptimeTeam/greptimedb/pull/949), [db#1045](https://github.com/GreptimeTeam/greptimedb/pull/1045))

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

- @[ShenJunkun](https://github.com/ShenJunkun) ([db#868](https://github.com/GreptimeTeam/greptimedb/pull/868), [db#177](https://github.com/GreptimeTeam/greptimedb/pull/177))

- @[WenyXu](https://github.com/WenyXu) ([db#980](https://github.com/GreptimeTeam/greptimedb/pull/980), [db#970](https://github.com/GreptimeTeam/greptimedb/pull/970), [db#1089](https://github.com/GreptimeTeam/greptimedb/pull/1089), [db#1092](https://github.com/GreptimeTeam/greptimedb/pull/1092))

- @[xl Huang](https://github.com/e1ijah1) ([db#928](https://github.com/GreptimeTeam/greptimedb/pull/928), [db#952](https://github.com/GreptimeTeam/greptimedb/pull/952))

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

- @[Yun Chen](https://github.com/masonyc) ([db#957](https://github.com/GreptimeTeam/greptimedb/pull/957))

- @[Zheming Li](https://github.com/lizhemingi) ([db#995](https://github.com/GreptimeTeam/greptimedb/pull/995))

让我们欢迎 **7 位新的贡献者**加入我们的社区，他们的第一个 PR 已经被合并。

**greptimedb**

- @[etolbakov](https://github.com/etolbakov) made their first contribution in [db#966](https://github.com/GreptimeTeam/greptimedb/pull/966)
- @[hezhizhen](https://github.com/hezhizhen) made their first contribution in [db#949](https://github.com/GreptimeTeam/greptimedb/pull/949)
- @[WenyXu](https://github.com/WenyXu) made their first contribution in [db#980](https://github.com/GreptimeTeam/greptimedb/pull/980) 
- @[ShenJunkun](https://github.com/ShenJunkun) made their first contribution in [db#868](https://github.com/GreptimeTeam/greptimedb/pull/868)

**promql-parser**

- @[messense](https://github.com/messense) made their first contribution in [db#46](https://github.com/GreptimeTeam/greptimedb/pull/46) 

**docs**

- @[Brian Crant](https://github.com/bcrant) made their first contribution in [db#184](https://github.com/GreptimeTeam/greptimedb/pull/184)
- @[ShenJunkun](https://github.com/ShenJunkun) made their first contribution in [db#177](https://github.com/GreptimeTeam/greptimedb/pull/177)


非常感谢你们慷慨且出色的贡献! GreptimeDB 能够变得更加出色离不开你们的帮助。让我们一起努力，建立一个更棒的社区！

## PR 亮点

### [db#1042](https://github.com/GreptimeTeam/greptimedb/pull/1042) 初步支持 PromQL

PromQL 作为云原生可观测领域最常用的查询语言，GreptimeDB 已经在近期的 v0.1 版本初步支持了，方便用户更好的对接 Prometheus 生态。在 PromQL 兼容性方面我们还在不断提高，预计会在 v0.2 版本达到 50%, 在 v0.3 版本达到 70%。

### [db#930](https://github.com/GreptimeTeam/greptimedb/pull/930) 支持 compaction 功能

作为 LSM Tree 架构的存储引擎，compaction 是必不可少的，目前 GreptimeDB 会从不同的维度对 SST 文件进行 compact , 来提高存储、查询的效率。

### [db#1000](https://github.com/GreptimeTeam/greptimedb/pull/1000) 提供将数据导出到 Parquet 格式文件

Parquet 是目前在列存引擎中常用的文件格式，其特点可以高效，灵活的处理（存储，压缩，查询）大数据集合，GreptimeDB 通过提供导出功能，方便用户再其他列存数据库中使用。

### [db#1048](https://github.com/GreptimeTeam/greptimedb/pull/1048) 提供了简单的 REPL 以便开发调试

受 InfluxDB_IOx 启发，GreptimeDB 也提供了一个简单的交互接口 (REPL) 以供开发调试。

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

当使用 S3、OSS 或其他对象存储时，默认开启缓存，可以提高查询效率。

## 新鲜事

- 我们开源了和 Prometheus 查询语言 PromQL 完全兼容的 PromQL parser for Rust，代码仓库：https://github.com/GreptimeTeam/promql-parser

- GreptimeDB 针对 Go 语言的 Golang SDK 已经在研发中了，代码仓库：https://github.com/GreptimeTeam/greptimedb-client-go

- GreptimeDB 团队在上海临港参与了 2023 全球 AI 开发者先锋大会，在开源集市专区与超过 500 位参会学生和开发者针对相关行业和产品问题进行积极互动，并参与开放麦主题演讲，收获了广泛好评。

以上是本期《双周精选》的内容，欢迎关注公众号，我们会定期更新项目有关的进展，分享社区发生的新鲜事。同时，也可以通过各种方式参与 GreptimeDB 和其他相关项目。

## 关于 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/
