Skip to main content

This Week in Databend #140

Databend is a modern cloud data warehouse, serving your massive-scale analytics needs at low cost and complexity. Open source alternative to Snowflake. Also available in the cloud: .

What's New

Stay informed about the latest features of Databend.


Databend has now incorporated EXECUTE IMMEDIATE, enabling users to execute complex SQL logic within a single statement for more flexible SQL handling capabilities.

LET x := 1;
LET y := x + 1;
2 + 1
│ UInt8 │

This feature enhances Databend's ability to support more data processing scenarios and advances our efforts in supporting stored procedures and SQL scripting. Welcome to join in the development and iteration of these features.

If you would like to learn more, please contact the Databend team or refer to the resources listed below:

Code Corner

Discover some fascinating code snippets or projects that showcase our work or learning journey.

Blog: Towards Efficient Distributed Group Aggregation

Group aggregation is widely used for large-scale data analysis (OLAP). Unlike regular SELECT queries , it changes the cardinality of result.

Databend recently improved its data processing capabilities by implementing a new aggregation hash table inspired by DuckDB. This update enhances group aggregation performance significantly in both standalone and distributed environments.

Alt text

Blog | Towards Efficient Distributed Group Aggregation


We have also made these improvements to Databend that we hope you will find helpful:

  • Added support for geographic information functions ST_GEOMPOINTFROMGEOHASH and ST_MAKEPOLYGON.
  • Added support for changing table comments.
  • Added support for offsets in time travel.
  • Read the documentation Docs | Full-Text Index to learn about Databend's full-text index.

What's Up Next

We're always open to cutting-edge technologies and innovative ideas. You're more than welcome to join the community and bring them to Databend.

Adding Query Digest to query_log

A query digest is a summary of a query, and if two queries have the same digest, it means they share the same pattern. These two query digests are the same:

SELECT id FROM t1 WHERE name = 'a';
SELECT id FROM t1 WHERE name = 'b';

We can determine which query pattern takes more time by examining their respective digests.

Issue #15164 | feat: add query digest to query_log

Please let us know if you're interested in contributing to this feature, or pick up a good first issue at to get started.


You can check the changelog of Databend Nightly for details about our latest developments.

Full Changelog:


A total of 19 contributors participated

We are very grateful for the outstanding work of the contributors.