You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2013/09/12 03:21:29 UTC

svn commit: r1522098 [3/30] - in /hive/branches/vectorization: ./ beeline/src/test/org/apache/hive/beeline/src/test/ bin/ bin/ext/ common/src/java/org/apache/hadoop/hive/common/ common/src/java/org/apache/hadoop/hive/conf/ conf/ contrib/src/java/org/ap...

Modified: hive/branches/vectorization/hcatalog/src/test/e2e/hcatalog/tests/pig.conf
URL: http://svn.apache.org/viewvc/hive/branches/vectorization/hcatalog/src/test/e2e/hcatalog/tests/pig.conf?rev=1522098&r1=1522097&r2=1522098&view=diff
==============================================================================
--- hive/branches/vectorization/hcatalog/src/test/e2e/hcatalog/tests/pig.conf (original)
+++ hive/branches/vectorization/hcatalog/src/test/e2e/hcatalog/tests/pig.conf Thu Sep 12 01:21:10 2013
@@ -42,8 +42,8 @@ $cfg = {
 				 'num' => 1
                                 ,'hcat_prep'=>q\drop table if exists pig_checkin_1;
 create table pig_checkin_1 (name string, age int, gpa double) STORED AS TEXTFILE;\
-				,'pig' => q\a = load 'studenttab10k' using org.apache.hcatalog.pig.HCatLoader();
-store a into 'pig_checkin_1' using org.apache.hcatalog.pig.HCatStorer();\,
+				,'pig' => q\a = load 'studenttab10k' using org.apache.hive.hcatalog.pig.HCatLoader();
+store a into 'pig_checkin_1' using org.apache.hive.hcatalog.pig.HCatStorer();\,
                                 ,'result_table' => 'pig_checkin_1'
                                 ,'sql' => q\select * from studenttab10k;\
                                 ,'floatpostprocess' => 1
@@ -51,8 +51,8 @@ store a into 'pig_checkin_1' using org.a
 				}, 
 				{
 				 'num' => 2
-                                ,'pig' => q\a = load 'studenttab10k' using org.apache.hcatalog.pig.HCatLoader();
-b = load 'votertab10k' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'studenttab10k' using org.apache.hive.hcatalog.pig.HCatLoader();
+b = load 'votertab10k' using org.apache.hive.hcatalog.pig.HCatLoader();
 c = join a by name, b by name;
 store c into ':OUTPATH:';\,
 				,'sql'   => [ 'select s.name, s.age, gpa, v.name, v.age, registration, contributions from studenttab10k s join votertab10k v on (s.name = v.name);']
@@ -61,7 +61,7 @@ store c into ':OUTPATH:';\,
 				}, 
 				{
 				 'num' => 3
-                                ,'pig' => q\a = load 'studenttab10k' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'studenttab10k' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = load ':INPATH:/votertab10k' as (name:chararray, age:int, registration:chararray, contributions:float);
 c = join a by name, b by name;
 store c into ':OUTPATH:';\
@@ -75,10 +75,10 @@ store c into ':OUTPATH:';\
 drop table if exists pig_checkin_4_2;
 create table pig_checkin_4_1 (name string, age int, gpa double) STORED AS TEXTFILE;
 create table pig_checkin_4_2 (name string, age int, gpa double) STORED AS TEXTFILE;\
-                                ,'pig' => q\a = load 'studenttab10k' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'studenttab10k' using org.apache.hive.hcatalog.pig.HCatLoader();
 split a into b if age <=40, c if age > 40;
-store b into 'pig_checkin_4_1' using org.apache.hcatalog.pig.HCatStorer();
-store c into 'pig_checkin_4_2' using org.apache.hcatalog.pig.HCatStorer();\,
+store b into 'pig_checkin_4_1' using org.apache.hive.hcatalog.pig.HCatStorer();
+store c into 'pig_checkin_4_2' using org.apache.hive.hcatalog.pig.HCatStorer();\,
                                 ,'result_table' => ['pig_checkin_4_1','pig_checkin_4_2']
 				,'sql'   => [ 'select * from studenttab10k where age<=40;', 'select * from studenttab10k where age>40;']
                                 ,'floatpostprocess' => 1
@@ -88,9 +88,9 @@ store c into 'pig_checkin_4_2' using org
 				 'num' => 5
                                 ,'hcat_prep'=>q\drop table if exists pig_checkin_5;
 create table pig_checkin_5 (name string, age int, gpa double) STORED AS TEXTFILE;\
-                                ,'pig' => q\a = load 'studenttab10k' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'studenttab10k' using org.apache.hive.hcatalog.pig.HCatLoader();
 split a into b if age <=40, c if age > 40;
-store b into 'pig_checkin_5' using org.apache.hcatalog.pig.HCatStorer();
+store b into 'pig_checkin_5' using org.apache.hive.hcatalog.pig.HCatStorer();
 store c into ':OUTPATH:';\,
                                 ,'result_table' => ['pig_checkin_5','?']
 				,'sql'   => [ 'select * from studenttab10k where age<=40;', 'select * from studenttab10k where age>40;']
@@ -101,10 +101,10 @@ store c into ':OUTPATH:';\,
 				 'num' => 6
                                 ,'hcat_prep'=>q\drop table if exists pig_checkin_6;
 create table pig_checkin_6 (name string, age int) partitioned by (ds string) STORED AS TEXTFILE;\
-                                ,'pig' => q\a = load 'studentparttab30k' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'studentparttab30k' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = filter a by ds == '20110924';
 c = foreach b generate name, age;
-store c into 'pig_checkin_6' using org.apache.hcatalog.pig.HCatStorer('ds=20110924');\,
+store c into 'pig_checkin_6' using org.apache.hive.hcatalog.pig.HCatStorer('ds=20110924');\,
 #dump a;\,
                                 ,'result_table' => 'pig_checkin_6',
 				,'sql'   => "select name, age, ds from studentparttab30k where ds='20110924';",
@@ -115,9 +115,9 @@ store c into 'pig_checkin_6' using org.a
 				 'num' => 7
                                 ,'hcat_prep'=>q\drop table if exists pig_checkin_7;
 create table pig_checkin_7 (name string, age int) partitioned by (ds string) STORED AS TEXTFILE;\
-                                ,'pig' => q\a = load 'studentparttab30k' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'studentparttab30k' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate name, age, ds;
-store b into 'pig_checkin_7' using org.apache.hcatalog.pig.HCatStorer();\,
+store b into 'pig_checkin_7' using org.apache.hive.hcatalog.pig.HCatStorer();\,
                                 ,'result_table' => 'pig_checkin_7',
 				,'sql'   => "select name, age, ds from studentparttab30k;",
                                 ,'floatpostprocess' => 1
@@ -133,7 +133,7 @@ store b into 'pig_checkin_7' using org.a
                                 {
                                  'ignore' => 1, # Need to checkin HCATALOG-168.
                                  'num' => 1
-                                ,'pig' => q\a = load 'all100k' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'all100k' using org.apache.hive.hcatalog.pig.HCatLoader();
 store a into ':OUTPATH:';\,
 				,'sql' => q\select * from all100k;\
                                 ,'floatpostprocess' => 1
@@ -141,7 +141,7 @@ store a into ':OUTPATH:';\,
                                 },
                                 {
                                  'num' => 2
-                                ,'pig' => q\a = load 'all100kjson' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'all100kjson' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate s, i, d;
 store b into ':OUTPATH:';\,
 				,'sql' => q\select s, i, d from all100kjson;\
@@ -150,7 +150,7 @@ store b into ':OUTPATH:';\,
                                 },
                                 {
                                  'num' => 3
-                                ,'pig' => q\a = load 'all100krc' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'all100krc' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate name, age;
 store b into ':OUTPATH:';\,
 				,'sql' => q\select name, age from all100krc;\
@@ -165,7 +165,7 @@ create external table pig_read_4 (name s
 alter table pig_read_4 add partition (b='1') location '/user/hcat/tests/data/studenttab10k';
 alter table pig_read_4 set fileformat rcfile;
 alter table pig_read_4 add partition (b='2') location '/user/hcat/tests/data/all100krc';?
-                                ,'pig' => q\a = load 'pig_read_4' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'pig_read_4' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate name, age, b;
 store b into ':OUTPATH:';\,
 				,'sql' => q\(select name, age, 1 from studenttab10k)
@@ -180,7 +180,7 @@ drop table if exists pig_db_1.pig_read_5
 create external table pig_db_1.pig_read_5 (name string, age int, gpa double) partitioned by (b string) row format delimited fields terminated by '\t' stored as textfile;
 use pig_db_1;
 alter table pig_read_5 add partition (b='1') location '/user/hcat/tests/data/studenttab10k';?
-                                ,'pig' => q\a = load 'pig_db_1.pig_read_5' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'pig_db_1.pig_read_5' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate name, age, b;
 store b into ':OUTPATH:';\,
 				,'sql' => q\select name, age, 1 from studenttab10k;\
@@ -196,7 +196,7 @@ store b into ':OUTPATH:';\,
                                 ,'hcat_prep'=>q\drop table if exists pig_write_1;
 create table pig_write_1(t tinyint,si smallint,i int,b bigint,bool boolean,f float,d double,s string) stored as rcfile;\
                                 ,'pig' => q\a = load ':INPATH:/all100k' using PigStorage(':') as (t:int,si:int,i:int,b:int,bo:boolean,f:float,d:double,s:chararray);
-store a into 'pig_write_1' using org.apache.hcatalog.pig.HCatStorer();\,
+store a into 'pig_write_1' using org.apache.hive.hcatalog.pig.HCatStorer();\,
                                 ,'result_table' => 'pig_write_1'
 				,'sql' => q\select * from all100k;\
                                 ,'floatpostprocess' => 1
@@ -211,12 +211,12 @@ create table pig_write_2(
             d double,
             m map<string, string>,
             bb array<struct<a: int, b: string>>)
-            row format serde 'org.apache.hcatalog.data.JsonSerDe'
+            row format serde 'org.apache.hive.hcatalog.data.JsonSerDe'
             STORED AS TEXTFILE;
 \
-                                ,'pig' => q\a = load 'all100kjson' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'all100kjson' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate s, i, d;
-store b into 'pig_write_2' using org.apache.hcatalog.pig.HCatStorer();\,
+store b into 'pig_write_2' using org.apache.hive.hcatalog.pig.HCatStorer();\,
 				,'sql' => q\select IFNULL(s, ""), IFNULL(i, ""), IFNULL(d, "") from all100kjson;\
                                 ,'result_table' => 'pig_write_2'
                                 ,'floatpostprocess' => 1
@@ -231,9 +231,9 @@ create table pig_write_3(
             gpa double)
 stored as rcfile;
 \
-                                ,'pig' => q\a = load 'all100krc' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'all100krc' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate name, age;
-store b into 'pig_write_3' using org.apache.hcatalog.pig.HCatStorer();\,
+store b into 'pig_write_3' using org.apache.hive.hcatalog.pig.HCatStorer();\,
 				,'sql' => q\select name, age from all100krc;\
                                 ,'result_table' => 'pig_write_3'
                                 ,'floatpostprocess' => 1
@@ -249,10 +249,10 @@ create table pig_write_4(
             gpa double)
 stored as sequencefile;
 \
-                                ,'pig' => q\a = load 'studenttab10k' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'studenttab10k' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate name, age, 0.1;
 c = foreach b generate name, age, $2 as gpa;
-store c into 'pig_write_4' using org.apache.hcatalog.pig.HCatStorer();\,
+store c into 'pig_write_4' using org.apache.hive.hcatalog.pig.HCatStorer();\,
 				,'sql' => q\select name, age, 0.1 from studenttab10k;\
                                 ,'result_table' => 'pig_write_4'
                                 ,'floatpostprocess' => 1
@@ -263,9 +263,9 @@ store c into 'pig_write_4' using org.apa
                                  'num' => 5
                                 ,'hcat_prep'=>q?create database if not exists pig_db_1;
 create table if not exists pig_db_1.pig_write_5 (name string, age int) row format delimited fields terminated by '\t' stored as textfile;?
-                                ,'pig' => q\a = load 'studenttab10k' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'studenttab10k' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate name, age;
-store b into 'pig_db_1.pig_write_5' using org.apache.hcatalog.pig.HCatStorer();\,
+store b into 'pig_db_1.pig_write_5' using org.apache.hive.hcatalog.pig.HCatStorer();\,
 				                ,'sql' => q\select name, age from studenttab10k;\
                                 ,'result_table' => 'pig_db_1.pig_write_5'
                                 }
@@ -279,10 +279,10 @@ store b into 'pig_db_1.pig_write_5' usin
                                  'num' => 1
                                 ,'hcat_prep'=>q\drop table if exists pig_change_schema_1;
 create table pig_change_schema_1 (name string) partitioned by (ds string) STORED AS TEXTFILE;\
-                                ,'pig' => q\a = load 'studentparttab30k' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'studentparttab30k' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = filter a by ds == '20110924';
 c = foreach b generate name;
-store c into 'pig_change_schema_1' using org.apache.hcatalog.pig.HCatStorer('ds=20110924');\,
+store c into 'pig_change_schema_1' using org.apache.hive.hcatalog.pig.HCatStorer('ds=20110924');\,
                                 ,'result_table' => 'pig_change_schema_1'
 				,'sql' => q\select name, ds from studentparttab30k where ds='20110924';\
                                 },
@@ -291,10 +291,10 @@ store c into 'pig_change_schema_1' using
                                  'num' => 2
                                 ,'depends_on' => 'Pig_Change_Schema_1'
                                 ,'hcat_prep'=>q\alter table pig_change_schema_1 add columns (age int);\
-                                ,'pig' => q\a = load 'studentparttab30k' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'studentparttab30k' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = filter a by ds == '20110925';
 c = foreach b generate name, age;
-store c into 'pig_change_schema_1' using org.apache.hcatalog.pig.HCatStorer('ds=20110925');\,
+store c into 'pig_change_schema_1' using org.apache.hive.hcatalog.pig.HCatStorer('ds=20110925');\,
                                 ,'result_table' => 'pig_change_schema_1'
 				                ,'sql' => q\(select name, '', ds from studentparttab30k where ds='20110924')
                                             union all
@@ -304,7 +304,7 @@ store c into 'pig_change_schema_1' using
                                  # I don't like this, I'm using one test to setup for the next.  But I don't know how else to do this.
                                  'num' => 3
                                 , 'depends_on' => 'Pig_Change_Schema_2'
-                                ,'pig' => q\a = load 'pig_change_schema_1' using org.apache.hcatalog.pig.HCatLoader();
+                                ,'pig' => q\a = load 'pig_change_schema_1' using org.apache.hive.hcatalog.pig.HCatLoader();
 c = foreach a generate name, age, ds;
 store c into ':OUTPATH:';\
 				                ,'sql' => q\(select name, '', ds from studentparttab30k where ds='20110924')
@@ -319,15 +319,15 @@ store c into ':OUTPATH:';\
                                 {
                                  'num' => 1
                                 ,'hcat_prep'=>q\drop table if exists pig_hbase_1;
-create table pig_hbase_1(key string, age string, gpa string) STORED BY 'org.apache.hcatalog.hbase.HBaseHCatStorageHandler' TBLPROPERTIES ('hbase.columns.mapping'=':key,info:age,info:gpa');\
+create table pig_hbase_1(key string, age string, gpa string) STORED BY 'org.apache.hive.hcatalog.hbase.HBaseHCatStorageHandler' TBLPROPERTIES ('hbase.columns.mapping'=':key,info:age,info:gpa');\
                                 ,'pig' => q\set hcat.hbase.output.bulkMode 'false'
 a = load ':INPATH:/studenttab10k' as (name:chararray, age:int, gpa:float);
 b = group a by name;
 c = foreach b generate group as name, AVG(a.age) as age, AVG(a.gpa) as gpa;
 d = foreach c generate name as key, (chararray)age, (chararray)gpa as gpa;
-store d into 'pig_hbase_1' using org.apache.hcatalog.pig.HCatStorer();
+store d into 'pig_hbase_1' using org.apache.hive.hcatalog.pig.HCatStorer();
 exec
-e = load 'pig_hbase_1' using org.apache.hcatalog.pig.HCatLoader();
+e = load 'pig_hbase_1' using org.apache.hive.hcatalog.pig.HCatLoader();
 store e into ':OUTPATH:';\,
                                 ,'result_table' => ['pig_hbase_1','?']
 				,'sql'   => [ 'select name, avg(cast(age as decimal(10,5))), avg(gpa) from studenttab10k group by name;', 'select name, avg(cast(age as decimal(10,5))), avg(gpa) from studenttab10k group by name;' ]
@@ -338,17 +338,17 @@ store e into ':OUTPATH:';\,
                                  # multiquery
                                  'num' => 2
                                 ,'hcat_prep'=>q\drop table if exists pig_hbase_2_1;
-create table pig_hbase_2_1(key string, age string, gpa string) STORED BY 'org.apache.hcatalog.hbase.HBaseHCatStorageHandler' TBLPROPERTIES ('hbase.columns.mapping'=':key,info:age,info:gpa');
+create table pig_hbase_2_1(key string, age string, gpa string) STORED BY 'org.apache.hive.hcatalog.hbase.HBaseHCatStorageHandler' TBLPROPERTIES ('hbase.columns.mapping'=':key,info:age,info:gpa');
 drop table if exists pig_hbase_2_2;
-create table pig_hbase_2_2(key string, age string, gpa string) STORED BY 'org.apache.hcatalog.hbase.HBaseHCatStorageHandler' TBLPROPERTIES ('hbase.columns.mapping'=':key,info:age,info:gpa');
+create table pig_hbase_2_2(key string, age string, gpa string) STORED BY 'org.apache.hive.hcatalog.hbase.HBaseHCatStorageHandler' TBLPROPERTIES ('hbase.columns.mapping'=':key,info:age,info:gpa');
 \
                                 ,'pig' => q\set hcat.hbase.output.bulkMode 'false'
 a = load ':INPATH:/studenttab10k' as (name:chararray, age:int, gpa:float);
 b = group a by name;
 c = foreach b generate group as name, AVG(a.age) as age, AVG(a.gpa) as gpa;
 d = foreach c generate name as key, (chararray)age, (chararray)gpa as gpa;
-store d into 'pig_hbase_2_1' using org.apache.hcatalog.pig.HCatStorer();
-store d into 'pig_hbase_2_2' using org.apache.hcatalog.pig.HCatStorer();\,
+store d into 'pig_hbase_2_1' using org.apache.hive.hcatalog.pig.HCatStorer();
+store d into 'pig_hbase_2_2' using org.apache.hive.hcatalog.pig.HCatStorer();\,
                                 ,'result_table' => ['pig_hbase_2_1','pig_hbase_2_2']
 				,'sql'   => [ 'select name, avg(cast(age as decimal(10,5))), avg(gpa) from studenttab10k group by name;', 'select name, avg(cast(age as decimal(10,5))), avg(gpa) from studenttab10k group by name;']
                                 ,'floatpostprocess' => 1
@@ -365,7 +365,7 @@ store d into 'pig_hbase_2_2' using org.a
 create table pig_hcat_barrier_1 (name string, age int, gpa double) partitioned by (b string) CLUSTERED BY (name) INTO 1 BUCKETS STORED AS TEXTFILE;\
                                 ,'pig' => q\
 a = load ':INPATH:/studenttab10k' as (name:chararray, age:int, gpa:double);
-store a into 'pig_hcat_barrier_1' using org.apache.hcatalog.pig.HCatStorer('b=1'); \,
+store a into 'pig_hcat_barrier_1' using org.apache.hive.hcatalog.pig.HCatStorer('b=1'); \,
                                 ,'expected_err_regex' => 'not supported'
                                 },
                                 {
@@ -374,7 +374,7 @@ store a into 'pig_hcat_barrier_1' using 
 create table pig_hcat_barrier_2 (name string, age int, gpa double) partitioned by (b string) CLUSTERED BY (name) SORTED BY (name) INTO 1 BUCKETS STORED AS TEXTFILE;\
                                 ,'pig' => q\
 a = load ':INPATH:/studenttab10k' as (name:chararray, age:int, gpa:double);
-store a into 'pig_hcat_barrier_2' using org.apache.hcatalog.pig.HCatStorer('b=1'); \,
+store a into 'pig_hcat_barrier_2' using org.apache.hive.hcatalog.pig.HCatStorer('b=1'); \,
                                 ,'expected_err_regex' => 'not supported'
                                 },
                         ],
