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
+24-3Lines changed: 24 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18520,7 +18520,7 @@ ORDER BY \"COUNT(count)\" DESC"
18520
18520
init_logger();
18521
18521
18522
18522
let query_plan = convert_select_to_query_plan(
18523
-
"SELECT COALESCE(customer_gender, 'N/A'), MIN(avgPrice) mp FROM (SELECT AVG(avgPrice) avgPrice, customer_gender FROM KibanaSampleDataEcommerce GROUP BY 2 LIMIT 1) a GROUP BY 1"
18523
+
"SELECT COALESCE(customer_gender, 'N/A'), AVG(avgPrice) mp FROM KibanaSampleDataEcommerce a GROUP BY 1"
18524
18524
.to_string(),
18525
18525
DatabaseProtocol::PostgreSQL,
18526
18526
)
@@ -18549,7 +18549,7 @@ ORDER BY \"COUNT(count)\" DESC"
18549
18549
init_logger();
18550
18550
18551
18551
let query_plan = convert_select_to_query_plan(
18552
-
"SELECT CASE WHEN customer_gender = 'female' THEN 'f' ELSE 'm' END, MIN(avgPrice) mp FROM (SELECT AVG(avgPrice) avgPrice, customer_gender FROM KibanaSampleDataEcommerce GROUP BY 2 LIMIT 1) a GROUP BY 1"
18552
+
"SELECT CASE WHEN customer_gender = 'female' THEN 'f' ELSE 'm' END, AVG(avgPrice) mp FROM KibanaSampleDataEcommerce a GROUP BY 1"
18553
18553
.to_string(),
18554
18554
DatabaseProtocol::PostgreSQL,
18555
18555
)
@@ -18666,7 +18666,7 @@ ORDER BY \"COUNT(count)\" DESC"
18666
18666
init_logger();
18667
18667
18668
18668
let query_plan = convert_select_to_query_plan(
18669
-
"SELECT * FROM (SELECT CASE WHEN customer_gender = 'female' THEN 'f' ELSE 'm' END, MIN(avgPrice) mp FROM (SELECT AVG(avgPrice) avgPrice, customer_gender FROM KibanaSampleDataEcommerce GROUP BY 2 LIMIT 1) a GROUP BY 1) q LIMIT 1123"
18669
+
"SELECT * FROM (SELECT CASE WHEN customer_gender = 'female' THEN 'f' ELSE 'm' END, AVG(avgPrice) mp FROM KibanaSampleDataEcommerce a GROUP BY 1) q LIMIT 1123"
18670
18670
.to_string(),
18671
18671
DatabaseProtocol::PostgreSQL,
18672
18672
)
@@ -18694,6 +18694,27 @@ ORDER BY \"COUNT(count)\" DESC"
0 commit comments