Shawn Chang created HUDI-9040:
---------------------------------
Summary: Alter rename table can remove the scheme and authority of
the path by accident
Key: HUDI-9040
URL: https://issues.apache.org/jira/browse/HUDI-9040
Project: Apache Hudi
Issue Type: Bug
Reporter: Shawn Chang
After renaming the table, Hudi needs to reset the path in table properties. But
it will also remove the scheme and authority of the path if the path is
obtained via URI.
{code:java}
// before renaming
path -> s3://<some_bucket>/test-data/hudi/tables/hudi_sparkdml_cow
// after renaming
path -> /test-data/hudi/tables/hudi_sparkdml_cow{code}
Causing file not found exception for further read:
{code:java}
java.util.concurrent.ExecutionException: java.io.FileNotFoundException: File
does not exist: /test-data/hudi/tables/hudi_sparkdml_cow{code}
We should use the catalog table's location directly instead of using
catalogTable.storage.locationUri in AlterHoodieTableRenameCommand
--
This message was sent by Atlassian Jira
(v8.20.10#820010)