}
@Test
public void testFoldConstantsForUnaryExpression() throws HiveException {
ExprNodeConstantDesc constDesc = new ExprNodeConstantDesc(new Integer(1));
GenericUDFToDecimal udf = new GenericUDFToDecimal();
udf.setTypeInfo(new DecimalTypeInfo(5, 2));
List<ExprNodeDesc> children = new ArrayList<ExprNodeDesc>();
children.add(constDesc);
ExprNodeGenericFuncDesc exprDesc = new ExprNodeGenericFuncDesc();
exprDesc.setGenericUDF(udf);
exprDesc.setChildren(children);