You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "ksoullpwk (via GitHub)" <gi...@apache.org> on 2023/08/14 09:10:15 UTC

[GitHub] [hudi] ksoullpwk commented on issue #9440: [SUPPORT] Trino cannot read when there is replacecommit metadata

ksoullpwk commented on issue #9440:
URL: https://github.com/apache/hudi/issues/9440#issuecomment-1676965513

   ```
   private Location getInstantFileNamePath(String fileName)
   {
       return Location.of(fileName.contains(SCHEMA_COMMIT_ACTION) ? metaClient.getSchemaFolderName() : metaClient.getMetaPath().path()).appendPath(fileName);
   }
   ```
   
   I have checked that line of code and it seems like `metaClient.getMetaPath().path()` returns the path without scheme. Then, there is the assertion logic in `Location.of` to check if the scheme exists and raise the error.
   
   Just replacing `metaClient.getMetaPath().path()` to `metaClient.getMetaPath().toString()` would fix this issue.
   PS. I'm not sure if we also need to fix `metaClient.getSchemaFolderName()`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org