Skip to content

Commit 7044c73

Browse files
committed
chore(cubesql): Remove duplicated test_wrapper_limit_zero
This case is already covered with compile::test::test_wrapper::test_wrapper_limit_zero
1 parent 276ee09 commit 7044c73

File tree

1 file changed

+0
-31
lines changed
  • rust/cubesql/cubesql/src/compile

1 file changed

+0
-31
lines changed

rust/cubesql/cubesql/src/compile/mod.rs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -16220,35 +16220,4 @@ LIMIT {{ limit }}{% endif %}"#.to_string(),
1622016220

1622116221
Ok(())
1622216222
}
16223-
16224-
#[tokio::test]
16225-
async fn test_wrapper_limit_zero() {
16226-
if !Rewriter::sql_push_down_enabled() {
16227-
return;
16228-
}
16229-
init_testing_logger();
16230-
16231-
let query_plan = convert_select_to_query_plan(
16232-
r#"
16233-
SELECT MAX(order_date) FROM KibanaSampleDataEcommerce LIMIT 0
16234-
"#
16235-
.to_string(),
16236-
DatabaseProtocol::PostgreSQL,
16237-
)
16238-
.await;
16239-
16240-
let logical_plan = query_plan.as_logical_plan();
16241-
let sql = logical_plan
16242-
.find_cube_scan_wrapper()
16243-
.wrapped_sql
16244-
.unwrap()
16245-
.sql;
16246-
assert!(sql.contains("LIMIT 0"));
16247-
16248-
let physical_plan = query_plan.as_physical_plan().await.unwrap();
16249-
println!(
16250-
"Physical plan: {}",
16251-
displayable(physical_plan.as_ref()).indent()
16252-
);
16253-
}
1625416223
}

0 commit comments

Comments
 (0)