Skip to content

Commit

Permalink
fix(go/adbc/driver/bigquery): set default project and dataset for new…
Browse files Browse the repository at this point in the history
… statements (#2342)

This PR sets `DefaultProjectID` and `DefaultDatasetID` for new
`adbc.Statement` to the corresponding value in the `adbc.Connection`.

Signed-off-by: Cocoa <[email protected]>
  • Loading branch information
cocoa-xu authored Dec 7, 2024
1 parent 7d2b719 commit e6bb104
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/adbc/driver/bigquery/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,10 @@ func (c *connectionImpl) NewStatement() (adbc.Statement, error) {
parameterMode: OptionValueQueryParameterModePositional,
resultRecordBufferSize: c.resultRecordBufferSize,
prefetchConcurrency: c.prefetchConcurrency,
queryConfig: bigquery.QueryConfig{
DefaultProjectID: c.catalog,
DefaultDatasetID: c.dbSchema,
},
}, nil
}

Expand Down

0 comments on commit e6bb104

Please sign in to comment.