()
| 242 | |
| 243 | #[tokio::test] |
| 244 | async fn test_aggregate_ext_distinct() { |
| 245 | let agg = sum_udaf() |
| 246 | .call(vec![lit(5)]) |
| 247 | // distinct sum should be 5, not 15 |
| 248 | .distinct() |
| 249 | .build() |
| 250 | .unwrap() |
| 251 | .alias("distinct"); |
| 252 | |
| 253 | evaluate_agg_test( |
| 254 | agg, |
| 255 | vec![ |
| 256 | "+----------+", |
| 257 | "| distinct |", |
| 258 | "+----------+", |
| 259 | "| 5 |", |
| 260 | "+----------+", |
| 261 | ], |
| 262 | ) |
| 263 | .await; |
| 264 | } |
| 265 | |
| 266 | #[tokio::test] |
| 267 | async fn test_aggregate_ext_null_treatment() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…