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
Use the below code to parse a Parquet file using Brotli compression.
Expected behaviour
The parse is successful.
Actual behaviour
An error occurs:
la.__wbindgen_malloc is not a function
Note that this does not happen for other supported compression methods.
Any logs, error output, etc?
This is the error:
{
"name": "TypeError",
"message": "la.__wbindgen_malloc is not a function",
"stack": "TypeError: la.__wbindgen_malloc is not a function\n at passArray8ToWasm (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@storage-explorer/file-preview/dist/src/index.js:27:2264713)\n at ju.exports.decompress (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@storage-explorer/file-preview/dist/src/index.js:27:2265227)\n at Object.inflate_brotli [as inflate] (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@storage-explorer/file-preview/dist/src/index.js:27:2267375)\n at Object.inflate (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@storage-explorer/file-preview/dist/src/index.js:27:2267061)\n at decodeDictionaryPage (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@storage-explorer/file-preview/dist/src/index.js:72:280198)\n at decodePage (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@storage-explorer/file-preview/dist/src/index.js:72:279268)\n at /Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@storage-explorer/file-preview/dist/src/index.js:72:277570\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async e.readColumnChunk (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@storage-explorer/file-preview/dist/src/index.js:72:277516)\n at async e.readRowGroup (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@storage-explorer/file-preview/dist/src/index.js:72:276909)"
}
Any other comments?
This occurs within the context of another app. I don't know for sure if this happens "out of the box" or not. Could this be due to a bad or missing Rust binding in brotli-wasm? Here's the Typescript code that is used:
import{ParquetReader}from"@dsnp/parquetjs";asyncfunction*generateRecord(reader: ParquetReader): AsyncGenerator<any[]>{constcursor=reader.getCursor();letrecord: any;while(record=awaitcursor.next()){yieldrecord;}}constbuffer= ...;// Retrieve by downloading from some URL or reading from local file.constreader=awaitParquetReader.openBuffer(buffer));constschema=reader.getSchema();constcolumns=Object.keys(schema.fields);constrows=[];forawait(constrecordofgenerateRecord(this.#reader)){constrowArray=columns.reduce<TabularCellValue[]>((acc,key)=>{constvalue=record[key];if(value===null||value===undefined){acc.push(undefined);}elseif(valueinstanceofDate){acc.push({type: "Date",value: value.getTime()});}elseif(typeofvalue==="bigint"){acc.push({type: "BigInt",value: value.toString()});}elseif(typeofvalue==="object"){acc.push(JSON.stringify(value,(_,v)=>typeofv==="bigint" ? v.toString() : v));}elseif(typeofvalue==="string"||typeofvalue==="number"||typeofvalue==="boolean"){acc.push(value);}else{acc.push(undefined);}returnacc;},[]);rows.push(rowArray);}
...
The text was updated successfully, but these errors were encountered:
Actually, this may have been a problem on our end. I tried doing the same thing "out of the box", and it worked just fine. We use ESBuild to bundle things, but it only works well with static imports.
Steps to reproduce
Use the below code to parse a Parquet file using Brotli compression.
Expected behaviour
The parse is successful.
Actual behaviour
An error occurs:
Note that this does not happen for other supported compression methods.
Any logs, error output, etc?
This is the error:
Any other comments?
This occurs within the context of another app. I don't know for sure if this happens "out of the box" or not. Could this be due to a bad or missing Rust binding in
brotli-wasm
? Here's the Typescript code that is used:The text was updated successfully, but these errors were encountered: