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:
[email protected]


With regards,
Apache Git Services

Reply via email to