Skip to content

Commit

Permalink
fix: pass OnResult in ch-bench-numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Dec 23, 2021
1 parent 1964a7a commit bfa4e38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/cmd/ch-bench-numbers/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ func run(ctx context.Context) error {
var data proto.ColUInt64
if err := c.Query(ctx, ch.Query{
Body: "SELECT number FROM system.numbers LIMIT 500000000",
OnResult: func(ctx context.Context, block proto.Block) error {
return nil
},
OnProgress: func(ctx context.Context, p proto.Progress) error {
atomic.AddUint64(&rows, p.Rows)
atomic.AddUint64(&totalBytes, p.Bytes)
Expand Down

0 comments on commit bfa4e38

Please sign in to comment.