Prerequisites and limitations for using Iceberg in Spark
To use Apache Iceberg with Spark, you must meet the following prerequisite:
- CDS 3 with CDP Private Cloud Base 7.1.9
Limitations
Iceberg tables with equality deletes do not support partition evolution or schema evolution on Primary Key columns.
Users should not do partition evolution on tables with Primary Keys or Identifier Fields available, or do Schema Evolution on Primary Key columns, Partition Columns, or Identifier Fields from Spark.
- The use of Iceberg tables as Structured Streaming sources or sinks is not supported.
- PyIceberg is not supported. Using Spark SQL to query Iceberg tables in PySpark is supported.
Iceberg table format version 2
Iceberg table format version 1 and 2 (v1 and v2) is available. Iceberg table format v2 uses row-level UPDATE and DELETE operations that add deleted files to encoded rows that were deleted from existing data files. The DELETE, UPDATE, and MERGE operations function by writing delete files instead of rewriting the affected data files. Additionally, upon reading the data, the encoded deletes are applied to the affected rows that are read. This functionality is called merge-on-read.