File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1013,7 +1013,8 @@ and produces
10131013 Schools: [
10141014 "Auberry Elementary",
10151015 "Balch Camp Elementary",
1016- "Pine Ridge Elementary"
1016+ "Pine Ridge Elementary",
1017+ null (string)
10171018 ]
10181019}
10191020{
@@ -1023,9 +1024,7 @@ and produces
10231024 "www.bigcreekschool.com"
10241025 ],
10251026 Schools: [
1026- "Big Creek Elementary"
1027- ]
1028- }
1027+ "Big Creek Elementary",
10291028...
10301029```
10311030
Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ type Collect struct {
1616var _ Function = (* Collect )(nil )
1717
1818func (c * Collect ) Consume (val zed.Value ) {
19- if ! val .IsNull () {
20- c .update (val )
21- }
19+ c .update (val )
2220}
2321
2422func (c * Collect ) update (val zed.Value ) {
Original file line number Diff line number Diff line change 44 1((int64,string))
55 "foo"((time,string))
66 0.5
7+ null(string)
78
89output : |
9- [1,"foo",0.5]
10+ [1,"foo",0.5,null ]
You can’t perform that action at this time.
0 commit comments