feat: improve datafusion external error and mysql error (#4362)

* feat: improve datafusion external error and mysql error

* chore: address CR comments and fix tests

---------

Co-authored-by: evenyag <realevenyag@gmail.com>
This commit is contained in:
dennis zhuang
2024-07-16 00:01:09 -07:00
committed by GitHub
parent 7b28da277d
commit be3ea0fae7
20 changed files with 159 additions and 92 deletions

View File

@@ -264,7 +264,7 @@ pub async fn test_sql_api(store_type: StorageType) {
let body = serde_json::from_str::<ErrorResponse>(&res.text().await).unwrap();
assert!(body.error().contains("Table not found"));
assert_eq!(body.code(), ErrorCode::PlanQuery as u32);
assert_eq!(body.code(), ErrorCode::TableNotFound as u32);
// test database given
let res = client