---
title: Databend 开源周报第 79 期
description: Databend 文档新增 UPDATE 用法，在 Databend 中 Insert、Delete 和 Update 都是原子操作。
slug: category-weekly/databend-weekly-79
date: 2023-02-06
tags: [weekly]
category: Weekly

image: databend-weekly.png
authors:
  - DatabendLabs
---

# Databend 开源周报 第 79 期

{/* truncate */}

> 英文版移步：https://www.databend.com/blog/2023-02-01-databend-weekly
>
> [Databend](https://github.com/databendlabs/databend) 是一款强大的云数仓。专为弹性和高效设计。自由且开源。即刻体验云服务：[https://app.databend.cn](https://app.databend.cn) 。

## What's New

探索 Databend 本周新进展，遇到更贴近你心意的 Databend。

### Features & Improvements :sparkles:

**AST**

- 支持解析预签名内容类型 ([#9771](https://github.com/databendlabs/databend/pull/9771))

**Format**

- 重新引入 TSV 文件格式支持 ([#9732](https://github.com/databendlabs/databend/pull/9732))

**Functions**

- 支持数组函数 prepend 和 append ([#9844](https://github.com/databendlabs/databend/pull/9844))
- 支持数组函数 concat ([#9804](https://github.com/databendlabs/databend/pull/9804))

**Query**

- 在原生存储格式中支持 topN 运行时过滤 ([#9738](https://github.com/databendlabs/databend/pull/9738))
- 允许 hashtable 状态从部分传递到最终 ([#9809](https://github.com/databendlabs/databend/pull/9809))

**Storage**

- 在 EXPLAIN 添加 pruning 相关指标 ([#9724](https://github.com/databendlabs/databend/pull/9724))
- 缓存 bloom index 对象 ([#9712](https://github.com/databendlabs/databend/pull/9712))

### Code Refactoring :tada:

- 'select from stage' 使用 ParquetTable ([#9801](https://github.com/databendlabs/databend/pull/9801))

**Meta**

- 提取 "kvapi" 作为一组公共接口 ([#9791](https://github.com/databendlabs/databend/pull/9791))
- 不允许移除集群中最后一个节点 ([#9781](https://github.com/databendlabs/databend/pull/9781))

**AST/Expression/Planner**

- 统一 Span 和 Result ([#9713](https://github.com/databendlabs/databend/pull/9713))

**Executor**

- 合并 simple pipe 和 resize pipe ([#9782](https://github.com/databendlabs/databend/pull/9782))

### Bug Fixes :wrench:

**Base**

- 修复在非 linux 环境下，jemalloc 需要正确回滚到 std ([#9786](https://github.com/databendlabs/databend/pull/9786))

**Config**

- 修复无法禁用 table_meta_cache 的问题 ([#9767](https://github.com/databendlabs/databend/pull/9767))

**Meta**

- 将数据导入 meta-service 目录时，指定的 "id" 必须是 "initial_cluster" 之一 ([#9755](https://github.com/databendlabs/databend/pull/9755))

**Query**

- 修复并重构 aggregator ([#9748](https://github.com/databendlabs/databend/pull/9748))
- 修复 data port 的内存泄漏 ([#9762](https://github.com/databendlabs/databend/pull/9762))
- 修复将 jsonb 转换到 string 时的 panic ([#9813](https://github.com/databendlabs/databend/pull/9813))

**Storage**

- 修复 max_file_size 潜在的 oom ([#9740](https://github.com/databendlabs/databend/pull/9740))

## What's On In Databend

请持续关注 Databend 的最新动态。

### DML 命令 - UPDATE

用新值修改表中的某些行。

> **注意** Databend 保证数据完整性。在 Databend 中，Insert、Update 和 Delete 操作都是原子操作，这意味着操作中涉及的所有数据都必须全部成功，否则就会全部失败。

**语法**

```sql
UPDATE <table_name>
SET <col_name> = <value> [ , <col_name> = <value> , ... ]
    [ FROM <table_name> ]
    [ WHERE <condition> ]
```

**阅读下述材料以了解更多相关讯息**

- [Docs | DML Command - UPDATE](https://docs.databend.cn/sql/sql-commands/dml/dml-update)

## What's Up Next

我们始终对前沿技术和创新理念持开放态度，欢迎您加入社区，为 Databend 注入活力。

### 支持 Arrow Flight SQL 协议

目前 Databend 兼容 MySQL 协议和 Clickhouse HTTP 协议，如果 Databend 支持 Arrow Flight SQL 协议可能会更好。

通常情况下，Lakehouse 使用 MySQL 协议将数据存储到 Parquet 文件中。对 Databend 而言，存在额外的反序列化开销，从 Parquet 到 Arrow，然后再到返回的 MySQL 数据类型。同样，在调用方/终端用户使用 Data Frame 或 MySQL 结果迭代器的时候，同样需要对类型进行序列化。一旦支持 Arrow Flight SQL 协议，所有这些过程中的序列化/反序列化成本都可以避免。

[Issue 9832: Feature: Support Arrow Flight SQL protocol](https://github.com/databendlabs/databend/issues/9832)

如果你对这个主题感兴趣，可以尝试解决其中的部分问题或者参与讨论和 PR review。或者，你可以点击 https://link.databend.com/i-m-feeling-lucky 来挑选一个随机问题，祝好运！

## Changelogs

前往查看 Databend 每日构建的变更日志，以了解开发的最新动态。

地址：https://github.com/databendlabs/databend/releases

## Contributors

非常感谢贡献者们在本周的卓越工作。

| [<img alt="andylokandy" src="https://avatars.githubusercontent.com/u/9637710?v=4&s=117" width="117" />](https://github.com/andylokandy) | [<img alt="ariesdevil" src="https://avatars.githubusercontent.com/u/7812909?v=4&s=117" width="117" />](https://github.com/ariesdevil) | [<img alt="b41sh" src="https://avatars.githubusercontent.com/u/1070352?v=4&s=117" width="117" />](https://github.com/b41sh) | [<img alt="BohuTANG" src="https://avatars.githubusercontent.com/u/172204?v=4&s=117" width="117" />](https://github.com/BohuTANG) | [<img alt="dantengsky" src="https://avatars.githubusercontent.com/u/22081156?v=4&s=117" width="117" />](https://github.com/dantengsky) | [<img alt="dependabot[bot]" src="https://avatars.githubusercontent.com/in/29110?v=4&s=117" width="117" />](https://github.com/apps/dependabot) |
| :-------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------: |
|                                              [andylokandy](https://github.com/andylokandy)                                              |                                              [ariesdevil](https://github.com/ariesdevil)                                              |                                              [b41sh](https://github.com/b41sh)                                              |                                             [BohuTANG](https://github.com/BohuTANG)                                              |                                              [dantengsky](https://github.com/dantengsky)                                               |                                             [dependabot[bot]](https://github.com/apps/dependabot)                                              |

| [<img alt="drmingdrmer" src="https://avatars.githubusercontent.com/u/44069?v=4&s=117" width="117" />](https://github.com/drmingdrmer) | [<img alt="everpcpc" src="https://avatars.githubusercontent.com/u/1808802?v=4&s=117" width="117" />](https://github.com/everpcpc) | [<img alt="flaneur2020" src="https://avatars.githubusercontent.com/u/129800?v=4&s=117" width="117" />](https://github.com/flaneur2020) | [<img alt="johnhaxx7" src="https://avatars.githubusercontent.com/u/12479235?v=4&s=117" width="117" />](https://github.com/johnhaxx7) | [<img alt="leiysky" src="https://avatars.githubusercontent.com/u/22445410?v=4&s=117" width="117" />](https://github.com/leiysky) | [<img alt="mergify[bot]" src="https://avatars.githubusercontent.com/in/10562?v=4&s=117" width="117" />](https://github.com/apps/mergify) |
| :-----------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------: |
|                                             [drmingdrmer](https://github.com/drmingdrmer)                                             |                                              [everpcpc](https://github.com/everpcpc)                                              |                                             [flaneur2020](https://github.com/flaneur2020)                                              |                                              [johnhaxx7](https://github.com/johnhaxx7)                                               |                                              [leiysky](https://github.com/leiysky)                                               |                                             [mergify[bot]](https://github.com/apps/mergify)                                              |

| [<img alt="PsiACE" src="https://avatars.githubusercontent.com/u/36896360?v=4&s=117" width="117" />](https://github.com/PsiACE) | [<img alt="RinChanNOWWW" src="https://avatars.githubusercontent.com/u/33975039?v=4&s=117" width="117" />](https://github.com/RinChanNOWWW) | [<img alt="soyeric128" src="https://avatars.githubusercontent.com/u/106025534?v=4&s=117" width="117" />](https://github.com/soyeric128) | [<img alt="sundy-li" src="https://avatars.githubusercontent.com/u/3325189?v=4&s=117" width="117" />](https://github.com/sundy-li) | [<img alt="TCeason" src="https://avatars.githubusercontent.com/u/33082201?v=4&s=117" width="117" />](https://github.com/TCeason) | [<img alt="Xuanwo" src="https://avatars.githubusercontent.com/u/5351546?v=4&s=117" width="117" />](https://github.com/Xuanwo) |
| :----------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------: |
|                                              [PsiACE](https://github.com/PsiACE)                                               |                                              [RinChanNOWWW](https://github.com/RinChanNOWWW)                                               |                                               [soyeric128](https://github.com/soyeric128)                                               |                                              [sundy-li](https://github.com/sundy-li)                                              |                                              [TCeason](https://github.com/TCeason)                                               |                                              [Xuanwo](https://github.com/Xuanwo)                                              |

| [<img alt="youngsofun" src="https://avatars.githubusercontent.com/u/5782159?v=4&s=117" width="117" />](https://github.com/youngsofun) | [<img alt="yufan022" src="https://avatars.githubusercontent.com/u/30121694?v=4&s=117" width="117" />](https://github.com/yufan022) | [<img alt="zhang2014" src="https://avatars.githubusercontent.com/u/8087042?v=4&s=117" width="117" />](https://github.com/zhang2014) |
| :-----------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------: |
|                                              [youngsofun](https://github.com/youngsofun)                                              |                                              [yufan022](https://github.com/yufan022)                                               |                                              [zhang2014](https://github.com/zhang2014)                                              |

## Connect With Us

Databend 是一款开源、弹性、低成本，基于对象存储也可以做实时分析的新式数仓。期待您的关注，一起探索云原生数仓解决方案，打造新一代开源 Data Cloud。

- [Databend Website](https://docs.databend.cn)
- [GitHub Discussions](https://github.com/databendlabs/databend/discussions)
- [Twitter](https://twitter.com/Datafuse_Labs)
- [Slack Channel](https://link.databend.com/join-slack)