@@ -396,7 +396,7 @@ alter table pig_hcat_coop_1 partition(b=
 alter table pig_hcat_coop_1 replace columns (name string, age int);
 :
                                 ,'pig' => q\
-a = load 'pig_hcat_coop_1' using org.apache.hcatalog.pig.HCatLoader();
+a = load 'pig_hcat_coop_1' using org.apache.hive.hcatalog.pig.HCatLoader();
 store a into ':OUTPATH:';\,
 				,'sql'   => q\select name, age, '1' from studenttab10k union all select name, age, '2' from votertab10k;\
                                 ,'floatpostprocess' => 1
@@ -414,7 +414,7 @@ alter table pig_hcat_coop_2 partition(b=
 alter table pig_hcat_coop_2 replace columns (age int, name string);
 :
                                 ,'pig' => q\
-a = load 'pig_hcat_coop_2' using org.apache.hcatalog.pig.HCatLoader();
+a = load 'pig_hcat_coop_2' using org.apache.hive.hcatalog.pig.HCatLoader();
 store a into ':OUTPATH:';\,
 				,'sql'   => q\select age, name, '1' from studenttab10k union all select age, name, '2' from all100krc;\
                                 ,'floatpostprocess' => 1
@@ -428,7 +428,7 @@ store a into ':OUTPATH:';\,
                                  # test reading tuples from the complex table
                                  'num' => 1 
                                 ,'pig' => q\
-a = load 'studentcomplextab10k' using org.apache.hcatalog.pig.HCatLoader();
+a = load 'studentcomplextab10k' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate flatten(s); 
 store b into ':OUTPATH:';\,
 				                ,'sql'   => q\select IFNULL(name, ""), IFNULL(age, ""), IFNULL(gpa, "") from studentcomplextab10k;\
@@ -438,7 +438,7 @@ store b into ':OUTPATH:';\,
                                  # test reading maps from the complex table
                                  'num' => 2 
                                 ,'pig' => q\
-a = load 'studentcomplextab10k' using org.apache.hcatalog.pig.HCatLoader();
+a = load 'studentcomplextab10k' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate s.name as n1, m#'name' as n2;
 c = filter b by n1 != '' and n2 is not null;
 store c into ':OUTPATH:';\,
@@ -451,7 +451,7 @@ store c into ':OUTPATH:';\,
                                  # test reading arrays from the complex table
                                  'num' => 3 
                                 ,'pig' => q\
-a = load 'studentcomplextab10k' using org.apache.hcatalog.pig.HCatLoader();
+a = load 'studentcomplextab10k' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate s.name as n1, flatten(a);
 c = filter b by n1 != '' ;
 store c into ':OUTPATH:';\,
@@ -467,11 +467,11 @@ store c into ':OUTPATH:';\,
                                 ,'hcat_prep'=>q\drop table if exists pig_complex_4;
 create table pig_complex_4 (s struct<name: string, age: int, gpa: double>) STORED AS TEXTFILE;\
                                 ,'pig' => q\
-a = load 'studenttab10k' using org.apache.hcatalog.pig.HCatLoader();
+a = load 'studenttab10k' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate TOTUPLE(name, age, gpa) as s;
-store b into 'pig_complex_4' using org.apache.hcatalog.pig.HCatStorer();
+store b into 'pig_complex_4' using org.apache.hive.hcatalog.pig.HCatStorer();
 exec;
-c = load 'pig_complex_4' using org.apache.hcatalog.pig.HCatLoader();
+c = load 'pig_complex_4' using org.apache.hive.hcatalog.pig.HCatLoader();
 d = foreach c generate flatten(s);
 store d into ':OUTPATH:';\
 				                ,'sql'   => q\select name, age, gpa from studenttab10k;\
@@ -484,11 +484,11 @@ store d into ':OUTPATH:';\
                                 ,'hcat_prep'=>q\drop table if exists pig_complex_5;
 create table pig_complex_5 (m map<string, string>) STORED AS TEXTFILE;\
                                 ,'pig' => q\
-a = load 'studenttab10k' using org.apache.hcatalog.pig.HCatLoader();
+a = load 'studenttab10k' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate TOMAP('name', name, 'age', (chararray)age, 'gpa', (chararray)gpa) as m;
-store b into 'pig_complex_5' using org.apache.hcatalog.pig.HCatStorer();
+store b into 'pig_complex_5' using org.apache.hive.hcatalog.pig.HCatStorer();
 exec;
-c = load 'pig_complex_5' using org.apache.hcatalog.pig.HCatLoader();
+c = load 'pig_complex_5' using org.apache.hive.hcatalog.pig.HCatLoader();
 d = foreach c generate m#'name', m#'age', m#'gpa';
 store d into ':OUTPATH:';\
 				                ,'sql'   => q\select name, age, gpa from studenttab10k;\
@@ -501,14 +501,14 @@ store d into ':OUTPATH:';\
                                 ,'hcat_prep'=>q\drop table if exists pig_complex_6;
 create table pig_complex_6 (a array<string>) STORED AS TEXTFILE;\
                                 ,'pig' => q\
-a = load 'studenttab10k' using org.apache.hcatalog.pig.HCatLoader();
+a = load 'studenttab10k' using org.apache.hive.hcatalog.pig.HCatLoader();
 b = foreach a generate name;
 c = distinct b;
 d = group c all;
 e = foreach d generate $1 as a;
-store e into 'pig_complex_6' using org.apache.hcatalog.pig.HCatStorer();
+store e into 'pig_complex_6' using org.apache.hive.hcatalog.pig.HCatStorer();
 exec;
-f = load 'pig_complex_6' using org.apache.hcatalog.pig.HCatLoader();
+f = load 'pig_complex_6' using org.apache.hive.hcatalog.pig.HCatLoader();
 g = foreach f generate flatten(a);
 store g into ':OUTPATH:';\
 				                ,'sql'   => q\select distinct name from studenttab10k;\

Modified: hive/branches/vectorization/hcatalog/src/test/e2e/hcatalog/tools/generate/generate_data.pl
URL: http://svn.apache.org/viewvc/hive/branches/vectorization/hcatalog/src/test/e2e/hcatalog/tools/generate/generate_data.pl?rev=1522098&r1=1522097&r2=1522098&view=diff
==============================================================================
--- hive/branches/vectorization/hcatalog/src/test/e2e/hcatalog/tools/generate/generate_data.pl (original)
+++ hive/branches/vectorization/hcatalog/src/test/e2e/hcatalog/tools/generate/generate_data.pl Thu Sep 12 01:21:10 2013
@@ -319,7 +319,7 @@ stored as rcfile
 location '$location';\n";
     } elsif ($format eq "json") {
         print $hivefp "
-row format serde 'org.apache.hcatalog.data.JsonSerDe'
+row format serde 'org.apache.hive.hcatalog.data.JsonSerDe'
 stored as textfile
 location '$location'
 ;\n";
@@ -657,7 +657,7 @@ for (my $i = 0; $i < $numRows; $i++) {
             d double,
             m map<string, string>,
             bb array<struct<a: int, b: string>>)
-            row format serde 'org.apache.hcatalog.data.JsonSerDe'
+            row format serde 'org.apache.hive.hcatalog.data.JsonSerDe'
             STORED AS TEXTFILE 
             location '$hdfsTargetDir/$tableName';\n";
         open(PLAIN, ">$tableName.plain") or

Modified: hive/branches/vectorization/hcatalog/src/test/e2e/hcatalog/tools/generate/java/org/apache/hadoop/hive/tools/generate/RCFileGenerator.java
URL: http://svn.apache.org/viewvc/hive/branches/vectorization/hcatalog/src/test/e2e/hcatalog/tools/generate/java/org/apache/hadoop/hive/tools/generate/RCFileGenerator.java?rev=1522098&r1=1522097&r2=1522098&view=diff
==============================================================================
--- hive/branches/vectorization/hcatalog/src/test/e2e/hcatalog/tools/generate/java/org/apache/hadoop/hive/tools/generate/RCFileGenerator.java (original)
+++ hive/branches/vectorization/hcatalog/src/test/e2e/hcatalog/tools/generate/java/org/apache/hadoop/hive/tools/generate/RCFileGenerator.java Thu Sep 12 01:21:10 2013
@@ -40,176 +40,176 @@ import org.apache.hadoop.hive.ql.io.RCFi
  */
 public class RCFileGenerator {
 
-    private static Configuration conf = new Configuration();
-    private static Path basedir;
-    private static FileSystem fs;
-    private static Properties tbl;
-    private static Random rand;
-
-    private static Path getFile(String filename) throws Exception {
-        return new Path(basedir, filename);
-    }
-
-    private static String[] firstName = {"alice", "bob", "calvin", "david",
-        "ethan", "fred", "gabriella", "holly", "irene", "jessica", "katie",
-        "luke", "mike", "nick", "oscar", "priscilla", "quinn", "rachel",
-        "sarah", "tom", "ulysses", "victor", "wendy", "xavier", "yuri",
-        "zach"};
-
-    private static String[] lastName = {"allen", "brown", "carson",
-        "davidson", "ellison", "falkner", "garcia", "hernandez", "ichabod",
-        "johnson", "king", "laertes", "miller", "nixon", "ovid", "polk",
-        "quirinius", "robinson", "steinbeck", "thompson", "underhill",
-        "van buren", "white", "xylophone", "young", "zipper"};
-
-    private static String randomName() {
-        StringBuffer buf =
-                new StringBuffer(firstName[rand.nextInt(firstName.length)]);
-        buf.append(' ');
-        buf.append(lastName[rand.nextInt(lastName.length)]);
-        return buf.toString();
-    }
-
-    private static int randomAge() {
-        return rand.nextInt(60) + 18;
-    }
-
-    private static double randomGpa() {
-        return 4 * rand.nextFloat();
-    }
-
-    private static String[] registration = {"democrat", "green",
-        "independent", "libertarian", "republican", "socialist"};
-
-    private static String randomRegistration() {
-        return registration[rand.nextInt(registration.length)];
-    }
-
-    private static double randomContribution() {
-        return rand.nextFloat() * 1000;
-    }
-
-    private static byte[] randomMap() throws Exception {
-        int len = rand.nextInt(5) + 1;
-
-        StringBuffer buf = new StringBuffer();
-        for (int i = 0; i < len; i++) {
-            if (i != 0) buf.append('\u0002');
-            buf.append(firstName[rand.nextInt(26)]);
-            buf.append('\u0003');
-            buf.append(lastName[rand.nextInt(26)]);
-        }
-        return buf.toString().getBytes("UTF-8");
-    }
-
-    private static byte[] randomArray() throws Exception {
-        int len = rand.nextInt(5) + 1;
-
-        StringBuffer buf = new StringBuffer();
-        for (int i = 0; i < len; i++) {
-            if (i != 0) buf.append('\u0002');
-            buf.append(Integer.valueOf(randomAge()).toString());
-            buf.append('\u0003');
-            buf.append(randomName());
-        }
-        return buf.toString().getBytes("UTF-8");
-    }
-
-    private static void usage() {
-        System.err.println("Usage: rcfilegen format number_of_rows " +
-                "output_file plain_output_file");
-        System.err.println("  format one of:  student voter alltypes");
-        System.exit(1);
-    }
-
-    public static void main(String[] args) throws Exception {
-        if (args.length != 4) usage();
-
-        String format = args[0];
-        int numRows = Integer.valueOf(args[1]);
-        if (numRows < 1) usage();
-        String output = args[2];
-        String plainOutput = args[3];
-
-        fs = FileSystem.getLocal(conf);
-        basedir = new Path(".");
-
-        genData(format, numRows, output, plainOutput);
-    }
-
-    private static void genData(String format,
-                                int numRows,
-                                String output, String plainOutput) throws Exception {
-        int numFields = 0;
-        if (format.equals("student")) {
-            rand = new Random(numRows);
-            numFields = 3;
-        } else if (format.equals("voter")) {
-            rand = new Random(1000000000 + numRows);
-            numFields = 4;
-        } else if (format.equals("alltypes")) {
-            rand = new Random(2000000000L + numRows);
-            numFields = 10;
-        }
-
-        RCFileOutputFormat.setColumnNumber(conf, numFields);
-        RCFile.Writer writer = new RCFile.Writer(fs, conf, getFile(output),
-                null, new DefaultCodec());
-
-        PrintWriter pw = new PrintWriter(new FileWriter(plainOutput));
-
-        for (int j = 0; j < numRows; j++) {
-            BytesRefArrayWritable row = new BytesRefArrayWritable(numFields);
-
-            byte[][] fields = null;
-
-            if (format.equals("student")) {
-                byte[][] f = {
-                        randomName().getBytes("UTF-8"),
-                        Integer.valueOf(randomAge()).toString().getBytes("UTF-8"),
-                        Double.valueOf(randomGpa()).toString().getBytes("UTF-8")
-                };
-                fields = f;
-            } else if (format.equals("voter")) {
-                byte[][] f = {
-                        randomName().getBytes("UTF-8"),
-                        Integer.valueOf(randomAge()).toString().getBytes("UTF-8"),
-                        randomRegistration().getBytes("UTF-8"),
-                        Double.valueOf(randomContribution()).toString().getBytes("UTF-8")
-                };
-                fields = f;
-            } else if (format.equals("alltypes")) {
-                byte[][] f = {
-                        Integer.valueOf(rand.nextInt(Byte.MAX_VALUE)).toString().getBytes("UTF-8"),
-                        Integer.valueOf(rand.nextInt(Short.MAX_VALUE)).toString().getBytes("UTF-8"),
-                        Integer.valueOf(rand.nextInt()).toString().getBytes("UTF-8"),
-                        Long.valueOf(rand.nextLong()).toString().getBytes("UTF-8"),
-                        Float.valueOf(rand.nextFloat() * 1000).toString().getBytes("UTF-8"),
-                        Double.valueOf(rand.nextDouble() * 1000000).toString().getBytes("UTF-8"),
-                        randomName().getBytes("UTF-8"),
-                        randomMap(),
-                        randomArray()
-                };
-                fields = f;
-            }
-
-
-            for (int i = 0; i < fields.length; i++) {
-                BytesRefWritable field = new BytesRefWritable(fields[i], 0,
-                        fields[i].length);
-                row.set(i, field);
-                pw.print(new String(fields[i]));
-                if (i != fields.length - 1)
-                    pw.print("\t");
-                else
-                    pw.println();
-            }
-
-            writer.append(row);
-        }
-
-        writer.close();
-        pw.close();
-    }
+  private static Configuration conf = new Configuration();
+  private static Path basedir;
+  private static FileSystem fs;
+  private static Properties tbl;
+  private static Random rand;
+
+  private static Path getFile(String filename) throws Exception {
+    return new Path(basedir, filename);
+  }
+
+  private static String[] firstName = {"alice", "bob", "calvin", "david",
+    "ethan", "fred", "gabriella", "holly", "irene", "jessica", "katie",
+    "luke", "mike", "nick", "oscar", "priscilla", "quinn", "rachel",
+    "sarah", "tom", "ulysses", "victor", "wendy", "xavier", "yuri",
+    "zach"};
+
+  private static String[] lastName = {"allen", "brown", "carson",
+    "davidson", "ellison", "falkner", "garcia", "hernandez", "ichabod",
+    "johnson", "king", "laertes", "miller", "nixon", "ovid", "polk",
+    "quirinius", "robinson", "steinbeck", "thompson", "underhill",
+    "van buren", "white", "xylophone", "young", "zipper"};
+
+  private static String randomName() {
+    StringBuffer buf =
+        new StringBuffer(firstName[rand.nextInt(firstName.length)]);
+    buf.append(' ');
+    buf.append(lastName[rand.nextInt(lastName.length)]);
+    return buf.toString();
+  }
+
+  private static int randomAge() {
+    return rand.nextInt(60) + 18;
+  }
+
+  private static double randomGpa() {
+    return 4 * rand.nextFloat();
+  }
+
+  private static String[] registration = {"democrat", "green",
+    "independent", "libertarian", "republican", "socialist"};
+
+  private static String randomRegistration() {
+    return registration[rand.nextInt(registration.length)];
+  }
+
+  private static double randomContribution() {
+    return rand.nextFloat() * 1000;
+  }
+
+  private static byte[] randomMap() throws Exception {
+    int len = rand.nextInt(5) + 1;
+
+    StringBuffer buf = new StringBuffer();
+    for (int i = 0; i < len; i++) {
+      if (i != 0) buf.append('\u0002');
+      buf.append(firstName[rand.nextInt(26)]);
+      buf.append('\u0003');
+      buf.append(lastName[rand.nextInt(26)]);
+    }
+    return buf.toString().getBytes("UTF-8");
+  }
+
+  private static byte[] randomArray() throws Exception {
+    int len = rand.nextInt(5) + 1;
+
+    StringBuffer buf = new StringBuffer();
+    for (int i = 0; i < len; i++) {
+      if (i != 0) buf.append('\u0002');
+      buf.append(Integer.valueOf(randomAge()).toString());
+      buf.append('\u0003');
+      buf.append(randomName());
+    }
+    return buf.toString().getBytes("UTF-8");
+  }
+
+  private static void usage() {
+    System.err.println("Usage: rcfilegen format number_of_rows " +
+        "output_file plain_output_file");
+    System.err.println("  format one of:  student voter alltypes");
+    System.exit(1);
+  }
+
+  public static void main(String[] args) throws Exception {
+    if (args.length != 4) usage();
+
+    String format = args[0];
+    int numRows = Integer.valueOf(args[1]);
+    if (numRows < 1) usage();
+    String output = args[2];
+    String plainOutput = args[3];
+
+    fs = FileSystem.getLocal(conf);
+    basedir = new Path(".");
+
+    genData(format, numRows, output, plainOutput);
+  }
+
+  private static void genData(String format,
+                int numRows,
+                String output, String plainOutput) throws Exception {
+    int numFields = 0;
+    if (format.equals("student")) {
+      rand = new Random(numRows);
+      numFields = 3;
+    } else if (format.equals("voter")) {
+      rand = new Random(1000000000 + numRows);
+      numFields = 4;
+    } else if (format.equals("alltypes")) {
+      rand = new Random(2000000000L + numRows);
+      numFields = 10;
+    }
+
+    RCFileOutputFormat.setColumnNumber(conf, numFields);
+    RCFile.Writer writer = new RCFile.Writer(fs, conf, getFile(output),
+        null, new DefaultCodec());
+
+    PrintWriter pw = new PrintWriter(new FileWriter(plainOutput));
+
+    for (int j = 0; j < numRows; j++) {
+      BytesRefArrayWritable row = new BytesRefArrayWritable(numFields);
+
+      byte[][] fields = null;
+
+      if (format.equals("student")) {
+        byte[][] f = {
+            randomName().getBytes("UTF-8"),
+            Integer.valueOf(randomAge()).toString().getBytes("UTF-8"),
+            Double.valueOf(randomGpa()).toString().getBytes("UTF-8")
+        };
+        fields = f;
+      } else if (format.equals("voter")) {
+        byte[][] f = {
+            randomName().getBytes("UTF-8"),
+            Integer.valueOf(randomAge()).toString().getBytes("UTF-8"),
+            randomRegistration().getBytes("UTF-8"),
+            Double.valueOf(randomContribution()).toString().getBytes("UTF-8")
+        };
+        fields = f;
+      } else if (format.equals("alltypes")) {
+        byte[][] f = {
+            Integer.valueOf(rand.nextInt(Byte.MAX_VALUE)).toString().getBytes("UTF-8"),
+            Integer.valueOf(rand.nextInt(Short.MAX_VALUE)).toString().getBytes("UTF-8"),
+            Integer.valueOf(rand.nextInt()).toString().getBytes("UTF-8"),
+            Long.valueOf(rand.nextLong()).toString().getBytes("UTF-8"),
+            Float.valueOf(rand.nextFloat() * 1000).toString().getBytes("UTF-8"),
+            Double.valueOf(rand.nextDouble() * 1000000).toString().getBytes("UTF-8"),
+            randomName().getBytes("UTF-8"),
+            randomMap(),
+            randomArray()
+        };
+        fields = f;
+      }
+
+
+      for (int i = 0; i < fields.length; i++) {
+        BytesRefWritable field = new BytesRefWritable(fields[i], 0,
+            fields[i].length);
+        row.set(i, field);
+        pw.print(new String(fields[i]));
+        if (i != fields.length - 1)
+          pw.print("\t");
+        else
+          pw.println();
+      }
+
+      writer.append(row);
+    }
+
+    writer.close();
+    pw.close();
+  }
 }
 

Modified: hive/branches/vectorization/hcatalog/src/test/e2e/templeton/README.txt
URL: http://svn.apache.org/viewvc/hive/branches/vectorization/hcatalog/src/test/e2e/templeton/README.txt?rev=1522098&r1=1522097&r2=1522098&view=diff
==============================================================================
--- hive/branches/vectorization/hcatalog/src/test/e2e/templeton/README.txt (original)
+++ hive/branches/vectorization/hcatalog/src/test/e2e/templeton/README.txt Thu Sep 12 01:21:10 2013
@@ -123,6 +123,29 @@ ant test-hcat-authorization -Dkeytab.dir
 
 The <keytab files dir> is expected to have keytab filenames of the form - user_name.*keytab .
 
+Running WebHCat doas tests
+--------------------------
+ant clean test-doas -Dinpdir.hdfs=/user/ekoifman/webhcate2e -Dsecure.mode=no   
+    -Dharness.webhdfs.url=http://localhost:8085  -Dharness.templeton.url=http://localhost:50111 
+    -Dtests.to.run='-t doAsTests' -Dtest.user.name=hue -Ddoas.user=joe
+    
+The canonical example, is WebHCat server is running as user 'hcat', end user 'joe' is using Hue,
+which generates a request to WebHCat.  If Hue specifies doAs=joe, then the commands that WebHCat
+submits to Hadoop will be run as user 'joe'.
+
+In order for this test suite to work, webhcat-site.xml should have webhcat.proxyuser.hue.groups
+and webhcat.proxyuser.hue.hosts defined, i.e. 'hue' should be allowed to impersonate 'joe'.
+[Of course, 'hcat' proxyuser should be configured in core-site.xml for the command to succeed.]
+
+Furthermore, metastore side file based security should be enabled.  To do this 3 properties in
+hive-site.xml should be configured:
+1) hive.security.metastore.authorization.manager set to 
+    org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider
+2) hive.security.metastore.authenticator.manager set to 
+    org.apache.hadoop.hive.ql.security.HadoopDefaultMetastoreAuthenticator
+3) hive.metastore.pre.event.listeners set to
+    org.apache.hadoop.hive.ql.security.authorization.AuthorizationPreEventListener
+4) hive.metastore.execute.setugi set to true
 
 Notes
 -----

