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
+22-4Lines changed: 22 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1707,6 +1707,28 @@ mod tests {
1707
1707
);
1708
1708
}
1709
1709
1710
+
#[tokio::test]
1711
+
async fn test_select_number() {
1712
+
let query_plan = convert_select_to_query_plan(
1713
+
"SELECT MEASURE(someNumber) as s1, SUM(someNumber) as s2, MIN(someNumber) as s3, MAX(someNumber) as s4, COUNT(someNumber) as s5 FROM NumberCube".to_string(),
@@ -3748,10 +3770,6 @@ ORDER BY \"COUNT(count)\" DESC"
3748
3770
"SELECT AVG(maxPrice) FROM KibanaSampleDataEcommerce".to_string(),
3749
3771
CompilationError::user("Error during rewrite: Measure aggregation type doesn't match. The aggregation type for 'maxPrice' is 'MAX()' but 'AVG()' was provided. Please check logs for additional information.".to_string()),
3750
3772
),
3751
-
(
3752
-
"SELECT AVG(someNumber) FROM NumberCube".to_string(),
3753
-
CompilationError::user("Error during rewrite: Measure aggregation type doesn't match. The aggregation type for 'someNumber' is 'MEASURE()' but 'AVG()' was provided. Please check logs for additional information.".to_string()),
3754
-
),
3755
3773
];
3756
3774
3757
3775
for (input_query, expected_error) in variants.iter() {
0 commit comments