Data Store Management

An Apache Iceberg table must rename a column without losing its values and change monthly partitioning to daily partitioning for future writes. Historical files must remain unchanged and queryable through the same table; which approach meets these requirements?

Show the answer

Correct answerC. Rename the column; evolve the partition specification.

AWhy not this: Dropping and recreating a column assigns a new field identity rather than preserving access to the original column's values.

BWhy not this: Renaming preserves values, but rewriting historical files violates the requirement to leave them unchanged.

CWhy this is right: Field IDs preserve the renamed column, and partition evolution supports old and new partition specifications in one table.

DWhy not this: Copying data into a replacement table rewrites historical data and does not preserve the existing table as required.

Iceberg tracks columns by field IDs, so renaming preserves their identity and values. Partition evolution lets new files use daily partitions while historical files retain their previous specification; rewriting historical files is unnecessary and violates the requirement.