--- title: Databend 开源周报第 144 期 description: slug: databend-weekly-144 date: 2024-05-06 tags: [weekly] cover_url: databend-weekly.svg image: databend-weekly.png contributors: - name: andylokandy - name: b41sh - name: BohuTANG - name: dantengsky - name: dqhl76 - name: drmingdrmer - name: everpcpc - name: flaneur2020 - name: forsaken628 - name: Freejww - name: hanxuanliang - name: kkk25641463 - name: lichuang - name: shamb0 - name: soyeric128 - name: sundy-li - name: TCeason - name: Xuanwo - name: xudong963 - name: youngsofun - name: zhang2014 - name: zhyass authors: - databendlabs --- > [Databend](https://github.com/datafuselabs/databend) 是一款现代云数仓。专为弹性和高效设计,为您的大规模分析需求保驾护航。自由且开源。即刻体验云服务:[https://app.databend.cn](https://app.databend.cn) 。 ## What's On In Databend 探索 Databend 本周新进展,遇到更贴近你心意的 Databend 。 ### 了解 Databend 的 SEQUENCE 支持 SEQUENCE 是一种用于自动生成唯一数值标识符的对象,通常用于为表中的行分配不同的标识符,例如用户 ID 列。通常,序列从指定的值开始,并按指定的增量递增。 > Databend 中的序列从 1 开始,每次递增 1。虽然序列保证唯一值,但不保证连续性。 用法如下: ```sql -- Create a new sequence named staff_id_seq CREATE SEQUENCE staff_id_seq; -- Create a new table named staff with columns for staff_id, name, and department CREATE TABLE staff ( staff_id INT, name VARCHAR(50), department VARCHAR(50) ); -- Insert a new row into the staff table, using the next value from the staff_id_seq sequence for the staff_id column INSERT INTO staff (staff_id, name, department) VALUES (NEXTVAL(staff_id_seq), 'John Doe', 'HR'); ``` 如果您想了解更多信息,欢迎联系 [Databend 团队](https://databend.cn/contact-us/),或查看下面列出的资源。 - [Docs | DDL Commands - Sequence](https://docs.databend.com/sql/sql-commands/ddl/sequence/) ### 支持动态调整会话优先级 在多用户环境中,不同的查询任务可能需要不同的资源分配优先级。Databend 现支持动态调整会话优先级,允许管理员或用户根据需要设置查询任务的优先级,从而优化资源使用,改善重要任务的响应时间。 语法如下: ```sql SET PRIORITY (HIGH | MEDIUM | LOW) <session_id> ``` 其中 `<session_id>` 可由 `show processlist` 语句获取。 如果您想了解更多信息,欢迎联系 [Databend 团队](https://databend.cn/contact-us/),或查看下面列出的资源。 - [PR 15352 | feat: support adjust query's priority ](https://github.com/datafuselabs/databend/pull/15352) ## Code Corner 一起来探索 Databend 和周边生态中的代码片段或项目。 ### 开源之夏 2024 | 与 Databend 共赴云数仓之约 今年是 Databend 社区参与开源之夏活动的第三个年头,很高兴可以与大家继续携手共进。与往年一样,我们准备了两个项目,欢迎对云数仓感兴趣的你一同探索。 ![图片](https://hackmd.io/_uploads/BJl5XD17C.png) - [开源之夏 2024 - Databend](https://summer-ospp.ac.cn/org/orgdetail/646b9834-3923-4e74-b98b-90afec341705) ## Highlights 以下是一些值得注意的事件,也许您可以找到感兴趣的内容。 - 新支持几何函数:`ST_XMAX` 。 - 新支持 MAP 函数:`map_size`、`map_cat`、`map_contains_key` 。 - 优化 `vacuum drop table`,支持并行执行。 - 新增 http handler `v1/login` 。 ## What's Up Next 我们始终对前沿技术和创新理念持开放态度,欢迎您加入社区,为 Databend 注入活力。 ### 支持更多几何函数 几何函数是处理空间数据类型,如点、线和多边形等几何对象的一组函数。 上期周报中我们介绍了 Databend 当前的几何函数支持情况,为了更好地支持空间分析和地理数据管理场景,仍然有相当一部分用于分析度量和转换的函数需要实现。 在下面的 Issue 中,我们整理了有待支持的函数和当前进度,欢迎感兴趣的同学参与到相关开发之中。 [Issue #15413 | Feature: Support geometry functions](https://github.com/datafuselabs/databend/issues/15413) 如果你对这个主题感兴趣,可以尝试解决其中的部分问题或者参与讨论和 PR review 。或者,你可以点击 https://link.databend.rs/i-m-feeling-lucky 来挑选一个随机问题,祝好运! ## New Contributors 一起认识社区中的新伙伴,Databend 因你们而变得更加美好。 * [@forsaken628](https://github.com/forsaken628) 实现了 map_size 函数,[#15444](https://github.com/datafuselabs/databend/pull/15444) 。 * [@hanxuanliang](https://github.com/hanxuanliang) 实现了 map_contains_key 函数,[#15465](https://github.com/datafuselabs/databend/pull/15465) 。 ## Changelog 前往查看 Databend 每日构建的变更日志,以了解开发的最新动态。 地址:https://github.com/datafuselabs/databend/releases ## Contributors 非常感谢贡献者们在本周的卓越工作。 ![图片](https://hackmd.io/_uploads/rkDmULkQC.png) ## Connect With Us Databend 是一款开源、弹性、低成本,基于对象存储也可以做实时分析的新式数仓。期待您的关注,一起探索云原生数仓解决方案,打造新一代开源 Data Cloud。 - [Databend Website](https://databend.rs) - [GitHub Discussions](https://github.com/datafuselabs/databend/discussions) - [Twitter](https://twitter.com/Datafuse_Labs) - [Slack Channel](https://link.databend.rs/join-slack)