Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: migration stateless test in 02_function #6795

Merged
merged 6 commits into from
Jul 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion query/src/storages/fuse/statistics/column_statistic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ pub mod traverse {
fn traverse_recursive(column: &ColumnRef, leaves: &mut Vec<ColumnRef>) -> Result<()> {
match column.data_type() {
DataTypeImpl::Struct(_) => {
let struct_col: &StructColumn = Series::check_get(column)?;
let full_column = column.convert_full_column();
let struct_col: &StructColumn = Series::check_get(&full_column)?;
for f in struct_col.values() {
traverse_recursive(f, leaves)?
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,79 +1,79 @@
statement query I
statement query I
select min(number) from numbers_mt (10) where 1 = 2;

----
----
0

statement query I
statement query I
select max(number) from numbers_mt (10) where 1 = 2;

----
----
0

statement query I
statement query I
select arg_min(number, number) from numbers_mt (10) where 1 = 2;

----
----
0

statement query I
statement query I
select arg_max(number, number) from numbers_mt (10) where 1 = 2;

----
----
0

statement query I
statement query I
select sum_distinct(number) from numbers(10) where 1 = 2;

----
----
0

statement query I
statement query I
select sum_if(number, number > 100) from numbers(10);

----
----
0

statement query I
statement query I
select sum_if(number, number > 0) from numbers(10) where 1 = 2;

----
----
0

statement query I
statement query I
select count(number) from numbers_mt (10) where 1 = 2;

----
----
0

statement query I
statement query I
select uniq(number) from numbers_mt (10) where 1 = 2;

----
----
0

statement query I
statement query I
select count_distinct(number) from numbers (10) where 1 = 2;

----
----
0

statement query I
statement query I
select count(distinct number) from numbers (10) where 1 = 2;

----
----
0

statement query I
statement query I
select count_if(number, number > 100) from numbers (10);

----
----
0

statement query I
statement query I
select count_if(number, number > 0) from numbers (10) where 1 = 2;

----
----
0

statement ok
Expand All @@ -100,81 +100,80 @@ select count_distinct(number) from numbers (10) where 1 = 2 group by number % 2;
statement ok
select count(distinct number) from numbers (10) where 1 = 2 group by number % 2;

statement query I
statement query I
select count_if(number, number > 100) from numbers (10) group by number % 2;

----
----
0
0

statement ok
select count_if(number, number > 0) from numbers (10) where 1 = 2 group by number % 2;

statement query I
statement query I
select min(1) from numbers_mt (10) where 1=2;

----
----
0

statement query I
statement query I
select max(1) from numbers_mt (10) where 1=2;

----
----
0

statement query I
statement query I
select arg_min(number, 1) from numbers_mt (10) where 1=2;

----
----
0

statement query I
statement query I
select arg_min(1, number) from numbers_mt (10) where 1=2;

----
----
0

statement query I
statement query I
select arg_min(1, 1) from numbers_mt (10) where 1=2;

----
----
0

statement query I
statement query I
select arg_max(number, 1) from numbers_mt (10) where 1=2;

----
----
0

statement query I
statement query I
select arg_max(1, number) from numbers_mt (10) where 1=2;

----
----
0

statement query I
statement query I
select arg_max(1, 1) from numbers_mt (10) where 1=2;

----
----
0

statement query F label(http)
select avg(number) from numbers_mt (10) where 1 = 2;

----
----
nan

---- http
---- http
NaN


statement query F label(http)
select avg(1) from numbers_mt (10) where 1=2;

----
----
nan

---- http
---- http
NaN

statement ok
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
statement query II
statement query II
SELECT sum(number) AS salary, number%3 AS user_name FROM numbers_mt(10000) GROUP BY user_name ORDER BY salary ASC;

----
----
16661667 1
16665000 2
16668333 0

statement query I
statement query I
SELECT arg_min(user_name, salary) FROM (SELECT sum(number) AS salary, number%3 AS user_name FROM numbers_mt(10000) GROUP BY user_name);

----
----
1

statement ok
set max_threads=8;

statement query I
statement query I
SELECT arg_min(user_name, salary) FROM (SELECT sum(number) AS salary, number%3 AS user_name FROM numbers_mt(10000) GROUP BY user_name);

----
----
1

statement ok
set max_threads=16;

statement query I
statement query I
SELECT arg_min(user_name, salary) FROM (SELECT sum(number) AS salary, number%3 AS user_name FROM numbers_mt(10000) GROUP BY user_name);

----
----
1

Loading