You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Jin Xing (Jira)" <ji...@apache.org> on 2022/04/12 09:40:00 UTC

[jira] [Commented] (HUDI-3861) 'path' in CatalogTable#properties failed to be updated when renaming table

    [ https://issues.apache.org/jira/browse/HUDI-3861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17521043#comment-17521043 ] 

Jin Xing commented on HUDI-3861:
--------------------------------

[~xleesf] 
Since you are master of HoodieCatalog, I ping you for this issue  – – why a 'path' property is added in HoodieCatalog#createHoodieTable, given it's already saved in CatalogTable#storage 

> 'path' in CatalogTable#properties failed to be updated when renaming table
> --------------------------------------------------------------------------
>
>                 Key: HUDI-3861
>                 URL: https://issues.apache.org/jira/browse/HUDI-3861
>             Project: Apache Hudi
>          Issue Type: Bug
>            Reporter: Jin Xing
>            Priority: Minor
>
> Reproduce the issue as below
> {code:java}
> 1. Create a MOR table 
> create table mor_simple(
>   id int,
>   name string,
>   price double
> )
> using hudi
> options (
>   type = 'cow',
>   primaryKey = 'id'
> )
> 2. Renaming
> alter table mor_simple rename to mor_simple0
> 3. Show create table mor_simple0
> Output as
> CREATE TABLE hudi.mor_simple0 (
>   `_hoodie_commit_time` STRING,
>   `_hoodie_commit_seqno` STRING,
>   `_hoodie_record_key` STRING,
>   `_hoodie_partition_path` STRING,
>   `_hoodie_file_name` STRING,
>   `id` INT,
>   `name` STRING,
>   `price` DOUBLE)
> USING hudi
> OPTIONS(
>   'primaryKey' = 'id',
>   'type' = 'cow')
> TBLPROPERTIES(
>   'path' = '/user/hive/warehous/hudi.db/mor_simple'){code}
> As we can see, the 'path' property is '/user/hive/warehous/hudi.db/mor_simple', rather than '/user/hive/warehous/hudi.db/mor_simple0'.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)