Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/result/ArrowResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { TRowSet, TTableSchema, TColumnDesc } from '../../thrift/TCLIService_typ
import IOperationResult from './IOperationResult';
import { getSchemaColumns, convertThriftValue } from './utils';

const { isArrowBigNumSymbol, bignumToBigInt } = arrowUtils;
const { isArrowBigNumSymbol, bigNumToBigInt } = arrowUtils;

type ArrowSchema = Schema<TypeMap>;
type ArrowSchemaField = Field<DataType<Type, TypeMap>>;
Expand Down Expand Up @@ -115,7 +115,7 @@ export default class ArrowResult implements IOperationResult {
// Convert big number values to BigInt
// Decimals are also represented as big numbers in Arrow, so additionally process them (convert to float)
if (value instanceof Object && value[isArrowBigNumSymbol]) {
const result = bignumToBigInt(value);
const result = bigNumToBigInt(value);
if (DataType.isDecimal(valueType)) {
return Number(result) / 10 ** valueType.scale;
}
Expand Down
Loading