Created
March 25, 2012 11:05
-
-
Save tamtam180/2192843 to your computer and use it in GitHub Desktop.
HIVE-2703
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java | |
=================================================================== | |
--- ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java (revision 1304983) | |
+++ ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java (working copy) | |
@@ -6468,10 +6468,8 @@ | |
// Finally add the partitioning columns | |
for (FieldSchema part_col : tab.getPartCols()) { | |
LOG.trace("Adding partition col: " + part_col); | |
- // TODO: use the right type by calling part_col.getType() instead of | |
- // String.class | |
rwsch.put(alias, part_col.getName(), new ColumnInfo(part_col.getName(), | |
- TypeInfoFactory.stringTypeInfo, alias, true)); | |
+ TypeInfoFactory.getPrimitiveTypeInfo(part_col.getType()), alias, true)); | |
} | |
//put all virutal columns in RowResolver. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment