From e6bb1047c486f2926e24d4a674e0a7bc4c2abced Mon Sep 17 00:00:00 2001 From: Cocoa Date: Sat, 7 Dec 2024 03:22:30 +0100 Subject: [PATCH] fix(go/adbc/driver/bigquery): set default project and dataset for new statements (#2342) This PR sets `DefaultProjectID` and `DefaultDatasetID` for new `adbc.Statement` to the corresponding value in the `adbc.Connection`. Signed-off-by: Cocoa --- go/adbc/driver/bigquery/connection.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/go/adbc/driver/bigquery/connection.go b/go/adbc/driver/bigquery/connection.go index 4a7419a193..e5ab3651ac 100644 --- a/go/adbc/driver/bigquery/connection.go +++ b/go/adbc/driver/bigquery/connection.go @@ -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 }