You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
* 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>
10 lines
402 B
Plaintext
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;
|