1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/r/mcs7210_regression_MCOL-2091.result
Daniel Lee 4c9d6e39ac Dlee mtr restructure (#2494)
* Restructured test suites and added autopilot and extended suites

* Updated autopilot with correct branch - develop

* Moved setup test case to a 'setup' directory, for consistency

* Fixed a path issue

* Updated some tests cases to keep up with development

Co-authored-by: root <root@rocky8.localdomain>
2022-08-09 21:20:56 +03:00

10 lines
402 B
Plaintext

USE tpch1;
CREATE AGGREGATE FUNCTION IF NOT EXISTS avg_mode returns REAL soname 'libudf_mysql.so';
drop table if exists t1;
create table t1 (c1 int, c2 int, c3 int, c4 int)engine=columnstore;
insert into t1 values (1,2,3,4),(1,2,3,4),(1,2,3,4),(1,2,3,4);
select c1,count(distinct c2) as c2,count(distinct c3) as c3, avg_mode(c4) as c4 from t1 group by c1;
c1 c2 c3 c4
1 1 1 4
drop table if exists t1;