[test](regression) adjust nereids related regression cases under datev2 (#14578)

1. revert 14439, recovery dup&unique test cases
2. adjust nereids related case
This commit is contained in:
minghong
2022-11-27 23:57:51 +08:00
committed by GitHub
parent 230ede9085
commit 280f8be4bd
164 changed files with 68730 additions and 287 deletions

View File

@ -206,8 +206,6 @@ public abstract class Literal extends Expression implements LeafExpression, Comp
return new DateTimeLiteral(desc);
} else if (targetType.isDecimalType()) {
return new DecimalLiteral(BigDecimal.valueOf(Double.parseDouble(desc)));
} else if (targetType.isDateV2()) {
return new DateV2Literal(desc);
}
throw new AnalysisException("no support cast!");
}

View File

@ -409,10 +409,6 @@ public abstract class DataType implements AbstractDataType {
return this instanceof DateType;
}
public boolean isDateV2() {
return this instanceof DateV2Type;
}
public boolean isDateType() {
return isDate() || isDateTime();
}