924060929 commented on code in PR #10947:
URL: https://github.com/apache/doris/pull/10947#discussion_r926231893
##########
fe/fe-core/src/test/java/org/apache/doris/nereids/trees/expressions/ExpressionParserTest.java:
##########
@@ -137,4 +137,13 @@ public void testSortClause() throws Exception {
String sort1 = "select a from test order by 1";
assertSql(sort1);
}
+
+ @Test
+ public void testCaseWhen() throws Exception {
+ String caseWhen = "select case a when 1 then 2 else 3 end from test";
+ assertSql(caseWhen);
+
+ String caseWhen2 = "select case when a = 1 then 2 else 3 end from
test";
Review Comment:
@yinzhijian add ut later
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]