You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by li...@apache.org on 2024/12/07 02:22:36 UTC
(arrow-adbc) branch main updated: fix(go/adbc/driver/bigquery): set default project and dataset for new statements (#2342)
This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new e6bb1047c fix(go/adbc/driver/bigquery): set default project and dataset for new statements (#2342)
e6bb1047c is described below
commit e6bb1047c486f2926e24d4a674e0a7bc4c2abced
Author: Cocoa <i...@uwucocoa.moe>
AuthorDate: Sat Dec 7 03:22:30 2024 +0100
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 <i...@uwucocoa.moe>
---
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 4a7419a19..e5ab3651a 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
}