Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
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
- links to