Skip to content

Commit

Permalink
[bigquery] Rename putTableViaStorageWriteAPI method
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Jun 18, 2024
1 parent 2853e30 commit 00d144f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clients/bigquery/bigquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ func (s *Store) PrepareTemporaryTable(tableData *optimization.TableData, tableCo
return fmt.Errorf("unable to cast tempTableID to BigQuery TableIdentifier")
}

// Load the data
return s.putTableViaStorageWriteAPI(context.Background(), bqTempTableID, tableData)
return s.putTable(context.Background(), bqTempTableID, tableData)
}

func (s *Store) IdentifierFor(topicConfig kafkalib.TopicConfig, table string) sql.TableIdentifier {
Expand Down Expand Up @@ -152,7 +151,7 @@ func (s *Store) GetClient(ctx context.Context) *bigquery.Client {
return client
}

func (s *Store) putTableViaStorageWriteAPI(ctx context.Context, bqTableID TableIdentifier, tableData *optimization.TableData) error {
func (s *Store) putTable(ctx context.Context, bqTableID TableIdentifier, tableData *optimization.TableData) error {
columns := tableData.ReadOnlyInMemoryCols().ValidColumns()

messageDescriptor, err := columnsToMessageDescriptor(columns)
Expand Down

0 comments on commit 00d144f

Please sign in to comment.