You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a parquet stream to track api usage, and every seems working ok except for when I try to close the stream i get an error: `os.close is not a function'. I suppose it is happening here:
const trackingStream = await parquet.ParquetWriter.openStream(
schema,
fileStream,
{rowGroupSize: 2}, // batch size before flushing the output buffer
);
where fileStream is a s3-upload-stream stream
then I append rows using appendRow, but when I try to close it I get the error.
s3-upload-stream stream does not have a close method, it has an end method, could be this the issue ? bc I suppose os is output stream. So I wondering if I need to wrap the s3-upload-stream into an object with a close method that internally call the end method ?
The text was updated successfully, but these errors were encountered:
Hi @yaplas! I am running into this exact same issue using the TypeScript parquets library. Did you ever find a fix? I got it working using the parquetjs-lite library, but would prefer the TS one if possible.
I'm using a parquet stream to track api usage, and every seems working ok except for when I try to close the stream i get an error: `os.close is not a function'. I suppose it is happening here:
parquetjs/lib/util.js
Line 122 in 455ff9f
I create the stream this way:
where fileStream is a
s3-upload-stream
streamthen I append rows using
appendRow
, but when I try to close it I get the error.s3-upload-stream
stream does not have aclose
method, it has anend
method, could be this the issue ? bc I supposeos
is output stream. So I wondering if I need to wrap thes3-upload-stream
into an object with aclose
method that internally call theend
method ?The text was updated successfully, but these errors were encountered: