[GitHub] [carbondata] kunal642 opened a new pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] kunal642 opened a new pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox

kunal642 opened a new pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836


    ### Why is this PR needed?
   1. Creating external table without Fs schema fails on HDFS
   2. Desc formatted on an external table throws StackOverflowException
   
    ### What changes were proposed in this PR?
   1. Added default FS Schema to the table path
   2. Added a check for non-transactional table in refreshIndexInfo method.
       
    ### Does this PR introduce any user interface change?
    - No
   
    ### Is any new testcase added?
    - No
   
       
   


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox

CarbonDataQA1 commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657218442


   Build Failed  with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/3355/
   


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657218542


   Build Failed  with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/1614/
   


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] kunal642 commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

kunal642 commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657250639


   retest this please


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657264650


   Build Failed  with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/3360/
   


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657265035


   Build Failed  with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/1619/
   


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657278659


   Build Failed  with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/1621/
   


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657294855


   Build Success with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/3363/
   


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657295113


   Build Success with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/1622/
   


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] ajantha-bhat commented on a change in pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

ajantha-bhat commented on a change in pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#discussion_r453458380



##########
File path: core/src/main/java/org/apache/carbondata/core/datastore/impl/FileFactory.java
##########
@@ -620,8 +620,9 @@ public static boolean checkIfPrefixExists(String path) {
     }
 
     final String lowerPath = path.toLowerCase(Locale.getDefault());
-    return lowerPath.contains("://") || lowerPath.startsWith(CarbonCommonConstants.HDFSURL_PREFIX)
-        || lowerPath.startsWith(CarbonCommonConstants.VIEWFSURL_PREFIX) || lowerPath
+    return lowerPath.contains(":/") || lowerPath.contains("://") || lowerPath

Review comment:
       why `lowerPath.contains(":/")` is added ? It is for which file system ?




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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] kunal642 commented on a change in pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

kunal642 commented on a change in pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#discussion_r453481361



##########
File path: core/src/main/java/org/apache/carbondata/core/datastore/impl/FileFactory.java
##########
@@ -620,8 +620,9 @@ public static boolean checkIfPrefixExists(String path) {
     }
 
     final String lowerPath = path.toLowerCase(Locale.getDefault());
-    return lowerPath.contains("://") || lowerPath.startsWith(CarbonCommonConstants.HDFSURL_PREFIX)
-        || lowerPath.startsWith(CarbonCommonConstants.VIEWFSURL_PREFIX) || lowerPath
+    return lowerPath.contains(":/") || lowerPath.contains("://") || lowerPath

Review comment:
       removed




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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] ajantha-bhat commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

ajantha-bhat commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657410720


   LGTM.
   
   Will merge once build is passed.
   


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657506771


   Build Failed  with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/1628/
   


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657507315


   Build Failed  with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/3369/
   


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] kunal642 commented on a change in pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

kunal642 commented on a change in pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#discussion_r453596871



##########
File path: core/src/main/java/org/apache/carbondata/core/datastore/impl/FileFactory.java
##########
@@ -620,8 +620,9 @@ public static boolean checkIfPrefixExists(String path) {
     }
 
     final String lowerPath = path.toLowerCase(Locale.getDefault());
-    return lowerPath.contains("://") || lowerPath.startsWith(CarbonCommonConstants.HDFSURL_PREFIX)
-        || lowerPath.startsWith(CarbonCommonConstants.VIEWFSURL_PREFIX) || lowerPath
+    return lowerPath.contains(":/") || lowerPath.contains("://") || lowerPath

Review comment:
       @ajantha-bhat On local while running test cases the path starts with file:/ instead of file://, that is why i have added this back.




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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657518486


   Build Failed  with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/1634/
   


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657518964


   Build Failed  with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/3375/
   


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] ajantha-bhat commented on a change in pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

ajantha-bhat commented on a change in pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#discussion_r453612663



##########
File path: core/src/main/java/org/apache/carbondata/core/datastore/impl/FileFactory.java
##########
@@ -620,8 +620,9 @@ public static boolean checkIfPrefixExists(String path) {
     }
 
     final String lowerPath = path.toLowerCase(Locale.getDefault());
-    return lowerPath.contains("://") || lowerPath.startsWith(CarbonCommonConstants.HDFSURL_PREFIX)
-        || lowerPath.startsWith(CarbonCommonConstants.VIEWFSURL_PREFIX) || lowerPath
+    return lowerPath.contains(":/") || lowerPath.contains("://") || lowerPath

Review comment:
       ok.
   I think this is happening with newly added FS scheme.
   Because without scheme these test cases were passing.  May be we would have checked scheme adding 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:
[hidden email]


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657589847


   Build Success with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/1635/
   


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


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3836: [CARBONDATA-3897] Fixed external table with location creation and deleting issues

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3836:
URL: https://github.com/apache/carbondata/pull/3836#issuecomment-657590223


   Build Success with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/3376/
   


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


12