Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow cross-schema query in promql #3545

Merged
8 changes: 8 additions & 0 deletions src/promql/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ pub enum Error {
operator: String,
location: Location,
},

#[snafu(display("Matcher operator {matcher_op} is not supported for {matcher}"))]
UnsupportedMatcherOp {
matcher_op: String,
matcher: String,
location: Location,
},
}

impl ErrorExt for Error {
Expand All @@ -157,6 +164,7 @@ impl ErrorExt for Error {
| DataFusionPlanning { .. }
| MultiFieldsNotSupported { .. }
| UnexpectedPlanExpr { .. }
| UnsupportedMatcherOp { .. }
| IllegalRange { .. } => StatusCode::InvalidArguments,

UnknownTable { .. } | EmptyRange { .. } => StatusCode::Internal,
Expand Down