Skip to content

Commit 420398b

Browse files
authored
fix(#1410): log error and return at the end of switch statement in ShadowCopy function (#1437)
1 parent baf1cf0 commit 420398b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hybridse/src/node/expr_node.cc

+2
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,8 @@ ConstNode* ConstNode::ShadowCopy(NodeManager* nm) const {
919919
return nm->MakeConstNode(GetDataType());
920920
}
921921
}
922+
LOG(ERROR) << "Unsupported Data type " << node::DataTypeName(GetDataType());
923+
return nullptr;
922924
}
923925

924926
ColumnRefNode* ColumnRefNode::ShadowCopy(NodeManager* nm) const {

0 commit comments

Comments
 (0)