Skip to content

Commit 01815a1

Browse files
committed
fix(bigquery-driver): Error with Cube.js pre-aggregations in BigQuery
Fixes #158
1 parent 30a2528 commit 01815a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-bigquery-driver/driver/BigQueryDriver.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ class BigQueryDriver extends BaseDriver {
140140

141141
async loadPreAggregationIntoTable(preAggregationTableName, loadSql, params) {
142142
const [dataSet, tableName] = preAggregationTableName.split('.');
143-
const [job] = await this.bigquery.startQuery({
143+
const [job] = await this.bigquery.createQueryJob({
144144
query: loadSql,
145-
queryParameters: (params || []).map(BigQuery.valueToQueryParameter_),
145+
params,
146146
parameterMode: 'positional',
147147
destination: this.bigquery.dataset(dataSet).table(tableName),
148148
createDisposition: "CREATE_IF_NEEDED",

0 commit comments

Comments
 (0)