You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Huaxin Gao (Jira)" <ji...@apache.org> on 2022/01/21 04:08:00 UTC

[jira] [Updated] (SPARK-37963) Need to update Partition URI after renaming table in InMemoryCatalog

     [ https://issues.apache.org/jira/browse/SPARK-37963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Huaxin Gao updated SPARK-37963:
-------------------------------
    Fix Version/s: 3.2.2
                       (was: 3.2.1)

> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org