You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/09/01 10:57:47 UTC
[GitHub] [doris] xy720 opened a new issue, #12270: [Enhancement] Support Floating/Decimal type for array aggregation functions
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: commits-unsubscribe@doris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] yiguolei closed issue #12270: [Enhancement] Support Floating/Decimal type for array aggregation functions
Posted by GitBox <gi...@apache.org>.
yiguolei closed issue #12270: [Enhancement] Support Floating/Decimal type for array aggregation functions
URL: https://github.com/apache/doris/issues/12270
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org