You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by GitBox <gi...@apache.org> on 2019/03/20 13:19:10 UTC
[GitHub] [carbondata] kumarvishal09 commented on a change in pull request
#3154: [WIP]Fixed performance issue
kumarvishal09 commented on a change in pull request #3154: [WIP]Fixed performance issue
URL: https://github.com/apache/carbondata/pull/3154#discussion_r267332074
##########
File path: core/src/main/java/org/apache/carbondata/core/datastore/impl/FileFactory.java
##########
@@ -81,16 +81,30 @@ public static FileReader getFileHolder(FileType fileType, Configuration configur
}
public static FileType getFileType(String path) {
- String lowerPath = path.toLowerCase();
- if (lowerPath.startsWith(CarbonCommonConstants.HDFSURL_PREFIX)) {
+ if (path.startsWith(CarbonCommonConstants.HDFSURL_PREFIX) || path.toLowerCase()
Review comment:
Okay!!
I forgot remove lower case condition from first if check. I will extract to method
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services