tajo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jh...@apache.org
Subject tajo git commit: TAJO-1208: Failure of create table using textfile on hivemeta. (jinho)
Date Tue, 25 Nov 2014 05:08:33 GMT
Repository: tajo
Updated Branches:
  refs/heads/master 80afe993b -> a56f8b53b


TAJO-1208: Failure of create table using textfile on hivemeta. (jinho)

Closes #270


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

Branch: refs/heads/master
Commit: a56f8b53b264ed3e0554e68b3f0a51e6966e2b56
Parents: 80afe99
Author: jhkim <jhkim@apache.org>
Authored: Tue Nov 25 14:07:54 2014 +0900
Committer: jhkim <jhkim@apache.org>
Committed: Tue Nov 25 14:07:54 2014 +0900

----------------------------------------------------------------------
 CHANGES                                                           | 3 +++
 .../main/java/org/apache/tajo/catalog/store/HCatalogStore.java    | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/a56f8b53/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index d5c7f1c..6b52026 100644
--- a/CHANGES
+++ b/CHANGES
@@ -63,6 +63,9 @@ Release 0.9.1 - unreleased
 
   BUG FIXES
 
+    TAJO-1208: Failure of create table using textfile on hivemeta.
+    (jinho)
+
     TAJO-1205: Remove possible memory leak in TajoMaster. (jinho)
 
     TAJO-1181: Avro schema URL should support various protocols. 

http://git-wip-us.apache.org/repos/asf/tajo/blob/a56f8b53/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 4c37d75..c54a395 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
@@ -486,7 +486,8 @@ public class HCatalogStore extends CatalogConstants implements CatalogStore
{
           table.putToParameters(serdeConstants.SERIALIZATION_NULL_FORMAT,
               StringEscapeUtils.unescapeJava(tableDesc.getMeta().getOption(StorageConstants.RCFILE_NULL)));
         }
-      } else if (tableDesc.getMeta().getStoreType().equals(CatalogProtos.StoreType.CSV))
{
+      } else if (tableDesc.getMeta().getStoreType().equals(CatalogProtos.StoreType.CSV)
+          || tableDesc.getMeta().getStoreType().equals(CatalogProtos.StoreType.TEXTFILE))
{
         sd.getSerdeInfo().setSerializationLib(org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe.class.getName());
         sd.setInputFormat(org.apache.hadoop.mapred.TextInputFormat.class.getName());
         sd.setOutputFormat(org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat.class.getName());


Mime
View raw message