# read_parquet

Reads events from a Parquet byte stream.

```tql
read_parquet
```

## Description

Reads events from a [Parquet](https://parquet.apache.org/) byte stream.

[Apache Parquet](https://parquet.apache.org/) is a columnar storage format that a variety of data tools support.

MMAP Parsing

When using theis with the [`from_file`](https://preview.docs.tenzir.com/375/375/reference/operators/from_file.md) operator, we recommend passing the `mmap=true` option to `from_file` to give the parser full control over the reads, which leads to better performance and memory usage.

Limitation

Tenzir currently assumes that all Parquet files use metadata recognized by Tenzir. We plan to lift this restriction in the future.

## Examples

Read a Parquet file:

```tql
from_file "/tmp/data.prq", mmap=true {
  read_parquet
}
```

## See Also

* [`read_feather`](https://preview.docs.tenzir.com/375/375/reference/operators/read_feather.md)
* [`to_hive`](https://preview.docs.tenzir.com/375/375/reference/operators/to_hive.md)
* [`write_parquet`](https://preview.docs.tenzir.com/375/375/reference/operators/write_parquet.md)