Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.3.0
Description
After renaming a partitioned table, select from the new table from InMemoryCatalog will get an empty result.
The following checkAnswer will fail as the result is empty.
sql(s"create table foo(i int, j int) using PARQUET partitioned by (j)") sql("insert into table foo partition(j=2) values (1)") sql(s"alter table foo rename to bar") checkAnswer(spark.table("bar"), Row(1, 2))
To fix the bug, we need to update Partition URI after renaming a table in InMemoryCatalog