Modified: hive/branches/vectorization/hcatalog/src/test/e2e/templeton/build.xml
URL: http://svn.apache.org/viewvc/hive/branches/vectorization/hcatalog/src/test/e2e/templeton/build.xml?rev=1522098&r1=1522097&r2=1522098&view=diff
==============================================================================
--- hive/branches/vectorization/hcatalog/src/test/e2e/templeton/build.xml (original)
+++ hive/branches/vectorization/hcatalog/src/test/e2e/templeton/build.xml Thu Sep 12 01:21:10 2013
@@ -83,11 +83,15 @@
 
     <target name="test" depends="property-check, init-test">
         <!-- fork (parallelization) factors for e2e tests execution.
-             Defaults are 1, which means *no* parellelization: -->
-        <property name="fork.factor.group" value="1"/>
-        <property name="fork.factor.conf.file" value="1"/>
+             Defaults are 1, which means *no* parellelization: 
+             if group=3, then 3 .conf files will be processed in parallel
+             if conf.file=2 there will be 2 thread per .conf file, each thread 
+             executing a single group (identified by 'name' element) -->
+        <property name="fork.factor.group" value="5"/>
+        <property name="fork.factor.conf.file" value="5"/>
         <property name="e2e.debug" value="false"/>
         <property name="tests.to.run" value=""/>
