13761377137813791380138113821383138413851386
case INT: case LONG: return ((Number) scalar).longValue(); case DECIMAL: HiveDecimal decimalVal = (HiveDecimal) scalar; return decimalVal.longValue(); default: throw new HiveException("Unsupported type "+typename+" for cast to Long"); } }
444546474849505152
HiveDecimal result = inV.vector[i].getHiveDecimal().multiply(tenE9); if (result == null) { outV.noNulls = false; outV.isNull[i] = true; } else { outV.vector[i] = result.longValue(); } } }