Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Dec 12, 2024
1 parent 9770ca0 commit 4ab4805
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion clients/bigquery/dialect/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ func (BigQueryDialect) IsTableDoesNotExistErr(_ error) bool {

func (bd BigQueryDialect) BuildIsNotToastValueExpression(tableAlias constants.TableAlias, column columns.Column) string {
colName := sql.QuoteTableAliasColumn(tableAlias, column, bd)

switch column.KindDetails {
case typing.Struct, typing.Array:
return fmt.Sprintf(`TO_JSON_STRING(%s) NOT LIKE '%s'`, colName, "%"+constants.ToastUnavailableValuePlaceholder+"%")
Expand Down
5 changes: 0 additions & 5 deletions clients/bigquery/storagewrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,6 @@ func rowToMessage(row map[string]any, columns []columns.Column, messageDescripto
return nil, err
}

fmt.Println("Type of values", fmt.Sprintf("%T", values))
for _, val := range values {
fmt.Println("value", val)
}

list := message.Mutable(field).List()
for _, val := range values {
list.Append(protoreflect.ValueOfString(val))
Expand Down
2 changes: 0 additions & 2 deletions clients/shared/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ func Merge(ctx context.Context, dwh destination.DataWarehouse, tableData *optimi
return fmt.Errorf("failed to generate merge statements: %w", err)
}

fmt.Println("mergeStatements", mergeStatements)

if err = destination.ExecStatements(dwh, mergeStatements); err != nil {
return fmt.Errorf("failed to execute merge statements: %w", err)
}
Expand Down

0 comments on commit 4ab4805

Please sign in to comment.