# 更多 SQL 例子入驻 Playground｜ Greptime 双周精选

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

## 内容概述

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

在过去两周中，我们砥砺前行。以下是这段时间的总结：

- Remote WAL 基本框架搭建完毕；

- HTTP SQL API 新增能够以 influxdb v1 的格式返回 SQL 查询结果；

- 支持并发获取 Parquet，提升查询性能；

- 倒排索引与 Metric Engine 全速开发中。

## 社区贡献者名单

在过去的两周里，GreptimeDB 共合并了 79 个 PR，其中有 3 位独立贡献者，累计 5 个 PR 被成功合并，还有很多待合并的 PR。

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

- @[Dysprosium](https://github.com/Dysprosium0626) ([db#2919](https://github.com/GreptimeTeam/greptimedb/pull/2919))

- @[NiwakaDev](https://github.com/NiwakaDev) ([docs#712](https://github.com/GreptimeTeam/docs/pull/712))

- @[tisonkun](https://github.com/tisonkun) ([db#2906](https://github.com/GreptimeTeam/greptimedb/pull/2906) [db#2898](https://github.com/GreptimeTeam/greptimedb/pull/2898) [db#2896](https://github.com/GreptimeTeam/greptimedb/pull/2896))

🎉 热烈欢迎 @[Dysprosium](https://github.com/Dysprosium0626) 作为新的贡献者加入社区并成功合并了首个 PR，还有更多来自其他独立贡献者的 PR 正在等待合并。

同时衷心感谢我们所有的成员和贡献者！是你们的付出让我们的项目得以成功，也是你们让 GreptimeDB 成为一个更优质的产品。让我们一起努力，建立一个更棒的社区！

## PR 亮点

### [db#2917](https://github.com/GreptimeTeam/greptimedb/pull/2917) HTTP SQL API 新增能够以 influxdb v1 的格式返回 SQL 查询结果

支持将查询结果以 influxdb v1 的格式返回，例如，我们可以发送如下请求：
`http://ip:port/v1/sql?db=public&format=influxdb_v1&epoch=ns`；
时间精度可以是：`[ns,u,µ,ms,s]`。

### [db#2935](https://github.com/GreptimeTeam/greptimedb/pull/2935) 为 `information_schema` 添加更多的表

`information_schema` 提供了一种查看系统元数据的 ANSI 标准方法，目前我们在 `information_schema` 中添加了 `engines`、`column_privileges` 和`column_statistics`。

例如，我们可以通过如下 SQL 语句查看系统的 engines：

```sql
mysql> select * from engines;
+--------+---------+-------------------------------------+--------------+------+------------+
| engine | support | comment                             | transactions | xa   | savepoints |
+--------+---------+-------------------------------------+--------------+------+------------+
| mito   | DEFAULT | Storage engine for time-series data | NO           | NO   | NO         |
+--------+---------+-------------------------------------+--------------+------+------------+
```

### [db#2930](https://github.com/GreptimeTeam/greptimedb/pull/2930) 允许在后台初始化 regions

现在允许用户在后台启动所有 regions 的初始化过程，而不会延迟或阻止数据库启动过程。因此，用户可以更快地开始使用数据库。

### [db#2959](https://github.com/GreptimeTeam/greptimedb/pull/2959) 支持根据范围并行获取 Parquet 文件

先前我们需要按顺序获取 Parquet 文件，现在优化为并发获取。在 TSBS 基准测试下，某些场景下达到了  175% 的性能提升。

## 新鲜事

### PLAYGROUND 中可以使用更多的 SQL 语句

原有的「立即开始」文档增加了新的数据源，并且添加了时间范围查询的示例 SQL 语句。除此之外，Playground 还为时间范围查询添加了「天气案例」文档，快来试试吧：https://greptime.cn/playground/

## Good First Issue

### [db##2931](https://github.com/GreptimeTeam/greptimedb/issues/2931)  

manifest 文件添加 checksum 校验机制。

### [db#2995](https://github.com/GreptimeTeam/greptimedb/issues/2995)

实现可配置的标准输出日志附加器。

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