-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/33128/
-----------------------------------------------------------
(Updated April 13, 2015, 4:51 p.m.)
Review request for hive, Ashutosh Chauhan, Szehon Ho, and Xuefu Zhang.
Changes
-------
Updated two failed test outputs
Bugs: HIVE-10313
https://issues.apache.org/jira/browse/HIVE-10313
Repository: hive-git
Description
-------
In TyepCheckProcFactory.NumExprProcessor, the ExprNodeConstantDesc is currently
created from strVal:
==
else if (expr.getText().endsWith("BD")) {
// Literal decimal
String strVal = expr.getText().substring(0, expr.getText().length() -
2);
HiveDecimal hd = HiveDecimal.create(strVal);
int prec = 1;
int scale = 0;
if (hd != null) {
prec = hd.precision();
scale = hd.scale();
}
DecimalTypeInfo typeInfo = TypeInfoFactory.getDecimalTypeInfo(prec,
scale);
return new ExprNodeConstantDesc(typeInfo, strVal);
}
==
It shoudl be created from HiveDecimal hd instread.
Diffs (updated)
-----
ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java 79d38bc
ql/src/test/results/clientpositive/literal_decimal.q.out b2a23cf
ql/src/test/results/clientpositive/tez/vector_decimal_2.q.out e67ab7b
ql/src/test/results/clientpositive/vector_decimal_2.q.out b22d00c
Diff: https://reviews.apache.org/r/33128/diff/
Testing
-------
Manually tests
kick off precommit build tests
Thanks,
Chaoyu Tang