databend
databend copied to clipboard
bug: `arg_min_distinct` function with the value type is bitmap or variant cause segmentation fault
Search before asking
- [X] I had searched in the issues and found no similar issues.
Version
v1.2.314-nightly
What's Wrong?
arg_min_distinct
function with the value type is bitmap or variant cause segmentation fault
How to Reproduce?
mysql> create table test(a int not null, b bitmap not null, c variant not null);
Query OK, 0 rows affected (0.12 sec)
mysql> insert into test values(-370, '97,402,7675,962', 'true'),(565,'656,287,770,4147', 'false');
Query OK, 2 rows affected (0.06 sec)
mysql> SELECT arg_min_distinct(a, b), a FROM test GROUP BY a;
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql> SELECT arg_min_distinct(a, c), a FROM test GROUP BY a;
ERROR 2013 (HY000): Lost connection to MySQL server during query
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!