You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Y Ethan Guo (Jira)" <ji...@apache.org> on 2025/02/25 06:19:00 UTC

[jira] [Closed] (HUDI-9040) Alter rename table can remove the scheme and authority of the path by accident

     [ https://issues.apache.org/jira/browse/HUDI-9040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Y Ethan Guo closed HUDI-9040.
-----------------------------
    Resolution: Fixed

> 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
>            Assignee: Shawn Chang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.0.2
>
>
> 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)