+
         <exec executable="./test_harness.pl" dir="${test.location}" failonerror="true">
             <env key="HARNESS_ROOT" value="."/>
             <env key="TH_WORKING_DIR" value="${test.location}"/>
@@ -141,6 +145,42 @@
             <arg value="${basedir}/tests/hcatperms.conf"/>
         </exec>
     </target>
+    <target name="test-doas" depends="property-check, init-test" description="See README.txt for instructions">
+        <!-- fork (parallelization) factors for e2e tests execution.
+             Defaults are 1, which means *no* parellelization: 
+             if group=3, then 3 .conf files will be processed in parallel
+             if conf.file=2 there will be 2 thread per .conf file, each thread 
+             executing a single group (identified by 'name' element) -->
+        <property name="fork.factor.group" value="1"/>
+        <property name="fork.factor.conf.file" value="1"/>
+        <property name="e2e.debug" value="false"/>
+        <property name="tests.to.run" value=""/>
+        <property name="doas.user.tmp" value="${doas.user}" />
+        <condition property="doas.user" value="${test.user.name}">
+            <!--default doas.user (if not set) to test.user.name-->
+            <isset property="doas.user.tmp"/>
+        </condition>
+
+        <exec executable="./test_harness.pl" dir="${test.location}" failonerror="true">
+            <env key="HARNESS_ROOT" value="."/>
+            <env key="TH_WORKING_DIR" value="${test.location}"/>
+            <env key="TH_INPDIR_LOCAL" value="${inpdir.local}"/>
+            <env key="TH_INPDIR_HDFS" value="${inpdir.hdfs}"/>
+            <env key="TH_OUT" value="."/>
+            <env key="TH_ROOT" value="."/>
+            <env key="FORK_FACTOR_GROUP" value="${fork.factor.group}"/>
+            <env key="FORK_FACTOR_FILE" value="${fork.factor.conf.file}"/>
+            <env key="E2E_DEBUG" value="${e2e.debug}"/>
+            <env key="WEBHDFS_URL" value="${harness.webhdfs.url}"/>
+            <env key="TEMPLETON_URL" value="${harness.templeton.url}"/>
+            <env key="USER_NAME" value="${test.user.name}"/>
+            <env key="DOAS_USER" value="${doas.user}"/>
+            <env key="HARNESS_CONF" value="${basedir}/conf/default.conf"/>
+            <env key="SECURE_MODE" value="${secure.mode}"/>
+            <arg line="${tests.to.run}"/>
+            <arg value="${basedir}/tests/doas.conf"/>
+        </exec>
+    </target>
 
     <target name="clean">
         <delete dir="${test.location}"/>

Modified: hive/branches/vectorization/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm
URL: http://svn.apache.org/viewvc/hive/branches/vectorization/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm?rev=1522098&r1=1522097&r2=1522098&view=diff
==============================================================================
--- hive/branches/vectorization/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm (original)
+++ hive/branches/vectorization/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm Thu Sep 12 01:21:10 2013
@@ -174,6 +174,7 @@ sub globalSetup
     $globalHash->{'webhdfs_url'} = $ENV{'WEBHDFS_URL'};
     $globalHash->{'templeton_url'} = $ENV{'TEMPLETON_URL'};
     $globalHash->{'current_user'} = $ENV{'USER_NAME'};
+    $globalHash->{'DOAS_USER'} = $ENV{'DOAS_USER'};
     $globalHash->{'current_group_user'} = $ENV{'GROUP_USER_NAME'};
     $globalHash->{'current_other_user'} = $ENV{'OTHER_USER_NAME'};
     $globalHash->{'current_group'} = $ENV{'GROUP_NAME'};
@@ -317,6 +318,7 @@ sub replaceParametersInArg
     }
     my $outdir = $testCmd->{'outpath'} . $testCmd->{'group'} . "_" . $testCmd->{'num'};
     $arg =~ s/:UNAME:/$testCmd->{'current_user'}/g;
