lgbo-ustc opened a new issue, #12171: URL: https://github.com/apache/gluten/issues/12171
### Backend CH (ClickHouse) ### Bug description `addElement` treats `values.size() >= max_elements` as true when `max_elements == 0`, then immediately reads `values[0]` while the vector is empty. A query that constructs `rowNumGroupArraySorted(0, ...)` can hit this path. The constructor or argument parser should reject zero, or the add path should explicitly handle it as producing no values. ### Gluten version _No response_ ### Spark version None ### Spark configurations _No response_ ### System information _No response_ ### Relevant logs ```bash ``` -- 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]
