MCPcopy Create free account
hub / github.com/apache/datafusion / count_partitioned

Function count_partitioned

datafusion/core/tests/sql/aggregates/basic.rs:73–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72#[tokio::test]
73async fn count_partitioned() -> Result<()> {
74 let results =
75 execute_with_partition("SELECT count(c1), count(c2) FROM test", 4).await?;
76 assert_eq!(results.len(), 1);
77
78 assert_snapshot!(batches_to_sort_string(&results), @r"
79 +----------------+----------------+
80 | count(test.c1) | count(test.c2) |
81 +----------------+----------------+
82 | 40 | 40 |
83 +----------------+----------------+
84 ");
85 Ok(())
86}
87
88#[tokio::test]
89async fn count_aggregated() -> Result<()> {

Callers

nothing calls this directly

Calls 1

execute_with_partitionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…