Fix cast error in StreamLoadScanNodeush (#356)

This commit is contained in:
chenhao
2018-11-27 16:03:33 +08:00
committed by ZHAO Chun
parent b2d89dfee9
commit cfefa71daa

View File

@ -329,9 +329,11 @@ public class StreamLoadScanNode extends ScanNode {
}
private Expr castToSlot(SlotDescriptor slotDesc, Expr expr) throws UserException {
if (slotDesc.getType().isNull()) {
return expr;
}
PrimitiveType dstType = slotDesc.getType().getPrimitiveType();
PrimitiveType srcType = expr.getType().getPrimitiveType();
if (dstType.isStringType()) {
if (srcType.isStringType()) {
return expr;