Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,10 @@ protected Expr uncheckedCastTo(Type targetType) throws AnalysisException {
break;
}
} else if (targetType.isDateType()) {
// FE only support 'yyyy-MM-dd hh:mm:ss' && 'yyyy-MM-dd' format
// so if FE unchecked cast fail, we also build CastExpr for BE
// BE support other format suck as 'yyyyMMdd'...
try {
return convertToDate(targetType);
} catch (AnalysisException e) {
// pass;
throw new AnalysisException(e.getMessage());
}
} else if (targetType.equals(type)) {
return this;
Expand Down