Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dandandan committed Nov 16, 2023
1 parent c8a6427 commit 9fd4f0d
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions ballista/client/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ mod tests {
let res = df.collect().await.unwrap();
let expected = vec![
"+-------------------+",
"| VARIANCE(test.id) |",
"| VAR(test.id) |",
"+-------------------+",
"| 6.000000000000001 |",
"+-------------------+",
Expand All @@ -852,11 +852,11 @@ mod tests {
.unwrap();
let res = df.collect().await.unwrap();
let expected = vec![
"+-----------------------+",
"| VARIANCE_POP(test.id) |",
"+-----------------------+",
"| 5.250000000000001 |",
"+-----------------------+",
"+-------------------+",
"| VAR_POP(test.id) |",
"+-------------------+",
"| 5.250000000000001 |",
"+-------------------+",
];
assert_result_eq(expected, &res);

Expand All @@ -867,7 +867,7 @@ mod tests {
let res = df.collect().await.unwrap();
let expected = vec![
"+-------------------+",
"| VARIANCE(test.id) |",
"| VAR(test.id) |",
"+-------------------+",
"| 6.000000000000001 |",
"+-------------------+",
Expand Down Expand Up @@ -908,11 +908,11 @@ mod tests {
.unwrap();
let res = df.collect().await.unwrap();
let expected = vec![
"+--------------------------------------+",
"| COVARIANCE(test.id,test.tinyint_col) |",
"+--------------------------------------+",
"| 0.28571428571428586 |",
"+--------------------------------------+",
"+---------------------------------+",
"| COVAR(test.id,test.tinyint_col) |",
"+---------------------------------+",
"| 0.28571428571428586 |",
"+---------------------------------+",
];
assert_result_eq(expected, &res);

Expand All @@ -922,11 +922,11 @@ mod tests {
.unwrap();
let res = df.collect().await.unwrap();
let expected = vec![
"+---------------------------------------+",
"| CORRELATION(test.id,test.tinyint_col) |",
"+---------------------------------------+",
"| 0.21821789023599245 |",
"+---------------------------------------+",
"+--------------------------------+",
"| CORR(test.id,test.tinyint_col) |",
"+--------------------------------+",
"| 0.21821789023599245 |",
"+--------------------------------+",
];
assert_result_eq(expected, &res);

Expand Down

0 comments on commit 9fd4f0d

Please sign in to comment.