13571358135913601361136213631364136513661367
case INT: case LONG: return ((Number) scalar).doubleValue(); case DECIMAL: HiveDecimal decimalVal = (HiveDecimal) scalar; return decimalVal.doubleValue(); default: throw new HiveException("Unsupported type "+typename+" for cast to Double"); } }