incubator-hcatalog-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r1340220 - in /incubator/hcatalog/trunk: CHANGES.txt src/test/e2e/hcatalog/tests/hive.conf
Date Fri, 18 May 2012 19:33:06 GMT
Author: gates
Date: Fri May 18 19:33:06 2012
New Revision: 1340220

URL: http://svn.apache.org/viewvc?rev=1340220&view=rev
Log:
HCATALOG-390 Add e2e test for Hive with different file formats in different partitions 

Modified:
    incubator/hcatalog/trunk/CHANGES.txt
    incubator/hcatalog/trunk/src/test/e2e/hcatalog/tests/hive.conf

Modified: incubator/hcatalog/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/CHANGES.txt?rev=1340220&r1=1340219&r2=1340220&view=diff
==============================================================================
--- incubator/hcatalog/trunk/CHANGES.txt (original)
+++ incubator/hcatalog/trunk/CHANGES.txt Fri May 18 19:33:06 2012
@@ -26,6 +26,8 @@ Trunk (unreleased changes)
   HCAT-328 HCatLoader should report its input size so pig can estimate the number of reducers
(traviscrawford via gates)
 
   IMPROVEMENTS
+  HCAT-390 Add e2e test for Hive with different file formats in different partitions (daijy
via gates)
+
   HCAT-368 Documentation improvements: doc set & API docs (lefty via gates)
 
   HCAT-387 Trunk should point to 0.10 snapshot to match hive trunk (toffer)

Modified: incubator/hcatalog/trunk/src/test/e2e/hcatalog/tests/hive.conf
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/src/test/e2e/hcatalog/tests/hive.conf?rev=1340220&r1=1340219&r2=1340220&view=diff
==============================================================================
--- incubator/hcatalog/trunk/src/test/e2e/hcatalog/tests/hive.conf (original)
+++ incubator/hcatalog/trunk/src/test/e2e/hcatalog/tests/hive.conf Fri May 18 19:33:06 2012
@@ -131,6 +131,20 @@ $cfg = {
                          'verify_sql' => q\select name, age, truncate(gpa, 0) from all100krc;\,
                          'floatpostprocess' => 1,
                          'delimiter' => '	',
+                    },{
+                         'num' => 4,
+                         'sql' => q?
+drop table if exists hive_read_4;
+create table hive_read_4 (name string, age int, gpa double) partitioned by (b string) row
format delimited fields terminated by '\t' stored as textfile;
+alter table hive_read_4 add partition (b='1') location '/user/hcat/tests/data/studenttab10k';
+alter table hive_read_4 set fileformat rcfile;
+alter table hive_read_4 add partition (b='2') location '/user/hcat/tests/data/all100krc';
+select name, age, b from hive_read_4;?,
+                         'verify_sql' =>"(select name, age, 1 from studenttab10k)
+                            union all
+                            (select name, age, 2 from all100krc);",
+                         'floatpostprocess' => 1,
+                         'delimiter' => '	',
                     } ]
                 }, # end g
                 {



Mime
View raw message