da-neng-mao commented on issue #31308:
URL: https://github.com/apache/doris/issues/31308#issuecomment-2019318060

   非常感谢您的帮助。
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   At 2024-03-15 16:23:33, "zzwwhh" ***@***.***> wrote:
   
   CREATETABLEtest_varchar (
      str varchar(100),
      len  int
   )
   DUPLICATE KEY(str)
   DISTRIBUTED BY HASH(str) BUCKETS 10
   PROPERTIES("replication_num"="1");
   
   insert into test_varchar select'abcdef',100;
   insert into test_varchar select'test',256;
   
   set enable_fallback_to_original_planner = false;
   
   select  case when len in(select len from test_varchar  ) then 1 else 1 end 
c1  from test_varchar t2  group by len;
   
   ERROR 1105 (HY000): errCode = 2, detailMessage = Only support subquery in 
binary predicate in case statement.
   
   
select/*+SET_VAR(disable_nereids_rules='TRANSPOSE_LOGICAL_SEMI_JOIN_AGG_PROJECT,
 TRANSPOSE_LOGICAL_SEMI_JOIN_AGG')*/  case when len in(select len from 
test_varchar  ) then 1 else 1 end c1  from test_varchar t2  group by len;
   
   can get right result
   
   —
   Reply to this email directly, view it on GitHub, or unsubscribe.
   You are receiving this because you authored the thread.Message ID: 
***@***.***>


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to