+    $arg =~ s/:DOAS:/$testCmd->{'DOAS_USER'}/g;
     $arg =~ s/:UNAME_GROUP:/$testCmd->{'current_group_user'}/g;
     $arg =~ s/:UNAME_OTHER:/$testCmd->{'current_other_user'}/g;
     $arg =~ s/:UGROUP:/$testCmd->{'current_group'}/g;

Modified: hive/branches/vectorization/hcatalog/storage-handlers/hbase/build.xml
URL: http://svn.apache.org/viewvc/hive/branches/vectorization/hcatalog/storage-handlers/hbase/build.xml?rev=1522098&r1=1522097&r2=1522098&view=diff
==============================================================================
--- hive/branches/vectorization/hcatalog/storage-handlers/hbase/build.xml (original)
+++ hive/branches/vectorization/hcatalog/storage-handlers/hbase/build.xml Thu Sep 12 01:21:10 2013
@@ -52,7 +52,6 @@
     <property name="javac.debug" value="on" />
     <property name="javac.optimize" value="on" />
     <property name="javac.deprecation" value="off" />
-    <property name="javac.version" value="1.6" />
     <property name="javac.args" value="" />
 
     <!-- test properties -->
@@ -91,8 +90,8 @@
     <target name="compile-src" depends="init">
         <javac encoding="${build.encoding}" srcdir="${src.dir}:${basedir}/src/gen-java:${basedir}/src/resources" excludes="${excludes}"
                includes="**/*.java" destdir="${build.classes}" debug="${javac.debug}"
-               optimize="${javac.optimize}" target="${javac.version}"
-               source="${javac.version}" deprecation="${javac.deprecation}"
+               optimize="${javac.optimize}"
+               deprecation="${javac.deprecation}"
                includeantruntime="false">
             <compilerarg line="${javac.args}"/>
             <classpath refid="compile.class.path"/>
@@ -118,8 +117,8 @@
     <target name="compile-test" depends="jar">
         <javac encoding="${build.encoding}" srcdir="${test.src.dir}" excludes="${excludes}"
                includes="**/*.java" destdir="${test.build.classes}" debug="${javac.debug}"
-               optimize="${javac.optimize}" target="${javac.version}"
-               source="${javac.version}" deprecation="${javac.deprecation}"
+               optimize="${javac.optimize}"
+               deprecation="${javac.deprecation}"
                includeantruntime="false">
             <compilerarg line="${javac.args}"/>
             <classpath refid="test.class.path" />

Modified: hive/branches/vectorization/hcatalog/storage-handlers/hbase/pom.xml
URL: http://svn.apache.org/viewvc/hive/branches/vectorization/hcatalog/storage-handlers/hbase/pom.xml?rev=1522098&r1=1522097&r2=1522098&view=diff
==============================================================================
--- hive/branches/vectorization/hcatalog/storage-handlers/hbase/pom.xml (original)
+++ hive/branches/vectorization/hcatalog/storage-handlers/hbase/pom.xml Thu Sep 12 01:21:10 2013
@@ -22,14 +22,13 @@
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 
   <parent>
-    <groupId>org.apache.hcatalog</groupId>
+    <groupId>org.apache.hive.hcatalog</groupId>
     <artifactId>hcatalog</artifactId>
