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 825cdff commit 3ea9dc1
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 3ea9dc1

Please sign in to comment.