Skip to content

Commit 3dcd9ea

Browse files
authored
docs: count inputs vs elements of input (#5035)
1 parent 709b64e commit 3dcd9ea

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docs/language/aggregates/count.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,12 @@ echo '1 "foo" 10.0.0.1' | zq -z 'yield count()' -
4242
2(uint64)
4343
3(uint64)
4444
```
45+
46+
Note that the number of input values are counted, unlike the [`len` function](../functions/len.md) which counts the number of elements in a given value:
47+
```mdtest-command
48+
echo '[1,2,3]' | zq -z 'count()' -
49+
```
50+
=>
51+
```mdtest-output
52+
1(uint64)
53+
```

0 commit comments

Comments
 (0)