From ec32b74a502c2a3c8bc7522e3e210e1ed88e60be Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Wed, 11 Dec 2024 16:29:56 -0800 Subject: [PATCH] Update. --- clients/bigquery/storagewrite.go | 2 ++ 1 file changed, 2 insertions(+) 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 }