Repository: tajo Updated Branches: refs/heads/master 67b50f2f8 -> cc1efb66d
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/cc1efb66 Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/cc1efb66 Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/cc1efb66 Branch: refs/heads/master Commit: cc1efb66d2945a371a698de22e1e9e493d74889a Parents: 67b50f2 Author: Hyunsik Choi <[email protected]> Authored: Tue Dec 15 23:34:56 2015 -0800 Committer: Hyunsik Choi <[email protected]> Committed: Wed Dec 16 16:22:12 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/cc1efb66/CHANGES ---------------------------------------------------------------------- diff --git a/CHANGES b/CHANGES index 122d0b1..65353b1 100644 --- a/CHANGES +++ b/CHANGES @@ -179,13 +179,15 @@ Release 0.12.0 - unreleased SUB TASKS + TAJO-2024: Remove getContentSummary from HCatalogStore. (hyunsik) + TAJO-2004: S3TableSpace needs to extend FileTableSpace. (jaehwa) TAJO-1960: Separate HDFS space handler and S3 space handler. (jaehwa) - 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-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-1922: Allow date types with IN operator for partition pruning. (jaehwa) http://git-wip-us.apache.org/repos/asf/tajo/blob/cc1efb66/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 f025135..ae77a1f 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 @@ -230,17 +230,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