-    <version>0.12.0-SNAPSHOT</version>
+    <version>0.13.0-SNAPSHOT</version>
     <relativePath>../../pom.xml</relativePath>
   </parent>
 
   <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.hcatalog</groupId>
   <artifactId>hbase-storage-handler</artifactId>
   <packaging>jar</packaging>
   <name>hbase-storage-handler</name>
@@ -49,7 +48,7 @@
       </exclusions>
     </dependency>
     <dependency>
-      <groupId>org.apache.hcatalog</groupId>
+      <groupId>org.apache.hive.hcatalog</groupId>
       <artifactId>hcatalog-core</artifactId>
       <version>${hcatalog.version}</version>
       <scope>compile</scope>

Modified: hive/branches/vectorization/hcatalog/storage-handlers/hbase/src/gen-java/org/apache/hcatalog/hbase/snapshot/transaction/thrift/StoreFamilyRevision.java
URL: http://svn.apache.org/viewvc/hive/branches/vectorization/hcatalog/storage-handlers/hbase/src/gen-java/org/apache/hcatalog/hbase/snapshot/transaction/thrift/StoreFamilyRevision.java?rev=1522098&r1=1522097&r2=1522098&view=diff
==============================================================================
--- hive/branches/vectorization/hcatalog/storage-handlers/hbase/src/gen-java/org/apache/hcatalog/hbase/snapshot/transaction/thrift/StoreFamilyRevision.java (original)
+++ hive/branches/vectorization/hcatalog/storage-handlers/hbase/src/gen-java/org/apache/hcatalog/hbase/snapshot/transaction/thrift/StoreFamilyRevision.java Thu Sep 12 01:21:10 2013
@@ -35,382 +35,382 @@ import java.util.Collections;
 import java.util.BitSet;
 
 public class StoreFamilyRevision implements org.apache.thrift.TBase<StoreFamilyRevision, StoreFamilyRevision._Fields>, java.io.Serializable, Cloneable {
-    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StoreFamilyRevision");
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StoreFamilyRevision");
 
-    private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.I64, (short) 1);
-    private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short) 2);
+  private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.I64, (short) 1);
+  private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short) 2);
 
-    public long revision; // required
-    public long timestamp; // required
+  public long revision; // required
+  public long timestamp; // required
 
-    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-        REVISION((short) 1, "revision"),
-        TIMESTAMP((short) 2, "timestamp");
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    REVISION((short) 1, "revision"),
+    TIMESTAMP((short) 2, "timestamp");
 
-        private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
-        static {
-            for (_Fields field : EnumSet.allOf(_Fields.class)) {
-                byName.put(field.getFieldName(), field);
-            }
-        }
-
-        /**
-         * Find the _Fields constant that matches fieldId, or null if its not found.
-         */
-        public static _Fields findByThriftId(int fieldId) {
-            switch (fieldId) {
-            case 1: // REVISION
-                return REVISION;
-            case 2: // TIMESTAMP
-                return TIMESTAMP;
-            default:
-                return null;
-            }
-        }
-
-        /**
-         * Find the _Fields constant that matches fieldId, throwing an exception
-         * if it is not found.
-         */
-        public static _Fields findByThriftIdOrThrow(int fieldId) {
-            _Fields fields = findByThriftId(fieldId);
-            if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-            return fields;
-        }
-
-        /**
-         * Find the _Fields constant that matches name, or null if its not found.
-         */
-        public static _Fields findByName(String name) {
-            return byName.get(name);
-        }
-
-        private final short _thriftId;
-        private final String _fieldName;
-
-        _Fields(short thriftId, String fieldName) {
-            _thriftId = thriftId;
-            _fieldName = fieldName;
-        }
-
-        public short getThriftFieldId() {
-            return _thriftId;
-        }
-
-        public String getFieldName() {
-            return _fieldName;
-        }
-    }
-
-    // isset id assignments
-    private static final int __REVISION_ISSET_ID = 0;
-    private static final int __TIMESTAMP_ISSET_ID = 1;
-    private BitSet __isset_bit_vector = new BitSet(2);
-
-    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
 
     static {
-        Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-        tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT,
-            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-        tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
-            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-        metaDataMap = Collections.unmodifiableMap(tmpMap);
-        org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StoreFamilyRevision.class, metaDataMap);
-    }
-
-    public StoreFamilyRevision() {
-    }
-
-    public StoreFamilyRevision(
-        long revision,
-        long timestamp) {
-        this();
-        this.revision = revision;
-        setRevisionIsSet(true);
-        this.timestamp = timestamp;
-        setTimestampIsSet(true);
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
     }
 
     /**
-     * Performs a deep copy on <i>other</i>.
+     * Find the _Fields constant that matches fieldId, or null if its not found.
      */
