Duck DB with angular unable to load and query parquet file #1784
-
Hi, I'm trying to duckdb-wasm with angular to load a parquet file and query it, i was able to create a connection, but unable to load the parquet file, getting error
i have written the code in a service, `import { Injectable } from '@angular/core'; const worker_url = URL.createObjectURL( // Instantiate the asynchronus version of DuckDB-Wasm Please help me with resolving the issue |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The command read_parquet('test.parquet'))` will read a virtual file registered in DuckDB with the alias "test.parquet". You have to first register a physical file in the DuckDB virtual file system before you can query it. There are a couple different methods of registering a file show below which was copied from https://duckdb.org/docs/api/wasm/data_ingestion.html#parquet. |
Beta Was this translation helpful? Give feedback.
The command read_parquet('test.parquet'))` will read a virtual file registered in DuckDB with the alias "test.parquet". You have to first register a physical file in the DuckDB virtual file system before you can query it.
There are a couple different methods of registering a file show below which was copied from https://duckdb.org/docs/api/wasm/data_ingestion.html#parquet.