Repository: tajo
Updated Branches:
  refs/heads/0.11.1 [created] e95cda43c

TAJO-2024: Remove getContentSummary from HCatalogStore.

Closes #914


Project: http://git-wip-us.apache.org/repos/asf/tajo/repo
Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/e95cda43
Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/e95cda43
Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/e95cda43

Branch: refs/heads/0.11.1
Commit: e95cda43c3d48b40e650f6c343c1b71a140387bc
Parents: 040636d
Author: Hyunsik Choi <[email protected]>
Authored: Tue Dec 15 23:34:56 2015 -0800
Committer: Hyunsik Choi <[email protected]>
Committed: Wed Dec 16 16:25:01 2015 -0800

----------------------------------------------------------------------
 CHANGES                                                  |  8 +++++---
 .../org/apache/tajo/catalog/store/HiveCatalogStore.java  | 11 +----------
 2 files changed, 6 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/e95cda43/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 8756d5e..e288c43 100644
--- a/CHANGES
+++ b/CHANGES
@@ -104,9 +104,11 @@ Release 0.11.1 - unreleased
 
   SUB TASKS
 
-    TAJO-1856: Add a description about the relationship of tablespace, managed 
table, 
-    and external table to Tablespace section of Table Management chapter. 
-    (Contributed by Jongyoung Park. Committed by jihoon)
+    TAJO-2024: Remove getContentSummary from HCatalogStore. (hyunsik)
+
+    TAJO-1856: Add a description about the relationship of tablespace, 
+    managed table, and external table to Tablespace section of Table 
+    Management chapter. (Contributed by Jongyoung Park. Committed by jihoon)
 
 
 Release 0.11.0 - Released

http://git-wip-us.apache.org/repos/asf/tajo/blob/e95cda43/tajo-catalog/tajo-catalog-drivers/tajo-hive/src/main/java/org/apache/tajo/catalog/store/HiveCatalogStore.java
----------------------------------------------------------------------
diff --git 
a/tajo-catalog/tajo-catalog-drivers/tajo-hive/src/main/java/org/apache/tajo/catalog/store/HiveCatalogStore.java
 
b/tajo-catalog/tajo-catalog-drivers/tajo-hive/src/main/java/org/apache/tajo/catalog/store/HiveCatalogStore.java
index 76256c5..d9f87e3 100644
--- 
a/tajo-catalog/tajo-catalog-drivers/tajo-hive/src/main/java/org/apache/tajo/catalog/store/HiveCatalogStore.java
+++ 
b/tajo-catalog/tajo-catalog-drivers/tajo-hive/src/main/java/org/apache/tajo/catalog/store/HiveCatalogStore.java
@@ -223,17 +223,8 @@ public class HiveCatalogStore extends CatalogConstants 
implements CatalogStore {
         long totalSize = 0;
         if (properties.getProperty("totalSize") != null) {
           totalSize = Long.parseLong(properties.getProperty("totalSize"));
-        } else {
-          try {
-            FileSystem fs = path.getFileSystem(conf);
-            if (fs.exists(path)) {
-              totalSize = fs.getContentSummary(path).getLength();
-            }
-          } catch (IOException ioe) {
-            throw new TajoInternalError(ioe);
-          }
+          stats.setNumBytes(totalSize);
         }
-        stats.setNumBytes(totalSize);
       }
 
       // set partition keys

Reply via email to