Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-3861

'path' in CatalogTable#properties failed to be updated when renaming table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 0.12.1
    • None
    • 0.5

    Description

      Reproduce the issue as below

      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')

      As we can see, the 'path' property is '/user/hive/warehous/hudi.db/mor_simple', rather than '/user/hive/warehous/hudi.db/mor_simple0'.

       

      Attachments

        Issue Links

          Activity

            People

              KnightChess KnightChess
              jinxing6042@126.com Jin Xing
              Raymond Xu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: