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

zhangzc 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 bc5c2e5  [HOTFIX] Change not to use cache when creating CarbonTable 
from schema file #3472
bc5c2e5 is described below

commit bc5c2e528bdf65433c8e772f540e8d81a55051d1
Author: Jacky Li <[email protected]>
AuthorDate: Thu Nov 21 09:27:56 2019 +0800

    [HOTFIX] Change not to use cache when creating CarbonTable from schema file 
#3472
    
    Using cache will lead to incorrect table path set in SDK writer.
    This PR corrects it
    
    This closes #3472
---
 .../java/org/apache/carbondata/core/metadata/schema/SchemaReader.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/core/src/main/java/org/apache/carbondata/core/metadata/schema/SchemaReader.java
 
b/core/src/main/java/org/apache/carbondata/core/metadata/schema/SchemaReader.java
index 2f8924a..d4e9c65 100644
--- 
a/core/src/main/java/org/apache/carbondata/core/metadata/schema/SchemaReader.java
+++ 
b/core/src/main/java/org/apache/carbondata/core/metadata/schema/SchemaReader.java
@@ -69,8 +69,7 @@ public class SchemaReader {
   public static CarbonTable readCarbonTableFromSchema(String schemaFilePath, 
Configuration conf)
       throws IOException {
     TableInfo tableInfo = readTableInfoFromSchema(schemaFilePath, conf);
-    CarbonMetadata.getInstance().loadTableMetadata(tableInfo);
-    return CarbonMetadata.getInstance().getCarbonTable("dummy_dummy");
+    return CarbonTable.buildFromTableInfo(tableInfo);
   }
 
   /**

Reply via email to