[date](parser) Support DateV1 keyword (#25414)
This commit is contained in:
@ -439,6 +439,18 @@ public class ScalarType extends Type {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("checkstyle:MissingJavadocMethod")
|
||||
public static ScalarType createDatetimeV1Type() {
|
||||
Preconditions.checkState(!Config.disable_datev1, "Datev1 is disable in fe.conf!");
|
||||
return new ScalarType(PrimitiveType.DATETIME);
|
||||
}
|
||||
|
||||
@SuppressWarnings("checkstyle:MissingJavadocMethod")
|
||||
public static ScalarType createDateV1Type() {
|
||||
Preconditions.checkState(!Config.disable_datev1, "Datev1 is disable in fe.conf!");
|
||||
return new ScalarType(PrimitiveType.DATE);
|
||||
}
|
||||
|
||||
@SuppressWarnings("checkstyle:MissingJavadocMethod")
|
||||
public static ScalarType createTimeType() {
|
||||
if (!Config.enable_date_conversion) {
|
||||
|
||||
Reference in New Issue
Block a user