mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-08 06:12:55 +00:00
fix: ignore missing columns and tables in PromQL (#6285)
* fix: handle table/column not found in or Signed-off-by: evenyag <realevenyag@gmail.com> * test: update result Signed-off-by: evenyag <realevenyag@gmail.com> * test: drop table after test Signed-off-by: evenyag <realevenyag@gmail.com> * test: fix test cases Signed-off-by: evenyag <realevenyag@gmail.com> * fix: do not return table not found error in series_query Signed-off-by: evenyag <realevenyag@gmail.com> --------- Signed-off-by: evenyag <realevenyag@gmail.com>
This commit is contained in:
@@ -638,8 +638,13 @@ async fn cross_schema_query(instance: Arc<dyn MockInstance>) {
|
||||
interval,
|
||||
lookback_delta,
|
||||
)
|
||||
.await;
|
||||
assert!(query_output.is_err());
|
||||
.await
|
||||
.unwrap();
|
||||
let empty_result = r#"+------+-------+
|
||||
| time | value |
|
||||
+------+-------+
|
||||
+------+-------+"#;
|
||||
check_unordered_output_stream(query_output, empty_result).await;
|
||||
|
||||
let query_output = promql_query(
|
||||
ins.clone(),
|
||||
|
||||
Reference in New Issue
Block a user