You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rust/cubesql/cubesql/src/compile/mod.rs
+20-19Lines changed: 20 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -14344,12 +14344,9 @@ ORDER BY "source"."str0" ASC
14344
14344
14345
14345
#[tokio::test]
14346
14346
async fn metabase_aggreagte_by_week_of_year() {
14347
-
if !Rewriter::sql_push_down_enabled() {
14348
-
return;
14349
-
}
14350
14347
init_logger();
14351
14348
14352
-
let query_plan = convert_select_to_query_plan(
14349
+
let logical_plan = convert_select_to_query_plan(
14353
14350
"SELECT ceil((CAST(extract(doy from CAST(date_trunc('week', \"KibanaSampleDataEcommerce\".\"order_date\") AS timestamp)) AS integer) / 7.0)) AS \"order_date\",
14354
14351
min(\"KibanaSampleDataEcommerce\".\"minPrice\") AS \"min\"
14355
14352
FROM \"KibanaSampleDataEcommerce\"
@@ -14358,23 +14355,27 @@ ORDER BY "source"."str0" ASC
14358
14355
.to_string(),
14359
14356
DatabaseProtocol::PostgreSQL,
14360
14357
)
14361
-
.await;
14358
+
.await
14359
+
.as_logical_plan();
14362
14360
14363
-
let physical_plan = query_plan.as_physical_plan().await.unwrap();
0 commit comments