Apache Iceberg version
0.10.0 (latest release)
Please describe the bug 🐞
Steps to reproduce:
run_spark_commands(spark, [
"DROP TABLE IF EXISTS ns.table",
"CREATE TABLE ns.table (a int, b int) USING ICEBERG PARTITIONED BY (a)",
"INSERT INTO ns.table VALUES (1, 2), (1, 2), (2, 1)",
"ALTER TABLE ns.table DROP PARTITION FIELD a",
"ALTER TABLE ns.table DROP COLUMN a"
])
table = catalog.load_table("ns.table")
# ERROR
print(len(table.scan().plan_files()))
Here is the PR with the fix
Willingness to contribute