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 am trying to read a local parquet file by using the 'registerFileHandle' method. It appears as if the file is being registered, but whenever I execute a query on it I receive the following error:
Invalid Input Error: File 'local.parquet' too small to be a Parquet file
I see the same issue has been raised here: #1134 (comment)
However, seems like they gave up and resorted to using 'registerFileBuffer'.
The function that I use to register a file is as follows:
async function registerLocalFile() {
// Let user pick file
const [fileHandle] = await window.showOpenFilePicker();
await db.registerFileHandle('local.parquet', fileHandle, 2, true);
console.log("File HandleRegistered...");
}
To Reproduce
Try and register any local parquet file on your device.
I have a valid, non-corrupt parquet file of size 5mB.
Browser/Environment:
Edge Version 127.0.2651.98
Device:
Laptop
DuckDB-Wasm Version:
1.28.1
DuckDB-Wasm Deployment:
duckdb
Full Name:
Nico
Affiliation:
Turaco Analytics
The text was updated successfully, but these errors were encountered:
NicoN13
changed the title
Cannot read parquet file from local file system
registerFileHandle - Cannot read parquet file from local file system - parquet too small
Aug 12, 2024
What happens?
I am trying to read a local parquet file by using the 'registerFileHandle' method. It appears as if the file is being registered, but whenever I execute a query on it I receive the following error:
I see the same issue has been raised here: #1134 (comment)
However, seems like they gave up and resorted to using 'registerFileBuffer'.
The function that I use to register a file is as follows:
To Reproduce
Try and register any local parquet file on your device.
I have a valid, non-corrupt parquet file of size 5mB.
Browser/Environment:
Edge Version 127.0.2651.98
Device:
Laptop
DuckDB-Wasm Version:
1.28.1
DuckDB-Wasm Deployment:
duckdb
Full Name:
Nico
Affiliation:
Turaco Analytics
The text was updated successfully, but these errors were encountered: