|
| 1 | +--- |
| 2 | +title: 'This Week in Databend #71' |
| 3 | +date: 2022-12-07 |
| 4 | +slug: 2022-12-07-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 | +**Planner** |
| 21 | + |
| 22 | +- optimize topk in cluser mode ([#9092](https://github.com/datafuselabs/databend/pull/9092)) |
| 23 | + |
| 24 | +**Query** |
| 25 | + |
| 26 | +- support `select * exclude [column_name | (col_name, col_name,...)]` ([#9009](https://github.com/datafuselabs/databend/pull/9009)) |
| 27 | +- alter table flashback ([#8967](https://github.com/datafuselabs/databend/pull/8967)) |
| 28 | +- new table function `read_parquet` to read parquet files as a table ([#9080](https://github.com/datafuselabs/databend/pull/9080)) |
| 29 | +- support `select * from @stage` ([#9123](https://github.com/datafuselabs/databend/pull/9123)) |
| 30 | + |
| 31 | +**Storage** |
| 32 | + |
| 33 | +- cache policy ([#9062](https://github.com/datafuselabs/databend/pull/9062)) |
| 34 | +- support hive nullable partition ([#9064](https://github.com/datafuselabs/databend/pull/9064)) |
| 35 | + |
| 36 | +### Code Refactoring :tada: |
| 37 | + |
| 38 | +**Memory Tracker** |
| 39 | + |
| 40 | +- keep tracker state consistent ([#8973](https://github.com/datafuselabs/databend/pull/8973)) |
| 41 | + |
| 42 | +**REST API** |
| 43 | + |
| 44 | +- drop ctx after query finished ([#9091](https://github.com/datafuselabs/databend/pull/9091)) |
| 45 | + |
| 46 | +### Bug Fixes :wrench: |
| 47 | + |
| 48 | +**Configs** |
| 49 | + |
| 50 | +- add more tests for hive config loading ([#9074](https://github.com/datafuselabs/databend/pull/9074)) |
| 51 | + |
| 52 | +**Planner** |
| 53 | + |
| 54 | +- try to fix table name case sensibility ([#9055](https://github.com/datafuselabs/databend/pull/9055)) |
| 55 | + |
| 56 | +**Functions** |
| 57 | + |
| 58 | +- vector_const like bug fix ([#9082](https://github.com/datafuselabs/databend/pull/9082)) |
| 59 | + |
| 60 | +**Storage** |
| 61 | + |
| 62 | +- update last_snapshot_hint file when purge ([#9060](https://github.com/datafuselabs/databend/pull/9060)) |
| 63 | + |
| 64 | +**Cluster** |
| 65 | + |
| 66 | +- try fix broken pipe or connect reset ([#9104](https://github.com/datafuselabs/databend/pull/9104)) |
| 67 | + |
| 68 | +## What's On In Databend |
| 69 | + |
| 70 | +Stay connected with the latest news about Databend. |
| 71 | + |
| 72 | +#### RESTORE TABLE |
| 73 | + |
| 74 | +By the snapshot ID or timestamp you specify in the command, Databend restores the table to a prior state where the snapshot was created. To retrieve snapshot IDs and timestamps of a table, use [FUSE_SNAPSHOT](https://databend.rs/doc/sql-functions/system-functions/fuse_snapshot). |
| 75 | + |
| 76 | + |
| 77 | +```sql |
| 78 | +-- Restore with a snapshot ID |
| 79 | +ALTER TABLE <table> FLASHBACK TO (SNAPSHOT => '<snapshot-id>'); |
| 80 | +-- Restore with a snapshot timestamp |
| 81 | +ALTER TABLE <table> FLASHBACK TO (TIMESTAMP => '<timestamp>'::TIMESTAMP); |
| 82 | +``` |
| 83 | + |
| 84 | +**Learn More** |
| 85 | + |
| 86 | +- [Docs | RESTORE TABLE](https://databend.rs/doc/sql-commands/ddl/table/ddl-restore-table) |
| 87 | +- [PR | alter table flashback](https://github.com/datafuselabs/databend/pull/8967) |
| 88 | + |
| 89 | +## What's Up Next |
| 90 | + |
| 91 | +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. |
| 92 | + |
| 93 | +#### Adding Build Information to Error Report |
| 94 | + |
| 95 | +An error report currently only contains an error code and some information about why the error occurred. When build information is available, troubleshooting will become easier. |
| 96 | + |
| 97 | +```bash |
| 98 | +"Code: xx. Error: error msg... (version ...)" |
| 99 | +``` |
| 100 | + |
| 101 | +[Issue 9117: Add Build Information to the Error Report](https://github.com/datafuselabs/databend/issues/8983) |
| 102 | + |
| 103 | +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. |
| 104 | + |
| 105 | +## Changelog |
| 106 | + |
| 107 | +You can check the changelog of Databend Nightly for details about our latest developments. |
| 108 | + |
| 109 | +- [v0.8.144-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.144-nightly) |
| 110 | +- [v0.8.143-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.143-nightly) |
| 111 | +- [v0.8.142-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.142-nightly) |
| 112 | +- [v0.8.141-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.141-nightly) |
| 113 | +- [v0.8.140-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.140-nightly) |
| 114 | +- [v0.8.139-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.139-nightly) |
| 115 | +- [v0.8.138-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.138-nightly) |
| 116 | +- [v0.8.137-nightly](https://github.com/datafuselabs/databend/releases/tag/v0.8.137-nightly) |
| 117 | + |
| 118 | +## Contributors |
| 119 | + |
| 120 | +Thanks a lot to the contributors for their excellent work this week. |
| 121 | + |
| 122 | +[<img alt="andylokandy" src="https://avatars.githubusercontent.com/u/9637710?v=4&s=117" width="117" />](https://github.com/andylokandy) |[<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) |[<img alt="everpcpc" src="https://avatars.githubusercontent.com/u/1808802?v=4&s=117" width="117" />](https://github.com/everpcpc) | |
| 123 | +:---: |:---: |:---: |:---: |:---: |:---: | |
| 124 | +[andylokandy](https://github.com/andylokandy) |[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) | |
| 125 | + |
| 126 | +[<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) |[<img alt="RinChanNOWWW" src="https://avatars.githubusercontent.com/u/33975039?v=4&s=117" width="117" />](https://github.com/RinChanNOWWW) |[<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) | |
| 127 | +:---: |:---: |:---: |:---: |:---: |:---: | |
| 128 | +[lichuang](https://github.com/lichuang) |[mergify[bot]](https://github.com/apps/mergify) |[PsiACE](https://github.com/PsiACE) |[RinChanNOWWW](https://github.com/RinChanNOWWW) |[sandflee](https://github.com/sandflee) |[soyeric128](https://github.com/soyeric128) | |
| 129 | + |
| 130 | +[<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="Xuanwo" src="https://avatars.githubusercontent.com/u/5351546?v=4&s=117" width="117" />](https://github.com/Xuanwo) |[<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="zhang2014" src="https://avatars.githubusercontent.com/u/8087042?v=4&s=117" width="117" />](https://github.com/zhang2014) | |
| 131 | +:---: |:---: |:---: |:---: |:---: |:---: | |
| 132 | +[sundy-li](https://github.com/sundy-li) |[TCeason](https://github.com/TCeason) |[Xuanwo](https://github.com/Xuanwo) |[xudong963](https://github.com/xudong963) |[youngsofun](https://github.com/youngsofun) |[zhang2014](https://github.com/zhang2014) | |
| 133 | + |
| 134 | +[<img alt="ZhiHanZ" src="https://avatars.githubusercontent.com/u/25170437?v=4&s=117" width="117" />](https://github.com/ZhiHanZ) | |
| 135 | +:---: | |
| 136 | +[ZhiHanZ](https://github.com/ZhiHanZ) | |
| 137 | + |
| 138 | +## Connect With Us |
| 139 | + |
| 140 | +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. |
| 141 | + |
| 142 | +[DatafuseLabs Community](https://github.com/datafuselabs/) is open to everyone who loves data warehouses. Please join the community and share your thoughts. |
| 143 | + |
| 144 | +- [Databend Official Website](https://databend.rs) |
| 145 | +- [GitHub Discussions](https://github.com/datafuselabs/databend/discussions) (Feature requests, bug reports, and contributions) |
| 146 | +- [Twitter](https://twitter.com/Datafuse_Labs) (Stay in the know) |
| 147 | +- [Slack Channel](https://link.databend.rs/join-slack) (Chat with the community) |
0 commit comments