KevinyhZou opened a new issue, #7759:
URL: https://github.com/apache/incubator-gluten/issues/7759

   ### Backend
   
   CH (ClickHouse)
   
   ### Bug description
   
   query sql
   ```
   select distinct day, name from(
   select '2024-10-29' day
   ,coalesce(name,'all') name
   ,cnt
   from
   (
   select count(distinct id) as cnt,if(upper(name) regexp 
'^[A-Z]{2}$',name,'unknow') name
   from test_tbl3
   group by name
   with cube
   )) limit 10;
   ```
   
   exception message
   ```
   Caused by: java.lang.UnsupportedOperationException: Failed to bind reference 
for name#10: Couldn't find name#10 in [name#5]
        at 
org.apache.gluten.expression.ExpressionConverter$.replaceWithExpressionTransformer0(ExpressionConverter.scala:223)
        at 
org.apache.gluten.expression.ExpressionConverter$.$anonfun$replaceWithExpressionTransformer0$22(ExpressionConverter.scala:714)
        at 
scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
        at scala.collection.Iterator.foreach(Iterator.scala:943)
        at scala.collection.Iterator.foreach$(Iterator.scala:943)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
        at scala.collection.IterableLike.foreach(IterableLike.scala:74)
        at scala.collection.IterableLike.foreach$(IterableLike.scala:73)
        at scala.collection.AbstractIterable.foreach(Iterable.scala:56)
        at scala.collection.TraversableLike.map(TraversableLike.scala:286)
        at scala.collection.TraversableLike.map$(TraversableLike.scala:279)
        at scala.collection.AbstractTraversable.map(Traversable.scala:108)
        at 
org.apache.gluten.expression.ExpressionConverter$.replaceWithExpressionTransformer0(ExpressionConverter.scala:714)
        at 
org.apache.gluten.expression.ExpressionConverter$.$anonfun$replaceWithExpressionTransformer0$22(ExpressionConverter.scala:714)
        at 
scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
   ```
   
   ### Spark version
   
   Spark-3.3.x
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   _No response_


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

Reply via email to