Skip to content

Commit

Permalink
return null when timestamp value is null instead of epoch default ts (#…
Browse files Browse the repository at this point in the history
…151)

* return null when timestamp value is null instead of epoch default ts

* Preserve null values when parsing arrow data

Signed-off-by: Levko Kravets <[email protected]>

---------

Signed-off-by: Levko Kravets <[email protected]>

Co-authored-by: Levko Kravets <[email protected]>
  • Loading branch information
ivan-parada and kravets-levko authored Jul 26, 2023
1 parent 253ab0f commit 7801813
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/result/ArrowResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ export default class ArrowResult implements IOperationResult {
}

private convertArrowTypes(value: any, valueType: DataType | undefined, fields: Array<ArrowSchemaField> = []): any {
if (value === null) {
return value;
}

const fieldsMap: Record<string, ArrowSchemaField> = {};
for (const field of fields) {
fieldsMap[field.name] = field;
Expand Down

0 comments on commit 7801813

Please sign in to comment.