Skip to content

Commit dd3e35f

Browse files
committed
Fix failing test
1 parent 865ce28 commit dd3e35f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

asap-query-engine/src/drivers/query/adapters/elastic_http.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ mod tests {
383383

384384
let sql_query = json!({
385385
"query": "SELECT status, COUNT(*) FROM logs GROUP BY status",
386-
"fetch_size": 100,
387386
"time_zone": "UTC"
388387
});
389388

@@ -392,8 +391,10 @@ mod tests {
392391

393392
assert!(result.is_ok(), "SQL query with params should parse");
394393
let parsed = result.unwrap();
395-
assert!(parsed.query.contains("fetch_size"));
396-
assert!(parsed.query.contains("time_zone"));
394+
assert!(
395+
!parsed.query.contains("time_zone"),
396+
"SQL adapter should extract only the query string, not extra params"
397+
);
397398
}
398399

399400
/// Test: Invalid JSON should return error

0 commit comments

Comments
 (0)