diff --git a/clients/bigquery/converters/converters.go b/clients/bigquery/converters/converters.go index 1fd59eedf..fa8bd3280 100644 --- a/clients/bigquery/converters/converters.go +++ b/clients/bigquery/converters/converters.go @@ -25,9 +25,9 @@ func (StringConverter) Convert(value any) (any, error) { } } -type IntegerConverter struct{} +type Int64Converter struct{} -func (IntegerConverter) Convert(value any) (any, error) { +func (Int64Converter) Convert(value any) (any, error) { switch castedValue := value.(type) { case int: return int64(castedValue), nil diff --git a/clients/bigquery/converters/converters_test.go b/clients/bigquery/converters/converters_test.go index 7dfb5907f..9bafc74fd 100644 --- a/clients/bigquery/converters/converters_test.go +++ b/clients/bigquery/converters/converters_test.go @@ -44,8 +44,8 @@ func TestStringConverter_Convert(t *testing.T) { } } -func TestIntegerConverter_Convert(t *testing.T) { - converter := IntegerConverter{} +func TestInt64Converter_Convert(t *testing.T) { + converter := Int64Converter{} { // int val, err := converter.Convert(123) diff --git a/clients/bigquery/storagewrite.go b/clients/bigquery/storagewrite.go index 436694a93..b530b529f 100644 --- a/clients/bigquery/storagewrite.go +++ b/clients/bigquery/storagewrite.go @@ -130,7 +130,7 @@ func rowToMessage(row map[string]any, columns []columns.Column, messageDescripto message.Set(field, protoreflect.ValueOfBool(castedVal)) case typing.Integer.Kind: - val, err := converters.IntegerConverter{}.Convert(value) + val, err := converters.Int64Converter{}.Convert(value) if err != nil { return nil, err }