IsmailTosunTnyl opened a new issue, #52252: URL: https://github.com/apache/doris/issues/52252
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version tested on 2.1.6, 2.1.7, 3.0.6, master ### What's Wrong? `array_agg_foreach(a)` function produce different result on every call, all of them wrong ### What You Expected? function should work like in documentation [https://doris.apache.org/docs/sql-manual/sql-functions/combinators/foreach?_highlight=foreach](Doc) ### How to Reproduce? ```sql -- create table CREATE TABLE IF NOT EXISTS db ( id INT NOT NULL COMMENT "unique id", -- Benzersiz bir ID sütunu eklemek iyi bir pratik a ARRAY<INT> NULL COMMENT "Integer array column", s ARRAY<STRING> NULL COMMENT "String array column" ) DUPLICATE KEY(id) DISTRIBUTED BY HASH(id) BUCKETS 10 PROPERTIES ( "replication_allocation" = "tag.location.default:1" ); -- insert data INSERT INTO db (id, a, s) VALUES (1, [1, 2, 3], ["ab", "123"]), (2, [20], ["cd"]), (3, [100], ["efg"]), (4, NULL, NULL), (5, [null, 2], [null, "c"]); -- call function a few times, every run will return a different combination SELECT array_agg_foreach(a) FROM db; ``` ### Anything Else? _No response_ ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
