Skip to content

Commit

Permalink
Add median and avg sqllogictests tests
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Oct 20, 2023
1 parent 2960347 commit 9f96a48
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions datafusion/sqllogictest/test_files/decimal.slt
Original file line number Diff line number Diff line change
Expand Up @@ -706,5 +706,15 @@ select arrow_typeof(sum(c1)), sum(c1) from decimal256_simple;
----
Decimal256(60, 6) 0.00055

query TR
select arrow_typeof(avg(c1)), avg(c1) from decimal256_simple;
----
Decimal256(54, 10) 0.0000366666

query TR
select arrow_typeof(median(c1)), median(c1) from decimal256_simple;
----
Decimal256(50, 6) 0.00004

statement ok
drop table decimal256_simple;

0 comments on commit 9f96a48

Please sign in to comment.