Skip to content

Commit

Permalink
[HOTFIX] Change not to use cache when creating CarbonTable from schem…
Browse files Browse the repository at this point in the history
…a file #3472

Using cache will lead to incorrect table path set in SDK writer.
This PR corrects it

This closes #3472
  • Loading branch information
jackylk authored and zzcclp committed Nov 21, 2019
1 parent 577dc47 commit bc5c2e5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public static CarbonTable readCarbonTableFromStore(AbsoluteTableIdentifier ident
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);
}

/**
Expand Down

0 comments on commit bc5c2e5

Please sign in to comment.