Skip to content

Commit

Permalink
chore(fix): batch csv missing nl
Browse files Browse the repository at this point in the history
Signed-off-by: Jiyong Huang <huangjy@emqx.io>
  • Loading branch information
ngjaying committed Dec 25, 2024
1 parent 67ac58b commit 9230fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/topo/node/batch_op.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (b *BatchOp) ingest(ctx api.StreamContext, item any, checkSize bool) {
if b.hasHeader && b.rawHeader == nil {
newlineIndex := bytes.IndexByte(input.Raw(), '\n')
if newlineIndex != -1 {
b.rawHeader = input.Raw()[:newlineIndex]
b.rawHeader = input.Raw()[:newlineIndex+1]
ctx.GetLogger().Infof("Get new header")
} else {
ctx.GetLogger().Infof("No header found")
Expand Down

0 comments on commit 9230fc8

Please sign in to comment.