Skip to content

Commit 1aa628e

Browse files
committed
[WIP find new error variant] Fix test_select_error
1 parent 513a9d8 commit 1aa628e

File tree

1 file changed

+5
-4
lines changed
  • rust/cubesql/cubesql/src/compile

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2800,10 +2800,11 @@ limit
28002800
#[tokio::test]
28012801
async fn test_select_error() {
28022802
let variants = vec![
2803-
(
2804-
"SELECT AVG(maxPrice) FROM KibanaSampleDataEcommerce".to_string(),
2805-
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()),
2806-
),
2803+
// TODO this variant is no longer a error, figure out new one
2804+
// (
2805+
// "SELECT AVG(maxPrice) FROM KibanaSampleDataEcommerce".to_string(),
2806+
// 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()),
2807+
// ),
28072808
];
28082809

28092810
for (input_query, expected_error) in variants.iter() {

0 commit comments

Comments
 (0)