Gengliang Wang created SPARK-37963: -------------------------------------- Summary: Need to update Partition URI after renaming table in InMemoryCatalog Key: SPARK-37963 URL: https://issues.apache.org/jira/browse/SPARK-37963 Project: Spark Issue Type: Bug Components: SQL Affects Versions: 3.3.0 Reporter: Gengliang Wang Assignee: Gengliang Wang
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. {code:java} 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)) {code} To fix the bug, we need to update Partition URI after renaming a table in InMemoryCatalog -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org