Review Board 1.7.22


This patch adds bytearray as a new datatype in Hive.

Review Request #1586 - Created Aug. 19, 2011 and updated

Ashutosh Chauhan
HIVE-2380
Reviewers
hive
hive
This patch adds bytearray as a new datatype in Hive.
Added and updated unit tests.
Added new system tests.
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java
Revision 1172168 New Change
[20] 357 lines
[+20] [+] public static void setSerdeParam(SerDeInfo sdi, Properties schema,
358
        org.apache.hadoop.hive.serde.Constants.LIST_TYPE_NAME, "list");
358
        org.apache.hadoop.hive.serde.Constants.LIST_TYPE_NAME, "list");
359
    typeToThriftTypeMap.put(
359
    typeToThriftTypeMap.put(
360
        org.apache.hadoop.hive.serde.Constants.MAP_TYPE_NAME, "map");
360
        org.apache.hadoop.hive.serde.Constants.MAP_TYPE_NAME, "map");
361
    typeToThriftTypeMap.put(
361
    typeToThriftTypeMap.put(
362
        org.apache.hadoop.hive.serde.Constants.STRING_TYPE_NAME, "string");
362
        org.apache.hadoop.hive.serde.Constants.STRING_TYPE_NAME, "string");

    
   
363
    typeToThriftTypeMap.put(

    
   
364
        org.apache.hadoop.hive.serde.Constants.BINARY_TYPE_NAME, "binary");
363
    // These 3 types are not supported yet.
365
    // These 3 types are not supported yet.
364
    // We should define a complex type date in thrift that contains a single int
366
    // We should define a complex type date in thrift that contains a single int
365
    // member, and DynamicSerDe
367
    // member, and DynamicSerDe
366
    // should convert it to date type at runtime.
368
    // should convert it to date type at runtime.
367
    typeToThriftTypeMap.put(
369
    typeToThriftTypeMap.put(
[+20] [20] 621 lines
trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java
Revision 1172168 New Change
 
trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
Revision 1172168 New Change
 
trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
Revision 1172168 New Change
 
trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/ParseDriver.java
Revision 1172168 New Change
 
trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java
Revision 1172168 New Change
 
trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFConcat.java
Revision 1172168 New Change
 
trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFLength.java
Revision 1172168 New Change
 
trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFSubstr.java
Revision 1172168 New Change
 
trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFToString.java
Revision 1172168 New Change
 
trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFToBinary.java
New File
 
trunk/ql/src/test/queries/clientpositive/ba_table1.q
New File
 
trunk/ql/src/test/queries/clientpositive/ba_table2.q
New File
 
trunk/ql/src/test/queries/clientpositive/ba_table_udfs.q
New File
 
trunk/ql/src/test/results/clientpositive/ba_table1.q.out
New File
 
trunk/ql/src/test/results/clientpositive/ba_table2.q.out
New File
 
trunk/ql/src/test/results/clientpositive/ba_table_udfs.q.out
New File
 
trunk/serde/if/serde.thrift
Revision 1172168 New Change
 
trunk/serde/src/gen/thrift/gen-cpp/serde_constants.h
Revision 1172168 New Change
 
trunk/serde/src/gen/thrift/gen-cpp/serde_constants.cpp
Revision 1172168 New Change
 
  1. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java: Loading...
  2. trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java: Loading...
  3. trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java: Loading...
  4. trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g: Loading...
  5. trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/ParseDriver.java: Loading...
  6. trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java: Loading...
  7. trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFConcat.java: Loading...
  8. trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFLength.java: Loading...
  9. trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFSubstr.java: Loading...
  10. trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFToString.java: Loading...
  11. trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFToBinary.java: Loading...
  12. trunk/ql/src/test/queries/clientpositive/ba_table1.q: Loading...
  13. trunk/ql/src/test/queries/clientpositive/ba_table2.q: Loading...
  14. trunk/ql/src/test/queries/clientpositive/ba_table_udfs.q: Loading...
  15. trunk/ql/src/test/results/clientpositive/ba_table1.q.out: Loading...
  16. trunk/ql/src/test/results/clientpositive/ba_table2.q.out: Loading...
  17. trunk/ql/src/test/results/clientpositive/ba_table_udfs.q.out: Loading...
  18. trunk/serde/if/serde.thrift: Loading...
  19. trunk/serde/src/gen/thrift/gen-cpp/serde_constants.h: Loading...
  20. trunk/serde/src/gen/thrift/gen-cpp/serde_constants.cpp: Loading...
This diff has been split across 3 pages: 1 2 3 >