Skip to content

Commit

Permalink
summary: updated summary with 19.0 changes (#15132)
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay authored Feb 5, 2024
1 parent 3c60baa commit 1b71d9e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions changelog/19.0/19.0.0/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
- [`FOREIGN_KEY_CHECKS` is now a Vitess Aware Variable](#fk-checks-vitess-aware)
- [Explain Statement](#explain-statement)
- [Partial Multi-shard Commit Warnings](#partial-multi-shard-commit-warnings)
- [New Lock Syntax](#lock-syntax)
- [Support for AVG()](#avg-support)
- [Support for non-recursive CTEs](#cte-support)
- **[Vttestserver](#vttestserver)**
- [`--vtcombo-bind-host` flag](#vtcombo-bind-host)
- **[Minor Changes](#minor-changes)**
Expand Down Expand Up @@ -184,6 +187,29 @@ mysql> show warnings;

A new flag `--vtcombo-bind-host` has been added to vttestserver that allows the users to configure the bind host that vtcombo uses. This is especially useful when running vttestserver as a docker image and you want to run vtctld commands and look at the vtcombo `/debug/status` dashboard.

### <a id="lock-syntax"/>New lock syntax

Vitess now supports the following LOCK syntax

```sql
SELECT .. FOR SHARE (NOWAIT|SKIP LOCKED)
SELECT .. FOR UPDATE (NOWAIT|SKIP LOCKED)
```

### <a id="avg-support"/>Support for AVG() aggregation function

Vtgate can now evaluate `AVG` on sharded keyspaces, by using a combination of `SUM/COUNT`

### <a id="cte-support"/>Support for non-recursive CTEs

Common table expressions that are not recursive can now be used.

```sql
with userCount as (
select id, count(*) as nr from user group by id)
select ref.col, userCount.nr
from ref join userCount on ref.user_id = userCount.id
```

## <a id="minor-changes"/>Minor Changes

Expand Down

0 comments on commit 1b71d9e

Please sign in to comment.