Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
ensure CastVal for decimals in castVal [nt]
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Jan 20, 2024
1 parent 0563461 commit aa8f464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iop/stream_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ func (sp *StreamProcessor) CastVal(i int, val interface{}, col *Column) interfac
if sp.config.MaxDecimals > -1 {
nVal = cast.ToString(math.Round(fVal*sp.config.MaxDecimals) / sp.config.MaxDecimals)
} else {
nVal = val // use string to keep accuracy
nVal = cast.ToString(val) // use string to keep accuracy
}

case col.Type.IsBool():
Expand Down

0 comments on commit aa8f464

Please sign in to comment.