From cfefa71daa5df9458cf49d166d14a1d2d8a82b82 Mon Sep 17 00:00:00 2001 From: chenhao <510341142@qq.com> Date: Tue, 27 Nov 2018 16:03:33 +0800 Subject: [PATCH] Fix cast error in StreamLoadScanNodeush (#356) --- .../java/org/apache/doris/planner/StreamLoadScanNode.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fe/src/main/java/org/apache/doris/planner/StreamLoadScanNode.java b/fe/src/main/java/org/apache/doris/planner/StreamLoadScanNode.java index 8d0a4c2a78..e17a3fc0b5 100644 --- a/fe/src/main/java/org/apache/doris/planner/StreamLoadScanNode.java +++ b/fe/src/main/java/org/apache/doris/planner/StreamLoadScanNode.java @@ -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;