[ https://issues.apache.org/jira/browse/SPARK-37963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17479813#comment-17479813 ]
Huaxin Gao commented on SPARK-37963: ------------------------------------ Changed the fix version to 3.2.2 for now. Will change back if RC2 fails. > 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 > Priority: Major > Fix For: 3.3.0, 3.2.2 > > > 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