xy720 opened a new issue, #12270: URL: https://github.com/apache/doris/issues/12270
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues. ### Version master ### What's Wrong? We should support Floating/Decimal type for array aggregation functions ### What You Expected? Magic power! ### How to Reproduce? ``` vCREATE TABLE `test_array_select_test_table_tb` ( `k1` int(11) NULL, `a1` array<boolean> NULL, `a2` array<tinyint(4)> NULL, `a3` array<smallint(6)> NULL, `a4` array<int(11)> NULL, `a5` array<bigint(20)> NULL, `a6` array<largeint(40)> NULL, `a7` array<decimal(27, 7)> NULL, `a8` array<float> NULL, `a9` array<double> NULL, `a10` array<date> NULL, `a11` array<datetime> NULL, `a12` array<char(20)> NULL, `a13` array<varchar(50)> NULL, `a14` array<text> NULL ) ENGINE=OLAP DUPLICATE KEY(`k1`) COMMENT 'OLAP' DISTRIBUTED BY HASH(`k1`) BUCKETS 5 PROPERTIES ( "replication_allocation" = "tag.location.default: 2", "in_memory" = "false", "storage_format" = "V2", "disable_auto_compaction" = "false" ); mysql> select array_avg(a7) from test_array_select_test_table_tb; ERROR 1105 (HY000): errCode = 2, detailMessage = No matching function with signature: array_avg(array<decimal(27, 7)>). mysql> select array_avg(a8) from test_array_select_test_table_tb; ERROR 1105 (HY000): errCode = 2, detailMessage = No matching function with signature: array_avg(array<float>). mysql> select array_avg(a9) from test_array_select_test_table_tb; ERROR 1105 (HY000): errCode = 2, detailMessage = No matching function with signature: array_avg(array<double>). mysql> select array_avg(a10) from test_array_select_test_table_tb; ``` ### 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]
