Skip to content

Commit 7801813

Browse files
return null when timestamp value is null instead of epoch default ts (#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 <levko.ne@gmail.com> --------- Signed-off-by: Levko Kravets <levko.ne@gmail.com> Co-authored-by: Levko Kravets <levko.ne@gmail.com>
1 parent 253ab0f commit 7801813

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/result/ArrowResult.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ export default class ArrowResult implements IOperationResult {
6868
}
6969

7070
private convertArrowTypes(value: any, valueType: DataType | undefined, fields: Array<ArrowSchemaField> = []): any {
71+
if (value === null) {
72+
return value;
73+
}
74+
7175
const fieldsMap: Record<string, ArrowSchemaField> = {};
7276
for (const field of fields) {
7377
fieldsMap[field.name] = field;

0 commit comments

Comments
 (0)