[fix](planner) ctas update datev1 to datev2 should use equals (#28641)
This commit is contained in:
@ -89,11 +89,11 @@ public class CreateTableAsSelectStmt extends DdlStmt {
|
||||
queryStmt.getResultExprs().get(i).getSrcSlotRef().getDesc().setColumn(columnCopy);
|
||||
}
|
||||
if (Config.enable_date_conversion) {
|
||||
if (queryStmt.getResultExprs().get(i).getType() == Type.DATE) {
|
||||
if (queryStmt.getResultExprs().get(i).getType().isDate()) {
|
||||
Expr castExpr = queryStmt.getResultExprs().get(i).castTo(Type.DATEV2);
|
||||
queryStmt.getResultExprs().set(i, castExpr);
|
||||
}
|
||||
if (queryStmt.getResultExprs().get(i).getType() == Type.DATETIME) {
|
||||
if (queryStmt.getResultExprs().get(i).getType().isDatetime()) {
|
||||
Expr castExpr = queryStmt.getResultExprs().get(i).castTo(Type.DATETIMEV2);
|
||||
queryStmt.getResultExprs().set(i, castExpr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user