Parquet analysis
How to Query Parquet Files in the Browser
Use browser-based DuckDB to inspect Parquet files, run fast analytical queries, and export compact results without a local database install.
On This Page
Why Parquet works well for analytics
Parquet is a columnar file format designed for analytical queries. It stores schema information and is often smaller and faster to scan than equivalent CSV exports.
- Column types are preserved better than in plain text files.
- Analytical queries can read only the columns they need.
- Parquet is common in data warehouses, lakehouses, and Python/R workflows.
Add a Parquet file
- Open the SQL for Files editor.
- Add a .parquet file from your device.
- Inspect the table and schema in the Database sidebar.
- Write SQL against the generated table name.
Inspect schema before querying
Because Parquet stores typed columns, the schema view helps you quickly identify dates, numeric measures, dimensions, booleans, and nested fields.
SELECT *
FROM transactions
LIMIT 25;Run analytical queries
Parquet is strongest when you want to summarize large sets of rows by a smaller number of dimensions.
SELECT
date_trunc('month', order_date) AS month,
product_category,
SUM(revenue) AS revenue
FROM transactions
GROUP BY month, product_category
ORDER BY month, revenue DESC;Know the browser memory limits
Parquet can be efficient, but SQL for Files still runs inside browser memory. Very large files may hit browser limits earlier than a native DuckDB process or server-side database.
Practical guidance
Start with focused queries that select only the columns you need, and export aggregated results instead of trying to display millions of rows.
Continue in the editor
Open SQL for Files to add your own CSV, JSON, or Parquet files and try these examples locally in your browser.
Open editorRelated Learn SQL lessons
Related guides
What Is DuckDB WASM and Why Use It for Browser SQL?
DuckDB WASM brings an analytical SQL engine into the browser, enabling local file analysis without a server-side database.
Private Local Data Analysis in the Browser
Understand the local processing model behind SQL for Files and how to work safely with sensitive CSV, JSON, and Parquet files.
Practical SQL Examples for CSV, JSON, and Parquet Files
A compact collection of SQL patterns you can adapt for local file analysis in SQL for Files.