-    public StoreFamilyRevision(StoreFamilyRevision other) {
-        __isset_bit_vector.clear();
-        __isset_bit_vector.or(other.__isset_bit_vector);
-        this.revision = other.revision;
-        this.timestamp = other.timestamp;
-    }
-
-    public StoreFamilyRevision deepCopy() {
-        return new StoreFamilyRevision(this);
-    }
-
-    @Override
-    public void clear() {
-        setRevisionIsSet(false);
-        this.revision = 0;
-        setTimestampIsSet(false);
-        this.timestamp = 0;
-    }
-
-    public long getRevision() {
-        return this.revision;
-    }
-
-    public StoreFamilyRevision setRevision(long revision) {
-        this.revision = revision;
-        setRevisionIsSet(true);
-        return this;
-    }
-
-    public void unsetRevision() {
-        __isset_bit_vector.clear(__REVISION_ISSET_ID);
-    }
-
-    /** Returns true if field revision is set (has been assigned a value) and false otherwise */
-    public boolean isSetRevision() {
-        return __isset_bit_vector.get(__REVISION_ISSET_ID);
-    }
-
-    public void setRevisionIsSet(boolean value) {
-        __isset_bit_vector.set(__REVISION_ISSET_ID, value);
-    }
-
-    public long getTimestamp() {
-        return this.timestamp;
-    }
-
-    public StoreFamilyRevision setTimestamp(long timestamp) {
-        this.timestamp = timestamp;
-        setTimestampIsSet(true);
-        return this;
-    }
-
-    public void unsetTimestamp() {
-        __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
-    }
-
-    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
-    public boolean isSetTimestamp() {
-        return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
-    }
-
-    public void setTimestampIsSet(boolean value) {
-        __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
+    public static _Fields findByThriftId(int fieldId) {
+      switch (fieldId) {
+      case 1: // REVISION
+        return REVISION;
+      case 2: // TIMESTAMP
+        return TIMESTAMP;
+      default:
+        return null;
+      }
     }
 
-    public void setFieldValue(_Fields field, Object value) {
-        switch (field) {
-        case REVISION:
-            if (value == null) {
-                unsetRevision();
-            } else {
-                setRevision((Long) value);
-            }
-            break;
-
-        case TIMESTAMP:
-            if (value == null) {
-                unsetTimestamp();
-            } else {
-                setTimestamp((Long) value);
-            }
-            break;
-
-        }
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
     }
 
-    public Object getFieldValue(_Fields field) {
-        switch (field) {
-        case REVISION:
-            return Long.valueOf(getRevision());
-
-        case TIMESTAMP:
-            return Long.valueOf(getTimestamp());
-
-        }
-        throw new IllegalStateException();
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
     }
 
-    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-    public boolean isSet(_Fields field) {
-        if (field == null) {
-            throw new IllegalArgumentException();
-        }
+    private final short _thriftId;
+    private final String _fieldName;
 
-        switch (field) {
-        case REVISION:
-            return isSetRevision();
-        case TIMESTAMP:
-            return isSetTimestamp();
-        }
-        throw new IllegalStateException();
-    }
-
-    @Override
-    public boolean equals(Object that) {
-        if (that == null)
-            return false;
-        if (that instanceof StoreFamilyRevision)
-            return this.equals((StoreFamilyRevision) that);
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  private static final int __REVISION_ISSET_ID = 0;
+  private static final int __TIMESTAMP_ISSET_ID = 1;
+  private BitSet __isset_bit_vector = new BitSet(2);
+
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+
+  static {
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT,
+      new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
+    tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
+      new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StoreFamilyRevision.class, metaDataMap);
+  }
+
+  public StoreFamilyRevision() {
+  }
+
+  public StoreFamilyRevision(
+    long revision,
+    long timestamp) {
+    this();
+    this.revision = revision;
+    setRevisionIsSet(true);
+    this.timestamp = timestamp;
+    setTimestampIsSet(true);
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public StoreFamilyRevision(StoreFamilyRevision other) {
+    __isset_bit_vector.clear();
+    __isset_bit_vector.or(other.__isset_bit_vector);
+    this.revision = other.revision;
+    this.timestamp = other.timestamp;
+  }
+
+  public StoreFamilyRevision deepCopy() {
+    return new StoreFamilyRevision(this);
+  }
+
+  @Override
+  public void clear() {
+    setRevisionIsSet(false);
+    this.revision = 0;
+    setTimestampIsSet(false);
+    this.timestamp = 0;
+  }
+
+  public long getRevision() {
+    return this.revision;
+  }
+
+  public StoreFamilyRevision setRevision(long revision) {
+    this.revision = revision;
+    setRevisionIsSet(true);
+    return this;
+  }
+
+  public void unsetRevision() {
+    __isset_bit_vector.clear(__REVISION_ISSET_ID);
+  }
+
+  /** Returns true if field revision is set (has been assigned a value) and false otherwise */
+  public boolean isSetRevision() {
+    return __isset_bit_vector.get(__REVISION_ISSET_ID);
+  }
+
+  public void setRevisionIsSet(boolean value) {
+    __isset_bit_vector.set(__REVISION_ISSET_ID, value);
+  }
+
+  public long getTimestamp() {
+    return this.timestamp;
+  }
+
+  public StoreFamilyRevision setTimestamp(long timestamp) {
+    this.timestamp = timestamp;
+    setTimestampIsSet(true);
+    return this;
+  }
+
+  public void unsetTimestamp() {
+    __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
+  }
+
+  /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
+  public boolean isSetTimestamp() {
+    return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
+  }
+
+  public void setTimestampIsSet(boolean value) {
+    __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case REVISION:
+      if (value == null) {
+        unsetRevision();
+      } else {
+        setRevision((Long) value);
+      }
+      break;
+
+    case TIMESTAMP:
+      if (value == null) {
+        unsetTimestamp();
+      } else {
+        setTimestamp((Long) value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case REVISION:
+      return Long.valueOf(getRevision());
+
+    case TIMESTAMP:
+      return Long.valueOf(getTimestamp());
+
+    }
+    throw new IllegalStateException();
+  }
+
+  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+  public boolean isSet(_Fields field) {
+    if (field == null) {
+      throw new IllegalArgumentException();
+    }
+
+    switch (field) {
+    case REVISION:
+      return isSetRevision();
+    case TIMESTAMP:
+      return isSetTimestamp();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof StoreFamilyRevision)
+      return this.equals((StoreFamilyRevision) that);
+    return false;
+  }
+
+  public boolean equals(StoreFamilyRevision that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_revision = true;
+    boolean that_present_revision = true;
+    if (this_present_revision || that_present_revision) {
+      if (!(this_present_revision && that_present_revision))
+        return false;
+      if (this.revision != that.revision)
         return false;
     }
 
-    public boolean equals(StoreFamilyRevision that) {
-        if (that == null)
-            return false;
-
-        boolean this_present_revision = true;
-        boolean that_present_revision = true;
-        if (this_present_revision || that_present_revision) {
-            if (!(this_present_revision && that_present_revision))
-                return false;
-            if (this.revision != that.revision)
-                return false;
-        }
-
-        boolean this_present_timestamp = true;
-        boolean that_present_timestamp = true;
-        if (this_present_timestamp || that_present_timestamp) {
-            if (!(this_present_timestamp && that_present_timestamp))
-                return false;
-            if (this.timestamp != that.timestamp)
-                return false;
-        }
-
-        return true;
-    }
-
-    @Override
-    public int hashCode() {
-        return 0;
-    }
-
-    public int compareTo(StoreFamilyRevision other) {
-        if (!getClass().equals(other.getClass())) {
-            return getClass().getName().compareTo(other.getClass().getName());
-        }
-
-        int lastComparison = 0;
-        StoreFamilyRevision typedOther = (StoreFamilyRevision) other;
-
-        lastComparison = Boolean.valueOf(isSetRevision()).compareTo(typedOther.isSetRevision());
-        if (lastComparison != 0) {
-            return lastComparison;
-        }
-        if (isSetRevision()) {
-            lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, typedOther.revision);
-            if (lastComparison != 0) {
-                return lastComparison;
-            }
-        }
-        lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
-        if (lastComparison != 0) {
-            return lastComparison;
-        }
-        if (isSetTimestamp()) {
-            lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
-            if (lastComparison != 0) {
-                return lastComparison;
-            }
-        }
-        return 0;
-    }
-
-    public _Fields fieldForId(int fieldId) {
-        return _Fields.findByThriftId(fieldId);
-    }
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-        org.apache.thrift.protocol.TField field;
-        iprot.readStructBegin();
-        while (true) {
-            field = iprot.readFieldBegin();
-            if (field.type == org.apache.thrift.protocol.TType.STOP) {
-                break;
-            }
-            switch (field.id) {
-            case 1: // REVISION
-                if (field.type == org.apache.thrift.protocol.TType.I64) {
-                    this.revision = iprot.readI64();
-                    setRevisionIsSet(true);
-                } else {
-                    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-                }
-                break;
-            case 2: // TIMESTAMP
-                if (field.type == org.apache.thrift.protocol.TType.I64) {
-                    this.timestamp = iprot.readI64();
-                    setTimestampIsSet(true);
-                } else {
-                    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-                }
-                break;
-            default:
-                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-            }
-            iprot.readFieldEnd();
-        }
-        iprot.readStructEnd();
-
-        // check for required fields of primitive type, which can't be checked in the validate method
-        validate();
+    boolean this_present_timestamp = true;
+    boolean that_present_timestamp = true;
+    if (this_present_timestamp || that_present_timestamp) {
+      if (!(this_present_timestamp && that_present_timestamp))
+        return false;
+      if (this.timestamp != that.timestamp)
+        return false;
     }
 
-    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-        validate();
+    return true;
+  }
 
-        oprot.writeStructBegin(STRUCT_DESC);
-        oprot.writeFieldBegin(REVISION_FIELD_DESC);
-        oprot.writeI64(this.revision);
-        oprot.writeFieldEnd();
-        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
-        oprot.writeI64(this.timestamp);
-        oprot.writeFieldEnd();
-        oprot.writeFieldStop();
-        oprot.writeStructEnd();
-    }
-
-    @Override
-    public String toString() {
-        StringBuilder sb = new StringBuilder("StoreFamilyRevision(");
-        boolean first = true;
-
-        sb.append("revision:");
-        sb.append(this.revision);
-        first = false;
-        if (!first) sb.append(", ");
-        sb.append("timestamp:");
-        sb.append(this.timestamp);
-        first = false;
-        sb.append(")");
-        return sb.toString();
-    }
-
-    public void validate() throws org.apache.thrift.TException {
-        // check for required fields
-    }
-
-    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-        try {
-            write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-        } catch (org.apache.thrift.TException te) {
-            throw new java.io.IOException(te);
-        }
-    }
-
-    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-        try {
-            // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-            __isset_bit_vector = new BitSet(1);
-            read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-        } catch (org.apache.thrift.TException te) {
-            throw new java.io.IOException(te);
-        }
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(StoreFamilyRevision other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    StoreFamilyRevision typedOther = (StoreFamilyRevision) other;
+
+    lastComparison = Boolean.valueOf(isSetRevision()).compareTo(typedOther.isSetRevision());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetRevision()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, typedOther.revision);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetTimestamp()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    org.apache.thrift.protocol.TField field;
+    iprot.readStructBegin();
+    while (true) {
+      field = iprot.readFieldBegin();
+      if (field.type == org.apache.thrift.protocol.TType.STOP) {
+        break;
+      }
+      switch (field.id) {
+      case 1: // REVISION
+        if (field.type == org.apache.thrift.protocol.TType.I64) {
+          this.revision = iprot.readI64();
+          setRevisionIsSet(true);
+        } else {
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+        }
+        break;
+      case 2: // TIMESTAMP
+        if (field.type == org.apache.thrift.protocol.TType.I64) {
+          this.timestamp = iprot.readI64();
+          setTimestampIsSet(true);
+        } else {
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+        }
+        break;
+      default:
+        org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+      }
+      iprot.readFieldEnd();
+    }
+    iprot.readStructEnd();
+
+    // check for required fields of primitive type, which can't be checked in the validate method
+    validate();
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    validate();
+
+    oprot.writeStructBegin(STRUCT_DESC);
+    oprot.writeFieldBegin(REVISION_FIELD_DESC);
+    oprot.writeI64(this.revision);
+    oprot.writeFieldEnd();
+    oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
+    oprot.writeI64(this.timestamp);
+    oprot.writeFieldEnd();
+    oprot.writeFieldStop();
+    oprot.writeStructEnd();
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("StoreFamilyRevision(");
+    boolean first = true;
+
+    sb.append("revision:");
+    sb.append(this.revision);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("timestamp:");
+    sb.append(this.timestamp);
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+      __isset_bit_vector = new BitSet(1);
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
     }
+  }
 
 }