diff --git a/clients/bigquery/storagewrite.go b/clients/bigquery/storagewrite.go index 828a9060d..fc3044047 100644 --- a/clients/bigquery/storagewrite.go +++ b/clients/bigquery/storagewrite.go @@ -259,6 +259,7 @@ func rowToMessage(row map[string]any, columns []columns.Column, messageDescripto // MongoDB will return the native objects back such as `map[string]any{"hello": "world"}` // Relational will return a string representation of the struct such as `{"hello": "world"}` func encodeStructToJSONString(value any) (string, error) { + fmt.Println("value", value, fmt.Sprintf("type %T", value)) if stringValue, isOk := value.(string); isOk { if strings.Contains(stringValue, constants.ToastUnavailableValuePlaceholder) { return fmt.Sprintf(`{"key":"%s"}`, constants.ToastUnavailableValuePlaceholder), nil @@ -271,5 +272,6 @@ func encodeStructToJSONString(value any) (string, error) { return "", fmt.Errorf("failed to marshal value: %w", err) } + fmt.Println("string(bytes)", string(bytes)) return string(bytes), nil }