diff --git a/clients/redshift/cast.go b/clients/redshift/cast.go index 71ebd6077..e317be7a3 100644 --- a/clients/redshift/cast.go +++ b/clients/redshift/cast.go @@ -10,6 +10,7 @@ import ( const maxRedshiftLength int32 = 65535 +// canIncreasePrecision - returns true if column is a string, precision is specified and value length is less than [maxRedshiftLength] func canIncreasePrecision(colKind typing.KindDetails, valueLength int32) bool { if colKind.Kind == typing.String.Kind && colKind.OptionalStringPrecision != nil { return maxRedshiftLength > *colKind.OptionalStringPrecision && valueLength <= maxRedshiftLength