Skip to content

Commit

Permalink
Wrap values of 'INT64' type in BigQueryInt objects (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
minodisk authored Mar 10, 2024
1 parent 28d07d5 commit 0c2cf78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/core/src/bigquery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ export async function createClient(
return job.getQueryResults({
maxResults: jobOptions.maxResults,
pageToken,
wrapIntegers: true,
});
},
(err) => ({
Expand Down
2 changes: 1 addition & 1 deletion packages/misc/queries/types.bqsql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
declare a bignumeric(10) default cast('999999' as bignumeric(10));
declare d bytes(10) default cast('foo' as bytes(10));
declare e float64 default cast('3.14' as float64);
declare f int64 default cast('3' as int64);
declare f int64 default cast('9162371277713859723' as int64);
DECLARE y NUMERIC(5, 2) DEFAULT 123.45;

select
Expand Down
2 changes: 1 addition & 1 deletion packages/viewer/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import type {
RoutinePayload,
MetadataPayload,
TablePayload,
Err,
Format,
Tab as TabName,
TableReference,
Expand All @@ -28,7 +29,6 @@ import {
isStartProcessingEvent,
isSuccessLoadingEvent,
isFailProcessingEvent,
type Err,
} from "shared";
import type { WebviewApi } from "vscode-webview";
import { Header } from "./domain/Header";
Expand Down

0 comments on commit 0c2cf78

Please sign in to comment.