tajo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hyun...@apache.org
Subject git commit: TAJO-769: A minor improvements for HCatalogStore (Fengdong Yu via hyunsik)
Date Fri, 18 Apr 2014 01:00:10 GMT
Repository: tajo
Updated Branches:
  refs/heads/master 0a76c998e -> f60975090


TAJO-769: A minor improvements for HCatalogStore (Fengdong Yu via hyunsik)


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

Branch: refs/heads/master
Commit: f60975090c09698b320cbd477cfac9b6393cd679
Parents: 0a76c99
Author: Hyunsik Choi <hyunsik@apache.org>
Authored: Fri Apr 18 09:58:18 2014 +0900
Committer: Hyunsik Choi <hyunsik@apache.org>
Committed: Fri Apr 18 09:59:24 2014 +0900

----------------------------------------------------------------------
 CHANGES.txt                                                   | 6 ++++++
 .../java/org/apache/tajo/catalog/store/HCatalogStore.java     | 7 ++++---
 2 files changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/f6097509/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 02321ba..9b4131d 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,11 @@
 Tajo Change Log
 
+Release 0.9.0 - unreleased
+
+  IMPROVEMENT
+
+    TAJO-769: A minor improvements for HCatalogStore (Fengdong Yu via hyunsik)
+
 Release 0.8.0 - unreleased
 
   NEW FEATURES

http://git-wip-us.apache.org/repos/asf/tajo/blob/f6097509/tajo-catalog/tajo-catalog-drivers/tajo-hcatalog/src/main/java/org/apache/tajo/catalog/store/HCatalogStore.java
----------------------------------------------------------------------
diff --git a/tajo-catalog/tajo-catalog-drivers/tajo-hcatalog/src/main/java/org/apache/tajo/catalog/store/HCatalogStore.java
b/tajo-catalog/tajo-catalog-drivers/tajo-hcatalog/src/main/java/org/apache/tajo/catalog/store/HCatalogStore.java
index 4880447..e6f6acc 100644
--- a/tajo-catalog/tajo-catalog-drivers/tajo-hcatalog/src/main/java/org/apache/tajo/catalog/store/HCatalogStore.java
+++ b/tajo-catalog/tajo-catalog-drivers/tajo-hcatalog/src/main/java/org/apache/tajo/catalog/store/HCatalogStore.java
@@ -230,11 +230,12 @@ public class HCatalogStore extends CatalogConstants implements CatalogStore
{
       }
 
       // set partition keys
-      if (table.getPartitionKeys() != null) {
+      List<FieldSchema> partitionKeys = table.getPartitionKeys();
+
+      if (null != partitionKeys) {
         Schema expressionSchema = new Schema();
         StringBuilder sb = new StringBuilder();
-        if (table.getPartitionKeys().size() > 0) {
-          List<FieldSchema> partitionKeys = table.getPartitionKeys();
+        if (partitionKeys.size() > 0) {
           for (int i = 0; i < partitionKeys.size(); i++) {
             FieldSchema fieldSchema = partitionKeys.get(i);
             TajoDataTypes.Type dataType = HCatalogUtil.getTajoFieldType(fieldSchema.getType().toString());


Mime
View raw message