--- title: 'This Week in Databend #70' date: 2022-11-30 slug: category-weekly/2022-11-30-databend-weekly tags: [weekly] category: Weekly authors: - PsiACE --- [Databend](https://github.com/databendlabs/databend) is a powerful cloud data warehouse. Built for elasticity and efficiency. Free and open. Also available in the cloud: [cloud](https://app.databend.com) . {/* truncate */} ## What's New Check out what we've done this week to make Databend even better for you. ### Features & Improvements :sparkles: **Format** - better checking of format options ([#8981](https://github.com/databendlabs/databend/pull/8981)) - add basic schema infer for parquet ([#9043](https://github.com/databendlabs/databend/pull/9043)) **Query** - QualifiedName support 'db.table._' and 'table._' ([#8965](https://github.com/databendlabs/databend/pull/8965)) - support bulk insert without expression ([#8966](https://github.com/databendlabs/databend/pull/8966)) **Storage** - add cache layer for fuse engine ([#8830](https://github.com/databendlabs/databend/pull/8830)) - add system table system.memory_statistics ([#8945](https://github.com/databendlabs/databend/pull/8945)) - add optimize statistic ddl support ([#8891](https://github.com/databendlabs/databend/pull/8891)) ### Code Refactoring :tada: **Base** - remove common macros ([#8936](https://github.com/databendlabs/databend/pull/8936)) **Format** - TypeDeserializer get rid of FormatSetting ([#8950](https://github.com/databendlabs/databend/pull/8950)) **Planner** - refactor extract or predicate ([#8951](https://github.com/databendlabs/databend/pull/8951)) **Processors** - optimize join by merging build data block ([#8961](https://github.com/databendlabs/databend/pull/8961)) **New Expression** - allow sparse column id in chunk, redo [#8789](https://github.com/databendlabs/databend/pull/8789) with a new approach. ([#9008](https://github.com/databendlabs/databend/pull/9008)) ### Documentation :notebook_with_decorative_cover: - i18n support with crowdin ([#8987](https://github.com/databendlabs/databend/pull/8987), [#8997](https://github.com/databendlabs/databend/pull/8997), etc.) ### Bug Fixes :wrench: **Base** - try fix lost tracker ([#8932](https://github.com/databendlabs/databend/pull/8932)) **Meta** - fix share db bug, create DatabaseIdToName if need ([#9006](https://github.com/databendlabs/databend/pull/9006)) **Mysql handler** - fix mysql conns leak ([#8894](https://github.com/databendlabs/databend/pull/8894)) **Processors** - try fix update list memory leak ([#9023](https://github.com/databendlabs/databend/pull/9023)) **Storage** - read and write block in parallel when compact ([#8921](https://github.com/databendlabs/databend/pull/8921)) ## What's On In Databend Stay connected with the latest news about Databend. #### Infer Schema at a Glance You usually need to create a table before loading data from a file stored on a stage or somewhere. Unfortunately, sometimes you might not know the file schema to create the table or are unable to input the schema due to its complexity. Introducing the capability to infer schema from an existing file will make the work much easier. You will even be able to query data directly from a stage using a SELECT statement like `select * from @my_stage`. ```sql INFER 's3://mybucket/data.csv' FILE_FORMAT = ( TYPE = CSV ); +-------------+---------+----------+ | COLUMN_NAME | TYPE | NULLABLE | |-------------+---------+----------| | CONTINENT | TEXT | True | | COUNTRY | VARIANT | True | +-------------+---------+----------+ ``` We've added support for inferring the basic schema from parquet files in [#9043](https://github.com/databendlabs/databend/pull/9043), and we're now working on [#7211](https://github.com/databendlabs/databend/issues/7211) to implement `select from @stage`. **Learn More** - [PR | add basic schema infer for parquet](https://github.com/databendlabs/databend/pull/9043) - [Issue | query data from S3 location or stage](https://github.com/databendlabs/databend/pull/7211) - [PR | rfc: Infer Schema](https://github.com/databendlabs/databend/pull/8645) ## 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. #### Add Tls Support for Mysql Handler [opensrv-mysql v0.3.0](https://github.com/databendlabs/opensrv/discussions/35) that was released recently includes support for TLS. It sounds like a good idea to introduce it to Databend. ```rust let (is_ssl, init_params) = opensrv_mysql::AsyncMysqlIntermediary::init_before_ssl( &mut shim, &mut r, &mut w, &Some(tls_config.clone()), ) .await .unwrap(); opensrv_mysql::secure_run_with_options(shim, w, ops, tls_config, init_params).await ``` [Issue 8983: Feature: tls support for mysql handler](https://github.com/databendlabs/databend/issues/8983) Please let us know if you're interested in contributing to this issue, or pick up a good first issue at [https://link.databend.com/i-m-feeling-lucky](https://link.databend.com/i-m-feeling-lucky) to get started. ## Changelog You can check the changelog of Databend Nightly for details about our latest developments. - [v0.8.136-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.136-nightly) - [v0.8.135-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.135-nightly) - [v0.8.134-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.134-nightly) - [v0.8.133-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.133-nightly) - [v0.8.132-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.132-nightly) - [v0.8.131-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.131-nightly) - [v0.8.130-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.130-nightly) - [v0.8.129-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.129-nightly) - [v0.8.128-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.128-nightly) - [v0.8.127-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.127-nightly) - [v0.8.126-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.126-nightly) ## Contributors Thanks a lot to the contributors for their excellent work this week. | [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) | [drmingdrmer](https://github.com/drmingdrmer) | | :-------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------: | | [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) | [drmingdrmer](https://github.com/drmingdrmer) | | [everpcpc](https://github.com/everpcpc) | [flaneur2020](https://github.com/flaneur2020) | [leiysky](https://github.com/leiysky) | [lichuang](https://github.com/lichuang) | [mergify[bot]](https://github.com/apps/mergify) | [PsiACE](https://github.com/PsiACE) | | :-------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------: | | [everpcpc](https://github.com/everpcpc) | [flaneur2020](https://github.com/flaneur2020) | [leiysky](https://github.com/leiysky) | [lichuang](https://github.com/lichuang) | [mergify[bot]](https://github.com/apps/mergify) | [PsiACE](https://github.com/PsiACE) | | [sandflee](https://github.com/sandflee) | [soyeric128](https://github.com/soyeric128) | [sundy-li](https://github.com/sundy-li) | [TCeason](https://github.com/TCeason) | [TracyZYJ](https://github.com/TracyZYJ) | [Xuanwo](https://github.com/Xuanwo) | | :-------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------: | | [sandflee](https://github.com/sandflee) | [soyeric128](https://github.com/soyeric128) | [sundy-li](https://github.com/sundy-li) | [TCeason](https://github.com/TCeason) | [TracyZYJ](https://github.com/TracyZYJ) | [Xuanwo](https://github.com/Xuanwo) | | [xudong963](https://github.com/xudong963) | [youngsofun](https://github.com/youngsofun) | [yufan022](https://github.com/yufan022) | [zhang2014](https://github.com/zhang2014) | [zhyass](https://github.com/zhyass) | | :----------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------: | | [xudong963](https://github.com/xudong963) | [youngsofun](https://github.com/youngsofun) | [yufan022](https://github.com/yufan022) | [zhang2014](https://github.com/zhang2014) | [zhyass](https://github.com/zhyass) |