Open krvikash opened 1 year ago
The issue is happening even with SELECT and UPDATE
select * from test_1;
-- Query 20230116_132246_00023_epnen failed: Type cannot be null
update test_1 set id = 2;
-- Query 20230116_132344_00024_epnen failed: Type cannot be null
Is this the same as: https://github.com/apache/iceberg/issues/4563
No, This is not the same. In Trino we allow dropping partition column which is part of older partition spec. Once the column is dropped Insert/select/update fails on the table.
whereas https://github.com/apache/iceberg/issues/4563 is to allow dropping the partition column which is part of the older partition spec. https://github.com/apache/iceberg/pull/4602 fixes this issue.
This issue will be the same as commented here https://github.com/apache/iceberg/pull/4602#discussion_r987088357.
In Trino we allow dropping partition column which is part of older partition spec.
Can we block people from doing this until that PR is merged?
@krvikash this is done right?
For now, we have restricted the user to dropping void partition column and the partition column used in older specs. We still have to support drop void partition column and the partition column used in older specs.
Repro SQL:
Stack trace: