We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f36f99 commit 97bdf79Copy full SHA for 97bdf79
1 file changed
core/tests/flight/mod.rs
@@ -213,10 +213,15 @@ async fn test_flight_sql_data_source() -> datafusion::common::Result<()> {
213
.await
214
.unwrap();
215
let df = ctx.sql("select col1 from fsql").await.unwrap();
216
- assert_eq!(
217
- df.count().await.unwrap(),
218
- rows_per_partition * num_partitions
219
- );
+
+ let row_count: usize = df
+ .collect()
+ .await
220
+ .unwrap()
221
+ .iter()
222
+ .map(|b| b.num_rows())
223
+ .sum();
224
+ assert_eq!(row_count, rows_per_partition * num_partitions);
225
let df = ctx.sql("select sum(col2) from fsql").await?;
226
let rb = df
227
.collect()
0 commit comments