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

preferred to use table's location

    XMLWordPrintableJSON

Details

    Description

      When we create a hudi table with specified location which isn't the subpath of the current database's location, and then turn this table to a managed table, it'll fail to find the right table path.

      The steps you can run to reproduce:

       

      // create table in SPARK
      
      create table if not exists cow_nonpt_nonpcf_tbl (
        id int,
        name string,
        price double
      ) using hudi
      options (
        type = 'cow',
        primaryKey = 'id'
      )
      location '/user/hudi/cow_nonpt_nonpcf_tbl';
      
      // turn it to a managed table in HIVE 
      alter table cow_nonpt_nonpcf_tbl set tblproperties ('EXTERNAL'='false');
      
      // insert some data in SPARK
      insert into cow_nonpt_nonpcf_tbl select 1, 'a1', 20;
      
      // will throw FileNotFoundException

       

       

       

      Attachments

        Issue Links

          Activity

            People

              biyan900116@gmail.com Yann Byron
              biyan900116@gmail.com Yann Byron
              Forward Xu, Raymond Xu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Remaining Estimate - 0.5h
                  0.5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified