Skip to content

Commit 4d46022

Browse files
Upgrade apache-arrow (#180)
Signed-off-by: Levko Kravets <[email protected]>
1 parent 28e55f3 commit 4d46022

File tree

4 files changed

+191
-276
lines changed

4 files changed

+191
-276
lines changed

lib/result/ArrowResult.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { TRowSet, TTableSchema, TColumnDesc } from '../../thrift/TCLIService_typ
1515
import IOperationResult from './IOperationResult';
1616
import { getSchemaColumns, convertThriftValue } from './utils';
1717

18-
const { isArrowBigNumSymbol, bignumToBigInt } = arrowUtils;
18+
const { isArrowBigNumSymbol, bigNumToBigInt } = arrowUtils;
1919

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

0 commit comments

Comments
 (0)