Skip to content

Commit

Permalink
Merge pull request #26 from WhiteEagle88/master
Browse files Browse the repository at this point in the history
Fixed collection of RowBinary rows
  • Loading branch information
nikepan authored Mar 6, 2020
2 parents 1051982 + bdc8f95 commit 621adc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ func NewCollector(sender Sender, count int, interval int) (c *Collector) {

// Content - get text content of rowsfor query
func (t *Table) Content() string {
return t.Query + "\n" + strings.Join(t.Rows, "\n")
rowDelimiter := "\n"
if t.Format == "RowBinary" {
rowDelimiter = ""
}
return t.Query + "\n" + strings.Join(t.Rows, rowDelimiter)
}

// Flush - sends collected data in table to clickhouse
Expand Down

0 comments on commit 621adc9

Please sign in to comment.