Skip to content

Commit

Permalink
fix p0 problem
Browse files Browse the repository at this point in the history
  • Loading branch information
LiBinfeng-01 committed Sep 19, 2024
1 parent 5b9da22 commit 951da11
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,12 @@ private static Expression replace(
hasNewChildren = true;
}
if (!newChild.getDataType().equals(child.getDataType())) {
newChildren.add(newChild.castTo(child.getDataType()));
try {
newChildren.add(newChild.castTo(child.getDataType()));
} catch (Exception e) {
LOG.warn("expression of type {} cast to {} failed. ", newChild.getDataType(), child.getDataType());
newChildren.add(newChild);
}
} else {
newChildren.add(newChild);
}
Expand Down

0 comments on commit 951da11

Please sign in to comment.