Skip to content

Conversation

@dewanshshekhar
Copy link

The AGG_STATE example in zh-CN/docs/2.1/table-design/data-model/aggregate.md was using non-existent columns k2 and k3, which do not match the table schema.

Updated the example queries to use the correct columns v1 and v2:

insert into aggstate select 3,sum(v1),group_concat_union(v2) from aggstate;

select sum(v1), group_concat_merge(v2) from aggstate;

select sum(v1), group_concat_merge(v2) from aggstate where k1 != 2;

## Versions 

- [ ] dev
- [ ] 3.0
- [ ] 2.1
- [ ] 2.0

## Languages

- [ ] Chinese
- [ ] English

## Docs Checklist

- [ ] Checked by AI
- [ ] Test Cases Built

The AGG_STATE example in zh-CN/docs/2.1/table-design/data-model/aggregate.md 
was using non-existent columns `k2` and `k3`, which do not match the table schema.  

Updated the example queries to use the correct columns `v1` and `v2`:

```sql
insert into aggstate select 3,sum(v1),group_concat_union(v2) from aggstate;

select sum(v1), group_concat_merge(v2) from aggstate;

select sum(v1), group_concat_merge(v2) from aggstate where k1 != 2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant