Skip to content

Upgrade apache-arrow #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 18, 2023
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