> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chowder.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# read_parquet

> Read Parquet files as a SQL table.

`read_parquet` reads Parquet files and returns their rows, with the column names and types stored in the files.

## Signature

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
read_parquet(pattern)
```

| Parameter | Type | Description |
| - | - | - |
| `pattern` | `VARCHAR` | A Parquet file, directory, glob, or supported remote URI. |

Supported extension: `.parquet`.

## Example

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    title,
    content
FROM read_parquet('hf://buckets/chowderai/chowder-demo/parquet/data/amazon-reviews/*.parquet')
WHERE content ILIKE '%battery%'
LIMIT 5;
```

## Columns

Columns and types come from the Parquet files. When files have different columns, the result includes all of them, and a column missing from a file is null in that file's rows. Folder names such as `year=2021` don't become columns. `read_parquet` does not add a `source` column.

## Read Hugging Face repository files directly

Use `read_parquet` to read specific Parquet files in a Hugging Face dataset repository.

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    convo_id,
    convo_transcript
FROM read_parquet('hf://datasets/chowderai/cust-convo/data/*.parquet')
LIMIT 5;
```

To read a dataset by subset and split instead, use a bare [`hf://datasets/...`](https://docs.chowder.ai/reference/sources/hugging-face-datasets) URI.

## Execution

* Chowder reads only the columns the query selects.
* Filters use Parquet statistics to skip row groups that can't match.
* `LIMIT` stops reading once the query has enough rows.
* Chowder reads the schema from the file footers, without scanning the data.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.