|
| 1 | +--- |
| 2 | +title: 'This Week in Databend #70' |
| 3 | +date: 2022-11-30 |
| 4 | +slug: 2022-11-30-databend-weekly |
| 5 | +tags: [databend, weekly] |
| 6 | +authors: |
| 7 | +- name: PsiACE |
| 8 | + url: https://github.com/psiace |
| 9 | + image_url: https://github.com/psiace.png |
| 10 | +--- |
| 11 | + |
| 12 | +[Databend](https://github.com/datafuselabs/databend) is a powerful cloud data warehouse. Built for elasticity and efficiency. Free and open. Also available in the cloud: <https://app.databend.com> . |
| 13 | + |
| 14 | +## What's New |
| 15 | + |
| 16 | +Check out what we've done this week to make Databend even better for you. |
| 17 | + |
| 18 | +### Features & Improvements :sparkles: |
| 19 | + |
| 20 | +**Format** |
| 21 | + |
| 22 | +- better checking of format options ([#8981](https://github.com/datafuselabs/databend/pull/8981)) |
| 23 | +- add basic schema infer for parquet ([#9043](https://github.com/datafuselabs/databend/pull/9043)) |
| 24 | + |
| 25 | +**Query** |
| 26 | + |
| 27 | +- QualifiedName support 'db.table.*' and 'table.*' ([#8965](https://github.com/datafuselabs/databend/pull/8965)) |
| 28 | +- support bulk insert without exprssion ([#8966](https://github.com/datafuselabs/databend/pull/8966)) |
| 29 | + |
| 30 | +**Storage** |
| 31 | + |
| 32 | +- add cache layer for fuse engine ([#8830](https://github.com/datafuselabs/databend/pull/8830)) |
| 33 | +- add system table system.memory_statistics ([#8945](https://github.com/datafuselabs/databend/pull/8945)) |
| 34 | +- add optimize statistic ddl support ([#8891](https://github.com/datafuselabs/databend/pull/8891)) |
| 35 | + |
| 36 | +### Code Refactoring :tada: |
| 37 | + |
| 38 | +**Base** |
| 39 | + |
| 40 | +- remove common macros ([#8936](https://github.com/datafuselabs/databend/pull/8936)) |
| 41 | + |
| 42 | +**Format** |
| 43 | + |
| 44 | +- TypeDeserializer get rid of FormatSetting ([#8950](https://github.com/datafuselabs/databend/pull/8950)) |
| 45 | + |
| 46 | +**Planner** |
| 47 | + |
| 48 | +- refactor extract or predicate ([#8951](https://github.com/datafuselabs/databend/pull/8951)) |
| 49 | + |
| 50 | +**Processors** |
| 51 | + |
| 52 | +- optimize join by merging build data block ([#8961](https://github.com/datafuselabs/databend/pull/8961)) |
| 53 | + |
| 54 | +**New Expression** |
| 55 | + |
| 56 | +- allow sparse column id in chunk, redo [#8789](https://github.com/datafuselabs/databend/pull/8789) with a new approach. ([#9008](https://github.com/datafuselabs/databend/pull/9008)) |
| 57 | + |
| 58 | +### Documentation :notebook_with_decorative_cover: |
| 59 | + |
| 60 | +- i18n support with crowdin ([#8987](https://github.com/datafuselabs/databend/pull/8987), [#8997](https://github.com/datafuselabs/databend/pull/8997), etc.) |
| 61 | + |
| 62 | +### Bug Fixes :wrench: |
| 63 | + |
| 64 | +**Base** |
| 65 | + |
| 66 | +- try fix lost tracker ([#8932](https://github.com/datafuselabs/databend/pull/8932)) |
| 67 | + |
| 68 | +**Meta** |
| 69 | + |
| 70 | +- fix share db bug, create DatabaseIdToName if need ([#9006](https://github.com/datafuselabs/databend/pull/9006)) |
| 71 | + |
| 72 | +**Mysql handler** |
| 73 | + |
| 74 | +- fix mysql conns leak ([#8894](https://github.com/datafuselabs/databend/pull/8894)) |
| 75 | + |
| 76 | +**Processors** |
| 77 | + |
| 78 | +- try fix update list memory leak ([#9023](https://github.com/datafuselabs/databend/pull/9023)) |
| 79 | + |
| 80 | +**Storage** |
| 81 | + |
| 82 | +- read and write block in parallel when compact ([#8921](https://github.com/datafuselabs/databend/pull/8921)) |
| 83 | + |
| 84 | +## What's On In Databend |
| 85 | + |
| 86 | +Stay connected with the latest news about Databend. |
| 87 | + |
| 88 | +#### Infer Schema at a Glance |
| 89 | + |
| 90 | +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. |
| 91 | + |
| 92 | +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`. |
| 93 | + |
| 94 | +```sql |
| 95 | +INFER 's3://mybucket/data.csv' FILE_FORMAT = ( TYPE = CSV ); |
| 96 | ++-------------+---------+----------+ |
| 97 | +| COLUMN_NAME | TYPE | NULLABLE | |
| 98 | +|-------------+---------+----------| |
| 99 | +| CONTINENT | TEXT | True | |
| 100 | +| COUNTRY | VARIANT | True | |
| 101 | ++-------------+---------+----------+ |
| 102 | +``` |
| 103 | + |
| 104 | +We've added support for inferring the basic schema from parquet files in [#9043](https://github.com/datafuselabs/databend/pull/9043), and we're now working on [#7211](https://github.com/datafuselabs/databend/issues/7211) to implement `select from @stage`. |
| 105 | + |
| 106 | +**Learn More** |
| 107 | + |
| 108 | +- [PR | add basic schema infer for parquet](https://github.com/datafuselabs/databend/pull/9043) |
| 109 | +- [Issue | query data from S3 location or stage](https://github.com/datafuselabs/databend/pull/7211) |
| 110 | +- [PR | rfc: Infer Schema](https://github.com/datafuselabs/databend/pull/8645) |
| 111 | + |
| 112 | +## What's Up Next |
| 113 | + |
| 114 | +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. |
| 115 | + |
| 116 | +#### Add Tls Support for Mysql Handler |
| 117 | + |
| 118 | +[opensrv-mysql v0.3.0](https://github.com/datafuselabs/opensrv/discussions/35) that was released recently includes support for TLS. It sounds like a good idea to introduce it to Databend. |
| 119 | + |
| 120 | +```rust |
| 121 | +let (is_ssl, init_params) = opensrv_mysql::AsyncMysqlIntermediary::init_before_ssl( |
| 122 | + &mut shim, |
| 123 | + &mut r, |
| 124 | + &mut w, |
| 125 | + &Some(tls_config.clone()), |
| 126 | +) |
| 127 | +.await |
| 128 | +.unwrap(); |
| 129 | + |
| 130 | +opensrv_mysql::secure_run_with_options(shim, w, ops, tls_config, init_params).await |
| 131 | +``` |
| 132 | + |
| 133 | +[Issue 8983: Feature: tls support for mysql handler](https://github.com/datafuselabs/databend/issues/8983) |
| 134 | + |
| 135 | +Please let us know if you're interested in contributing to this issue, or pick up a good first issue at <https://link.databend.rs/i-m-feeling-lucky> to get started. |
| 136 | + |
| 137 | +## Changelog |
| 138 | + |
| 139 | +You can check the changelog of Databend Nightly for details about our latest developments. |
| 140 | + |
| 141 | +- [v0.8.136-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.136-nightly) |
| 142 | +- [v0.8.135-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.135-nightly) |
| 143 | +- [v0.8.134-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.134-nightly) |
| 144 | +- [v0.8.133-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.133-nightly) |
| 145 | +- [v0.8.132-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.132-nightly) |
| 146 | +- [v0.8.131-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.131-nightly) |
| 147 | +- [v0.8.130-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.130-nightly) |
| 148 | +- [v0.8.129-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.129-nightly) |
| 149 | +- [v0.8.128-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.128-nightly) |
| 150 | +- [v0.8.127-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.127-nightly) |
| 151 | +- [v0.8.126-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.126-nightly) |
| 152 | + |
| 153 | +## Contributors |
| 154 | + |
| 155 | +Thanks a lot to the contributors for their excellent work this week. |
| 156 | + |
| 157 | +[<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="drmingdrmer" src="https://avatars.githubusercontent.com/u/44069?v=4&s=117" width="117" />](https://github.com/drmingdrmer) | |
| 158 | +:---: |:---: |:---: |:---: |:---: |:---: | |
| 159 | +[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) | |
| 160 | + |
| 161 | +[<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="leiysky" src="https://avatars.githubusercontent.com/u/22445410?v=4&s=117" width="117" />](https://github.com/leiysky) |[<img alt="lichuang" src="https://avatars.githubusercontent.com/u/1998569?v=4&s=117" width="117" />](https://github.com/lichuang) |[<img alt="mergify[bot]" src="https://avatars.githubusercontent.com/in/10562?v=4&s=117" width="117" />](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) | |
| 162 | +:---: |:---: |:---: |:---: |:---: |:---: | |
| 163 | +[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) | |
| 164 | + |
| 165 | +[<img alt="sandflee" src="https://avatars.githubusercontent.com/u/5102100?v=4&s=117" width="117" />](https://github.com/sandflee) |[<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="TracyZYJ" src="https://avatars.githubusercontent.com/u/37072511?v=4&s=117" width="117" />](https://github.com/TracyZYJ) |[<img alt="Xuanwo" src="https://avatars.githubusercontent.com/u/5351546?v=4&s=117" width="117" />](https://github.com/Xuanwo) | |
| 166 | +:---: |:---: |:---: |:---: |:---: |:---: | |
| 167 | +[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) | |
| 168 | + |
| 169 | +[<img alt="xudong963" src="https://avatars.githubusercontent.com/u/41979257?v=4&s=117" width="117" />](https://github.com/xudong963) |[<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) |[<img alt="zhyass" src="https://avatars.githubusercontent.com/u/34016424?v=4&s=117" width="117" />](https://github.com/zhyass) | |
| 170 | +:---: |:---: |:---: |:---: |:---: | |
| 171 | +[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) | |
| 172 | + |
| 173 | +## Connect With Us |
| 174 | + |
| 175 | +We'd love to hear from you. Feel free to run the code and see if Databend works for you. Submit an issue with your problem if you need help. |
| 176 | + |
| 177 | +[DatafuseLabs Community](https://github.com/datafuselabs/) is open to everyone who loves data warehouses. Please join the community and share your thoughts. |
| 178 | + |
| 179 | +- [Databend Website](https://databend.rs) |
| 180 | +- [GitHub Discussions](https://github.com/datafuselabs/databend/discussions) (Feature/Bug reports, Contributions) |
| 181 | +- [Twitter](https://twitter.com/Datafuse_Labs) (Get the news fast) |
| 182 | +- [Slack Channel](https://link.databend.rs/join-slack) (For live discussion with the Community) |
0 commit comments