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

   ### Backend
   
   CH (ClickHouse)
   
   ### Bug description
   
   SQL:select i, substring('Spark', 1, i) from range(-10, 10) t(i) where i = -3;
   Spark SQL(disable native) results:
   
![image](https://github.com/apache/incubator-gluten/assets/37786352/bfdfdb73-04b5-4063-8ee5-98815e60b1f9)
   
   Enable native results::
   
![image](https://github.com/apache/incubator-gluten/assets/37786352/622252e5-5d42-43f3-9420-b2d45381921b)
   
   problem analysis:
   Spark Function: substring
   substring(str, pos[, len]) - Returns the substring of `str` that starts at 
`pos` and is of length `len`, or the slice of byte array that starts at `pos` 
and is of length `len`.
   
   if `len` is less or equal than 0 the result is an empty string
   
   
   ### 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