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

Function limit

datafusion/core/tests/dataframe/mod.rs:1600–1614  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1598
1599#[tokio::test]
1600async fn limit() -> Result<()> {
1601 // build query using Table API
1602 let t = test_table().await?;
1603 let t2 = t.select_columns(&["c1", "c2", "c11"])?.limit(0, Some(10))?;
1604 let plan = t2.logical_plan().clone();
1605
1606 // build query using SQL
1607 let sql_plan =
1608 create_plan("SELECT c1, c2, c11 FROM aggregate_test_100 LIMIT 10").await?;
1609
1610 // the two plans should be identical
1611 assert_same_plan(&plan, &sql_plan);
1612
1613 Ok(())
1614}
1615
1616#[tokio::test]
1617async fn df_count() -> Result<()> {

Callers

nothing calls this directly

Calls 7

test_tableFunction · 0.85
assert_same_planFunction · 0.85
select_columnsMethod · 0.80
create_planFunction · 0.70
limitMethod · 0.45
cloneMethod · 0.45
logical_planMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…