Skip to content

Instantly share code, notes, and snippets.

@tamtam180
Created March 25, 2012 11:05
Show Gist options
  • Save tamtam180/2192843 to your computer and use it in GitHub Desktop.
Save tamtam180/2192843 to your computer and use it in GitHub Desktop.
HIVE-2703
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