[date](parser) Support DateV1 keyword (#25414)

This commit is contained in:
Gabriel
2023-10-30 18:39:22 +08:00
committed by GitHub
parent 6761dc4113
commit 6eb2cb2d48
10 changed files with 174 additions and 3 deletions

View File

@ -1646,6 +1646,8 @@ public class LogicalPlanBuilder extends DorisParserBaseVisitor<Object> {
return Config.enable_date_conversion ? new DateTimeV2Literal(value) : new DateTimeLiteral(value);
case "DATEV2":
return new DateV2Literal(value);
case "DATEV1":
return new DateLiteral(value);
default:
throw new ParseException("Unsupported data type : " + type, ctx);
}