@malloydata/db-bigquery 0.0.326 → 0.0.328
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -499,6 +499,15 @@ class BigQueryConnection extends connection_1.BaseConnection {
|
|
|
499
499
|
try {
|
|
500
500
|
return await job.getQueryResults({
|
|
501
501
|
timeoutMs: 1000 * 60 * 2, // TODO - this requires some rethinking, and is a hack to resolve some issues. talk to @bporterfield
|
|
502
|
+
wrapIntegers: {
|
|
503
|
+
integerTypeCastFunction: (val) => {
|
|
504
|
+
const num = Number(val);
|
|
505
|
+
if (Number.isSafeInteger(num)) {
|
|
506
|
+
return num;
|
|
507
|
+
}
|
|
508
|
+
return String(val);
|
|
509
|
+
},
|
|
510
|
+
},
|
|
502
511
|
...getQueryResultsOptions,
|
|
503
512
|
});
|
|
504
513
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/db-bigquery",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.328",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"lint-fix": "eslint '**/*.ts{,x}' --fix",
|
|
18
18
|
"test": "jest --config=../../jest.config.js",
|
|
19
19
|
"build": "tsc --build",
|
|
20
|
-
"clean": "tsc --build --clean",
|
|
20
|
+
"clean": "tsc --build --clean && rm -f tsconfig.tsbuildinfo",
|
|
21
21
|
"malloyc": "ts-node ../../scripts/malloy-to-json",
|
|
22
22
|
"prepublishOnly": "npm run build"
|
|
23
23
|
},
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@google-cloud/bigquery": "^7.3.0",
|
|
26
26
|
"@google-cloud/common": "^5.0.1",
|
|
27
27
|
"@google-cloud/paginator": "^5.0.0",
|
|
28
|
-
"@malloydata/malloy": "0.0.
|
|
28
|
+
"@malloydata/malloy": "0.0.328",
|
|
29
29
|
"gaxios": "^4.2.0"
|
|
30
30
|
}
|
|
31
31
|
}
|