Change history lets you track rows appended to [Apache Iceberg managed tables
(formerly BigLake tables for Apache Iceberg in BigQuery)](https://docs.cloud.google.com/bigquery/docs/biglake-iceberg-tables-in-bigquery) using
[BigQuery change history concepts and capabilities](https://docs.cloud.google.com/bigquery/docs/change-history.md.txt). By using the
GoogleSQL [`APPENDS`](https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/time-series-functions.md.txt#appends) table-valued function (TVF), you can process
incremental additions over a specified time range. This helps you maintain a
table replica outside of BigQuery, audit historical data
additions, or trigger downstream pipelines without full table scans or costly
copies.

## Required permissions

To view the change history on an Apache Iceberg managed table, you need the
following permissions:

- The `bigquery.tables.getData` permission on the table. This permission is included in the following predefined Identity and Access Management (IAM) roles:
  - `roles/bigquery.dataViewer`
  - `roles/bigquery.dataEditor`
  - `roles/bigquery.dataOwner`
  - `roles/bigquery.admin`
- The `bigquery.connections.delegate` permission on the Google Cloud resource connection associated with the table. This permission is included in the [BigQuery Connection User (`roles/bigquery.connectionUser`)](https://docs.cloud.google.com/iam/docs/roles-permissions/bigquery.md.txt#bigquery.connectionUser) role.
- In addition, the service account associated with the Google Cloud resource connection must have the [`roles/storage.objectUser`](https://docs.cloud.google.com/storage/docs/access-control/iam-roles.md.txt#storage.objectUser) and `roles/storage.legacyBucketReader` roles on the underlying Cloud Storage bucket.

For additional permission requirements when a table uses row-level or
column-level security, see [Required permissions](https://docs.cloud.google.com/bigquery/docs/change-history.md.txt#required_permissions) in the
BigQuery change history documentation.

## Limitations

Apache Iceberg managed tables support change history, and leverage the same
concepts and capabilities as standard BigQuery change history.
When working with change history on Apache Iceberg managed tables, the following
limitations apply:

- Change history is only supported for [Apache Iceberg managed tables (formerly
  BigLake tables for Apache Iceberg in BigQuery)](https://docs.cloud.google.com/bigquery/docs/biglake-iceberg-tables-in-bigquery).
- The [`CHANGES` table-valued function (TVF)](https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/time-series-functions.md.txt#changes) isn't supported for Apache Iceberg managed tables. Only the [`APPENDS`](https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/time-series-functions.md.txt#appends) TVF is supported.
- The [limitations for Apache Iceberg managed tables](https://docs.cloud.google.com/bigquery/docs/biglake-iceberg-tables-in-bigquery.md.txt#limitations) also apply.
- The limitations for the [`APPENDS`](https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/time-series-functions.md.txt#appends) change history function also apply.

## What's next

For more information, see the following BigQuery documentation:

- [Work with change history](https://docs.cloud.google.com/bigquery/docs/change-history.md.txt)
- [`APPENDS` TVF reference](https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/time-series-functions.md.txt#appends)
- [Create and use Apache Iceberg managed tables](https://docs.cloud.google.com/bigquery/docs/biglake-iceberg-tables-in-bigquery.md.txt)
- [Learn how to use a BigQuery continuous query to read real-time data from Apache Iceberg managed tables](https://docs.cloud.google.com/bigquery/docs/continuous-queries.md.txt)