--- title: 'This Week in Databend #72' date: 2022-12-14 slug: category-weekly/2022-12-14-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: [https://app.databend.com](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: **Multiple Catalogs** - extends show databases SQL ([#9152](https://github.com/databendlabs/databend/pull/9152)) **Stage** - support select from URI ([#9247](https://github.com/databendlabs/databend/pull/9247)) **Streaming Load** - support `file_format` syntax in streaming load insert sql ([#9063](https://github.com/databendlabs/databend/pull/9063)) **Planner** - push down `limit` to `union` ([#9210](https://github.com/databendlabs/databend/pull/9210)) **Query** - use `analyze table` instead of `optimize table statistic` ([#9143](https://github.com/databendlabs/databend/pull/9143)) - fast parse insert values ([#9214](https://github.com/databendlabs/databend/pull/9214)) **Storage** - use distinct count calculated by the xor hash function ([#9159](https://github.com/databendlabs/databend/pull/9159)) - `read_parquet` read meta before read data ([#9154](https://github.com/databendlabs/databend/pull/9154)) - push down filter to parquet reader ([#9199](https://github.com/databendlabs/databend/pull/9199)) - prune row groups before reading ([#9228](https://github.com/databendlabs/databend/pull/9228)) **Open Sharing** - add prototype open sharing and add sharing stateful tests ([#9177](https://github.com/databendlabs/databend/pull/9177)) ### Code Refactoring :tada: **\*** - simplify the global data registry logic ([#9187](https://github.com/databendlabs/databend/pull/9187)) **Storage** - refactor deletion ([#8824](https://github.com/databendlabs/databend/pull/8824)) ### Build/Testing/CI Infra Changes :electric_plug: - release databend deb package and databend with hive ([#9138](https://github.com/databendlabs/databend/pull/9138), [#9241](https://github.com/databendlabs/databend/pull/9241), etc.) ### Bug Fixes :wrench: **Format** - support ASCII control code hex as format field delimiter ([#9160](https://github.com/databendlabs/databend/pull/9160)) **Planner** - prewhere_column empty and predicate is not const will return empty ([#9116](https://github.com/databendlabs/databend/pull/9116)) - don't push down topk to Merge when it's child is Aggregate ([#9183](https://github.com/databendlabs/databend/pull/9183)) - fix nullable column validity not equal ([#9220](https://github.com/databendlabs/databend/pull/9220)) **Query** - address unit test hang on test_insert ([#9242](https://github.com/databendlabs/databend/pull/9242)) **Storage** - too many io requests for read blocks during compact ([#9128](https://github.com/databendlabs/databend/pull/9128)) - collect orphan snapshots ([#9108](https://github.com/databendlabs/databend/pull/9108)) ## What's On In Databend Stay connected with the latest news about Databend. #### Breaking Change: Unified File Format Options To simplify, we're rolling out a set of unified file format options as follows for the COPY INTO command, the Streaming Load API, and all the other cases where users need to describe their file formats: ```sql [ FILE_FORMAT = ( TYPE = { CSV | TSV | NDJSON | PARQUET | XML} [ formatTypeOptions ] ) ] ``` - Please note that the current format options starting with `format_*` will be deprecated. - `... FORMAT CSV ...` will still be accepted by the ClickHouse handler. - Support for customized formats created by `CREATE FILE FORMAT ...` will be added in a future release: `... FILE_FORMAT = (format_name = 'MyCustomCSV') ....` . **Learn More** - [Issue | unify format options and remove format\_ settings](https://github.com/databendlabs/databend/issues/8995) - [PR | support file_format syntax in streaming load insert sql](https://github.com/databendlabs/databend/pull/9063) #### Open Sharing Open Sharing is a simple and secure data-sharing protocol designed for databend-query nodes running in a multi-cloud environment. - **Simple & Free**: Open Sharing is open-source and basically a RESTful API implementation. - **Secure**: Open Sharing verifies incoming requesters' identities and access permissions, and provides an audit log. - **Multi-Cloud**: Open Sharing supports a variety of public cloud platforms, including AWS, Azure, GCP, etc. **Learn More** - [Docs | Open Sharing](https://github.com/databendlabs/databend/blob/main/src/query/sharing-endpoint/README.md) - [PR | add prototype open sharing and add sharing stateful tests](https://github.com/databendlabs/databend/pull/9177) ## 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. #### Refactoring Stage-Related Tests We're about to run stage-related tests again using the Streaming Load API to move files to a stage instead of an AWS command like this: ```bash aws --endpoint-url ${STORAGE_S3_ENDPOINT_URL} s3 cp s3://testbucket/admin/data/ontime_200.csv s3://testbucket/admin/stage/internal/s1/ontime_200.csv >/dev/null 2>&1 ``` This is because Databend users do not need to take care of, or do not even know the stage paths that the AWS command requires. [Issue 8528: refactor stage related tests](https://github.com/databendlabs/databend/issues/8528) 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.152-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.152-nightly) - [v0.8.151-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.151-nightly) - [v0.8.150-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.150-nightly) - [v0.8.149-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.149-nightly) - [v0.8.148-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.148-nightly) - [v0.8.147-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.147-nightly) - [v0.8.146-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.146-nightly) - [v0.8.145-nightly](https://github.com/databendlabs/databend/releases/tag/v0.8.145-nightly) ## Contributors Thanks a lot to the contributors for their excellent work this week. | [ariesdevil](https://github.com/ariesdevil) | [b41sh](https://github.com/b41sh) | [BohuTANG](https://github.com/BohuTANG) | [Chasen-Zhang](https://github.com/Chasen-Zhang) | [ClSlaid](https://github.com/ClSlaid) | [dantengsky](https://github.com/dantengsky) | | :-----------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------: | | [ariesdevil](https://github.com/ariesdevil) | [b41sh](https://github.com/b41sh) | [BohuTANG](https://github.com/BohuTANG) | [Chasen-Zhang](https://github.com/Chasen-Zhang) | [ClSlaid](https://github.com/ClSlaid) | [dantengsky](https://github.com/dantengsky) | | [drmingdrmer](https://github.com/drmingdrmer) | [hantmac](https://github.com/hantmac) | [lichuang](https://github.com/lichuang) | [mergify[bot]](https://github.com/apps/mergify) | [PsiACE](https://github.com/PsiACE) | [RinChanNOWWW](https://github.com/RinChanNOWWW) | | :-----------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------: | | [drmingdrmer](https://github.com/drmingdrmer) | [hantmac](https://github.com/hantmac) | [lichuang](https://github.com/lichuang) | [mergify[bot]](https://github.com/apps/mergify) | [PsiACE](https://github.com/PsiACE) | [RinChanNOWWW](https://github.com/RinChanNOWWW) | | [soyeric128](https://github.com/soyeric128) | [sundy-li](https://github.com/sundy-li) | [wubx](https://github.com/wubx) | [Xuanwo](https://github.com/Xuanwo) | [xudong963](https://github.com/xudong963) | [youngsofun](https://github.com/youngsofun) | | :-------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------: | | [soyeric128](https://github.com/soyeric128) | [sundy-li](https://github.com/sundy-li) | [wubx](https://github.com/wubx) | [Xuanwo](https://github.com/Xuanwo) | [xudong963](https://github.com/xudong963) | [youngsofun](https://github.com/youngsofun) | | [ZhiHanZ](https://github.com/ZhiHanZ) | [zhyass](https://github.com/zhyass) | [zzzdong](https://github.com/zzzdong) | | :------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------: | | [ZhiHanZ](https://github.com/ZhiHanZ) | [zhyass](https://github.com/zhyass) | [zzzdong](https://github.com/zzzdong) |