chenhao7253886 closed pull request #286: Fixed unit test failure URL: https://github.com/apache/incubator-doris/pull/286
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/fe/src/main/cup/sql_parser.cup b/fe/src/main/cup/sql_parser.cup index a0ac78a9..b5a038ff 100644 --- a/fe/src/main/cup/sql_parser.cup +++ b/fe/src/main/cup/sql_parser.cup @@ -3028,6 +3028,8 @@ type ::= {: RESULT = Type.INT; :} | KW_BIGINT {: RESULT = Type.BIGINT; :} + | KW_LARGEINT + {: RESULT = Type.LARGEINT; :} | KW_BOOLEAN {: RESULT = Type.BOOLEAN; :} | KW_FLOAT @@ -3038,6 +3040,8 @@ type ::= {: RESULT = Type.DATE; :} | KW_DATETIME {: RESULT = Type.DATETIME; :} + | KW_STRING + {: RESULT = ScalarType.createVarcharType(-1); :} | KW_VARCHAR LPAREN INTEGER_LITERAL:len RPAREN {: RESULT = ScalarType.createVarcharType(len.intValue()); :} | KW_VARCHAR diff --git a/fe/src/test/java/org/apache/doris/planner/StreamLoadScanNodeTest.java b/fe/src/test/java/org/apache/doris/planner/StreamLoadScanNodeTest.java index 6b9bc774..1f2d9f79 100644 --- a/fe/src/test/java/org/apache/doris/planner/StreamLoadScanNodeTest.java +++ b/fe/src/test/java/org/apache/doris/planner/StreamLoadScanNodeTest.java @@ -143,7 +143,6 @@ public void testNormal() throws UserException { StreamLoadScanNode scanNode = new StreamLoadScanNode(new PlanNodeId(1), dstDesc, dstTable, request); new Expectations() {{ dstTable.getBaseSchema(); result = columns; - castExpr.analyze((Analyzer) any); }}; scanNode.init(analyzer); scanNode.finalize(analyzer); @@ -521,4 +520,4 @@ public void testWhereNotBool() throws UserException, UserException { TPlanNode planNode = new TPlanNode(); scanNode.toThrift(planNode); } -} \ No newline at end of file +} ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org For additional commands, e-mail: dev-h...@doris.apache.org