This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 1be379043b3 [fix](Nereids) add int type alias 'integer' (#25509)
1be379043b3 is described below
commit 1be379043b301d10e4010076c5b515219f33077a
Author: morrySnow <[email protected]>
AuthorDate: Tue Oct 17 16:43:23 2023 +0800
[fix](Nereids) add int type alias 'integer' (#25509)
cherry-pick from master
PR: #25376
commit id: 934d82816c35e4f98bf27b95e3025c41d4799271
---
fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4 | 2 +-
fe/fe-core/src/main/java/org/apache/doris/nereids/types/DataType.java | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4
b/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4
index cd07467e1c9..a5c93080f76 100644
--- a/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4
+++ b/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4
@@ -468,7 +468,7 @@ dataType
primitiveColType:
| type=TINYINT
| type=SMALLINT
- | (SIGNED | UNSIGNED)? type=INT
+ | (SIGNED | UNSIGNED)? type=(INT | INTEGER)
| type=BIGINT
| type=LARGEINT
| type=BOOLEAN
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/types/DataType.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/types/DataType.java
index f13f9da05ee..9967e5cf0b6 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/nereids/types/DataType.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/types/DataType.java
@@ -121,6 +121,7 @@ public abstract class DataType implements AbstractDataType {
case "smallint":
return SmallIntType.INSTANCE;
case "int":
+ case "integer":
return IntegerType.INSTANCE;
case "bigint":
return BigIntType.INSTANCE;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]