You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@carbondata.apache.org by qi...@apache.org on 2020/02/18 01:11:42 UTC

[carbondata] branch master updated: [CARBONDATA-3709] Move stage_data directory to the $tablePath/ from $tablePath/Metadata/

This is an automated email from the ASF dual-hosted git repository.

qiangcai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/carbondata.git


The following commit(s) were added to refs/heads/master by this push:
     new 80234de  [CARBONDATA-3709] Move stage_data directory to the $tablePath/ from $tablePath/Metadata/
80234de is described below

commit 80234debda4fd1140a74c77bed31bdb943e8d7df
Author: liuzhi <37...@qq.com>
AuthorDate: Mon Feb 17 21:02:31 2020 +0800

    [CARBONDATA-3709] Move stage_data directory to the $tablePath/ from $tablePath/Metadata/
    
    Why is this PR needed?
    The stage_data directory is data directory, but under the $tablePath/Metadata/ directory, it cause the metadata directory is not clean.
    
    What changes were proposed in this PR?
    Move stage_data directory to the $tablePath/ from $tablePath/Metadata/, and keep the $tablePath/Metadata/ directory not include any data.
    
    This closes #3626
---
 .../main/java/org/apache/carbondata/core/util/path/CarbonTablePath.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/java/org/apache/carbondata/core/util/path/CarbonTablePath.java b/core/src/main/java/org/apache/carbondata/core/util/path/CarbonTablePath.java
index a0b4c96..18108f9 100644
--- a/core/src/main/java/org/apache/carbondata/core/util/path/CarbonTablePath.java
+++ b/core/src/main/java/org/apache/carbondata/core/util/path/CarbonTablePath.java
@@ -71,7 +71,7 @@ public class CarbonTablePath {
   }
 
   public static String getStageDataDir(String tablePath) {
-    return getMetadataPath(tablePath) + CarbonCommonConstants.FILE_SEPARATOR + STAGE_DATA_DIR;
+    return tablePath + CarbonCommonConstants.FILE_SEPARATOR + STAGE_DATA_DIR;
   }
 
   public static String getStageSnapshotFile(String tablePath) {