aoyuEra commented on issue #282:
URL: 
https://github.com/apache/doris-spark-connector/issues/282#issuecomment-2712481930

   我是github新人,不太了解具体操作,一下是代码更新,如有错误,请大家指正,谢谢。
   代码:
               case "CASE_WHEN" =>
                 val fragment = new StringBuilder("CASE ")
   
                 val expressions = e.children()
   
                 for(i<- 0 until expressions.size - 1 by 2){
                   fragment.append(s" WHEN ${build(expressions(i))} THEN 
${build(expressions(i+1))} ")
                 }
   
                 if (expressions % 2 != 0) {
                   val last = expressions(expressions.length - 1)
                   fragment.append(s" ELSE ${build(last)} ")
                 }
                 fragment.append(" END")
   
                 fragment.mkString


-- 
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