Skip to content

Commit

Permalink
fix from api
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Sep 18, 2023
1 parent 220a13c commit 17f83a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/js/arrow1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ it("read-write-read round trip (with writer properties)", async (t) => {
const writerProperties = new wasm.WriterPropertiesBuilder().build();

const parquetBuffer = wasm.writeParquet(
wasm.Table.fromIPC(tableToIPC(initialTable, "stream")),
wasm.Table.fromIPCStream(tableToIPC(initialTable, "stream")),
writerProperties
);
const table = tableFromIPC(wasm.readParquet(parquetBuffer).intoIPCStream());
Expand All @@ -58,7 +58,7 @@ it("read-write-read round trip (no writer properties provided)", async (t) => {
const initialTable = tableFromIPC(wasm.readParquet(arr).intoIPCStream());

const parquetBuffer = wasm.writeParquet(
wasm.Table.fromIPC(tableToIPC(initialTable, "stream"))
wasm.Table.fromIPCStream(tableToIPC(initialTable, "stream"))
);
const table = tableFromIPC(wasm.readParquet(parquetBuffer).intoIPCStream());

Expand Down
4 changes: 2 additions & 2 deletions tests/js/arrow2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ it("read-write-read round trip (with writer properties)", () => {
const writerProperties = new wasm.WriterPropertiesBuilder().build();

const parquetBuffer = wasm.writeParquet(
wasm.Table.fromIPC(tableToIPC(initialTable, "file")),
wasm.Table.fromIPCStream(tableToIPC(initialTable, "stream")),
writerProperties
);
const table = tableFromIPC(wasm.readParquet(parquetBuffer).intoIPCStream());
Expand All @@ -57,7 +57,7 @@ it("read-write-read round trip (no writer properties provided)", async (t) => {
const initialTable = tableFromIPC(wasm.readParquet(arr).intoIPCStream());

const parquetBuffer = wasm.writeParquet(
wasm.Table.fromIPC(tableToIPC(initialTable, "file"))
wasm.Table.fromIPCStream(tableToIPC(initialTable, "stream"))
);
const table = tableFromIPC(wasm.readParquet(parquetBuffer).intoIPCStream());

Expand Down

0 comments on commit 17f83a5

Please sign in to comment.