Enable BigInt results in Quick Evals
This commit is contained in:
Родитель
fb3c00b9f8
Коммит
ac60ba3a49
|
@ -11,6 +11,7 @@ export namespace BqrsColumnKindCode {
|
|||
export const BOOLEAN = "b";
|
||||
export const DATE = "d";
|
||||
export const ENTITY = "e";
|
||||
export const BIGINT = "z";
|
||||
}
|
||||
|
||||
export type BqrsColumnKind =
|
||||
|
@ -19,7 +20,8 @@ export type BqrsColumnKind =
|
|||
| typeof BqrsColumnKindCode.STRING
|
||||
| typeof BqrsColumnKindCode.BOOLEAN
|
||||
| typeof BqrsColumnKindCode.DATE
|
||||
| typeof BqrsColumnKindCode.ENTITY;
|
||||
| typeof BqrsColumnKindCode.ENTITY
|
||||
| typeof BqrsColumnKindCode.BIGINT;
|
||||
|
||||
export interface BqrsSchemaColumn {
|
||||
name?: string;
|
||||
|
@ -79,7 +81,8 @@ export type BqrsKind =
|
|||
| "Integer"
|
||||
| "Boolean"
|
||||
| "Date"
|
||||
| "Entity";
|
||||
| "Entity"
|
||||
| "BigInt";
|
||||
|
||||
interface BqrsColumn {
|
||||
name?: string;
|
||||
|
|
|
@ -76,6 +76,8 @@ function mapColumnKind(kind: BqrsColumnKind): ColumnKind {
|
|||
return ColumnKind.Date;
|
||||
case BqrsColumnKindCode.ENTITY:
|
||||
return ColumnKind.Entity;
|
||||
case BqrsColumnKindCode.BIGINT:
|
||||
return ColumnKind.BigInt;
|
||||
default:
|
||||
assertNever(kind);
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@ export enum ColumnKind {
|
|||
Boolean = "boolean",
|
||||
Date = "date",
|
||||
Entity = "entity",
|
||||
BigInt = "bigint",
|
||||
}
|
||||
|
||||
export type Column = {
|
||||
|
@ -61,6 +62,11 @@ type CellValueNumber = {
|
|||
value: number;
|
||||
};
|
||||
|
||||
type CellValueBigInt = {
|
||||
type: "number";
|
||||
value: number;
|
||||
};
|
||||
|
||||
type CellValueString = {
|
||||
type: "string";
|
||||
value: string;
|
||||
|
@ -75,7 +81,8 @@ export type CellValue =
|
|||
| CellValueEntity
|
||||
| CellValueNumber
|
||||
| CellValueString
|
||||
| CellValueBoolean;
|
||||
| CellValueBoolean
|
||||
| CellValueBigInt;
|
||||
|
||||
export type Row = CellValue[];
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче