@google-cloud/bigquery
Advanced tools
Comparing version 7.3.0 to 7.4.0
@@ -720,2 +720,4 @@ "use strict"; | ||
'STRUCT', | ||
'JSON', | ||
'RANGE', | ||
]; | ||
@@ -889,2 +891,5 @@ if (is.array(providedType)) { | ||
} | ||
else if (typeName === 'JSON' && is.object(value)) { | ||
queryParameter.parameterValue.value = JSON.stringify(value); | ||
} | ||
else { | ||
@@ -952,3 +957,3 @@ queryParameter.parameterValue.value = BigQuery._getValue(value, parameterType); | ||
datasetId: options.destination.dataset.id, | ||
projectId: options.destination.dataset.bigQuery.projectId, | ||
projectId: options.destination.dataset.projectId, | ||
tableId: options.destination.id, | ||
@@ -1452,3 +1457,5 @@ }; | ||
catch (error) { | ||
error.message = `integerTypeCastFunction threw an error:\n\n - ${error.message}`; | ||
if (error instanceof Error) { | ||
error.message = `integerTypeCastFunction threw an error:\n\n - ${error.message}`; | ||
} | ||
throw error; | ||
@@ -1455,0 +1462,0 @@ } |
@@ -69,3 +69,3 @@ /*! | ||
location?: string; | ||
projectId?: string; | ||
projectId: string; | ||
getModelsStream(options?: GetModelsOptions): ResourceStream<Model>; | ||
@@ -72,0 +72,0 @@ getRoutinesStream(options?: GetRoutinesOptions): ResourceStream<Routine>; |
@@ -299,2 +299,5 @@ "use strict"; | ||
} | ||
else { | ||
this.projectId = bigQuery.projectId; | ||
} | ||
this.bigQuery = bigQuery; | ||
@@ -456,3 +459,3 @@ // Catch all for read-modify-write cycle | ||
datasetId: this.id, | ||
projectId: this.bigQuery.projectId, | ||
projectId: this.projectId, | ||
}, | ||
@@ -481,3 +484,3 @@ }); | ||
datasetId: this.id, | ||
projectId: this.bigQuery.projectId, | ||
projectId: this.projectId, | ||
tableId: id, | ||
@@ -682,2 +685,3 @@ }; | ||
location: this.location, | ||
projectId: this.projectId, | ||
}, options); | ||
@@ -684,0 +688,0 @@ return new table_1.Table(this, id, options); |
@@ -288,3 +288,3 @@ "use strict"; | ||
datasetId: this.dataset.id, | ||
projectId: this.bigQuery.projectId, | ||
projectId: this.dataset.projectId, | ||
modelId: this.id, | ||
@@ -291,0 +291,0 @@ }, |
@@ -522,3 +522,3 @@ "use strict"; | ||
datasetId: destination.dataset.id, | ||
projectId: destination.bigQuery.projectId, | ||
projectId: destination.dataset.projectId, | ||
tableId: destination.id, | ||
@@ -528,3 +528,3 @@ }, | ||
datasetId: this.dataset.id, | ||
projectId: this.bigQuery.projectId, | ||
projectId: this.dataset.projectId, | ||
tableId: this.id, | ||
@@ -563,3 +563,3 @@ }, | ||
datasetId: this.dataset.id, | ||
projectId: this.bigQuery.projectId, | ||
projectId: this.dataset.projectId, | ||
tableId: this.id, | ||
@@ -570,3 +570,3 @@ }, | ||
datasetId: sourceTable.dataset.id, | ||
projectId: sourceTable.bigQuery.projectId, | ||
projectId: sourceTable.dataset.projectId, | ||
tableId: sourceTable.id, | ||
@@ -629,3 +629,3 @@ }; | ||
datasetId: this.dataset.id, | ||
projectId: this.bigQuery.projectId, | ||
projectId: this.dataset.projectId, | ||
tableId: this.id, | ||
@@ -687,3 +687,3 @@ }, | ||
destinationTable: { | ||
projectId: this.bigQuery.projectId, | ||
projectId: this.dataset.projectId, | ||
datasetId: this.dataset.id, | ||
@@ -768,3 +768,3 @@ tableId: this.id, | ||
destinationTable: { | ||
projectId: this.bigQuery.projectId, | ||
projectId: this.dataset.projectId, | ||
datasetId: this.dataset.id, | ||
@@ -792,3 +792,3 @@ tableId: this.id, | ||
jobId, | ||
projectId: this.bigQuery.projectId, | ||
projectId: this.dataset.projectId, | ||
location: this.location, | ||
@@ -798,3 +798,3 @@ }, | ||
request: { | ||
uri: `${this.bigQuery.apiEndpoint}/upload/bigquery/v2/projects/${this.bigQuery.projectId}/jobs`, | ||
uri: `${this.bigQuery.apiEndpoint}/upload/bigquery/v2/projects/${this.dataset.projectId}/jobs`, | ||
}, | ||
@@ -801,0 +801,0 @@ }, |
@@ -7,2 +7,15 @@ # Changelog | ||
## [7.4.0](https://github.com/googleapis/nodejs-bigquery/compare/v7.3.0...v7.4.0) (2024-02-06) | ||
### Features | ||
* Implementing mocha retries ([#1295](https://github.com/googleapis/nodejs-bigquery/issues/1295)) ([6cda9e1](https://github.com/googleapis/nodejs-bigquery/commit/6cda9e192c0dd224194f44ebd632a64b845c59b6)) | ||
* Support JSON query param ([#1329](https://github.com/googleapis/nodejs-bigquery/issues/1329)) ([e9f133b](https://github.com/googleapis/nodejs-bigquery/commit/e9f133bec0c1420396ff25d30baf1fba74e1ab04)) | ||
### Bug Fixes | ||
* Prefer usage of projectId from the Dataset ([#1326](https://github.com/googleapis/nodejs-bigquery/issues/1326)) ([9e85219](https://github.com/googleapis/nodejs-bigquery/commit/9e85219afa074c6804adac79cb4f28a944f5957a)) | ||
## [7.3.0](https://github.com/googleapis/nodejs-bigquery/compare/v7.2.0...v7.3.0) (2023-09-28) | ||
@@ -9,0 +22,0 @@ |
{ | ||
"name": "@google-cloud/bigquery", | ||
"description": "Google BigQuery Client Library for Node.js", | ||
"version": "7.3.0", | ||
"version": "7.4.0", | ||
"license": "Apache-2.0", | ||
@@ -67,9 +67,9 @@ "author": "Google LLC", | ||
"@types/extend": "^3.0.1", | ||
"@types/is": "0.0.23", | ||
"@types/is": "0.0.25", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^18.0.0", | ||
"@types/node": "^20.0.0", | ||
"@types/proxyquire": "^1.3.28", | ||
"@types/sinon": "^10.0.0", | ||
"@types/uuid": "^9.0.0", | ||
"c8": "^8.0.0", | ||
"c8": "^9.0.0", | ||
"codecov": "^3.5.0", | ||
@@ -87,5 +87,5 @@ "discovery-tsd": "^0.3.0", | ||
"proxyquire": "^2.1.0", | ||
"sinon": "^16.0.0", | ||
"sinon": "^17.0.0", | ||
"typescript": "^5.1.6" | ||
} | ||
} |
647890
13346