You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "KnightChess (Jira)" <ji...@apache.org> on 2022/04/12 12:04:00 UTC
[jira] [Assigned] (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:all-tabpanel ]
KnightChess reassigned HUDI-3861:
---------------------------------
Assignee: KnightChess
> '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
> Assignee: KnightChess
> 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)