This API returns change data feed (CDF) information, representing row-level changes between versions of a Delta table. It records change data for UPDATE, DELETE, and MERGE operations.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/delta-io/delta-sharing/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Change Data Feed provides three metadata columns in addition to table data:_change_type(String): The type of change -insert,update_preimage,update_postimage, ordelete_commit_version(Long): The table version containing the change_commit_timestamp(Long): Unix timestamp (milliseconds) when the change was committed
Request
GET
{prefix}/shares/{share}/schemas/{schema}/tables/{table}/changesHeaders
Bearer token for authentication
URL Parameters
The share name to query. This parameter is case-insensitive.
The schema name to query. This parameter is case-insensitive.
The table name to query. This parameter is case-insensitive.
Query Parameters
At least one of
startingVersion or startingTimestamp must be provided.The starting version of the query (inclusive). Either this or
startingTimestamp is required.The starting timestamp in ISO8601 format (UTC timezone), e.g.,
2022-01-01T00:00:00Z. Will be converted to a version created at or after this timestamp.The ending version of the query (inclusive). If not provided, uses the latest table version.
The ending timestamp in ISO8601 format (UTC timezone). Will be converted to a version created at or before this timestamp.
If true, return historical metadata seen in the delta log. Useful for streaming clients to check schema compatibility.Default:
falseResponse
Headers
The starting version of files in the response
Response Body
The response is newline-delimited JSON (NDJSON) with the following structure:First line: Protocol version information
Second line: Table metadata (current and optionally historical if
includeHistoricalMetadata=true)Change data: File additions
Change data feed files (changes stored in
_change_data directory)Change data: File removals
Example Request
Example Response
Using Timestamps
Error Responses
Change Types
The
_change_type column in CDF files indicates the type of operation:- insert: New row added to the table
- update_preimage: Row values before an update
- update_postimage: Row values after an update
- delete: Row removed from the table
Change Data Feed must be enabled on the table (
enableChangeDataFeed = true in table configuration) for this API to work.