Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Nov 6, 2024
1 parent 3f5c6cd commit 4ad9377
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/schema-utils/src/lib/mesh/convert-mesh-to-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export function convertMeshToArrowTable(mesh: Mesh, batchSize?: number): ArrowTa
}

const structField = new arrow.Struct(arrowSchema.fields);
const length = arrowDatas[0].length;
const structData = new arrow.Data(structField, 0, length, 0, undefined, arrowDatas);
const recordBatch = new arrow.RecordBatch(arrowSchema, structData);
const table = new arrow.Table([recordBatch]);
Expand Down

0 comments on commit 4ad9377

Please sign in to comment.