HIVE-10587 : ExprNodeColumnDesc should be created with isPartitionColOrVirtualCol true for DP column (Chaoyu Tang, reviewed by Ashutosh, via Szehon)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/bb3a665a Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/bb3a665a Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/bb3a665a Branch: refs/heads/beeline-cli Commit: bb3a665afa3f7b457085408e5789c462978a0b07 Parents: 4aff07e Author: Szehon Ho <sze...@cloudera.com> Authored: Tue May 5 11:24:48 2015 -0700 Committer: Szehon Ho <sze...@cloudera.com> Committed: Tue May 5 11:25:54 2015 -0700 ---------------------------------------------------------------------- ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/bb3a665a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java ---------------------------------------------------------------------- diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java index dec0e38..cbc5466 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java @@ -6821,7 +6821,7 @@ public class SemanticAnalyzer extends BaseSemanticAnalyzer { for (int i = tableFields.size() + (updating() ? 1 : 0); i < rowFields.size(); ++i) { TypeInfo rowFieldTypeInfo = rowFields.get(i).getType(); ExprNodeDesc column = new ExprNodeColumnDesc( - rowFieldTypeInfo, rowFields.get(i).getInternalName(), "", false); + rowFieldTypeInfo, rowFields.get(i).getInternalName(), "", true); expressions.add(column); } // converted = true; // [TODO]: should we check & convert type to String and set it to true?