You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/09/06 21:15:03 UTC
[GitHub] [hudi] yihua commented on a diff in pull request #6384: [HUDI-4613] Avoid the use of regex expressions when call hoodieFileGroup#addLogFile function
yihua commented on code in PR #6384:
URL: https://github.com/apache/hudi/pull/6384#discussion_r964175393
##########
hudi-common/src/main/java/org/apache/hudi/common/model/HoodieLogFile.java:
##########
@@ -98,7 +111,10 @@ public String getFileExtension() {
}
public Path getPath() {
- return new Path(pathStr);
+ if (path == null) {
+ this.path = new Path(pathStr);
Review Comment:
Could you use `CachingPath` instead?
--
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