Skip to content

Commit

Permalink
int64, int32.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Sep 9, 2024
1 parent 411b510 commit aceb8a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/typing/values/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func ToString(colVal any, colKind typing.KindDetails) (string, error) {
switch castedColVal := colVal.(type) {
// It's okay if it's not a *decimal.Decimal, so long as it's a float or string.
// By having the flexibility of handling both *decimal.Decimal and float64/float32/string values within the same batch will increase our ability for data digestion.
case float64, float32:
case int64, int32, float64, float32:
return fmt.Sprint(castedColVal), nil
case string:
return castedColVal, nil
Expand Down

0 comments on commit aceb8a1

Please sign in to comment.