forked from apache/horaedb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmod.rs
29 lines (23 loc) · 824 Bytes
/
mod.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2023 CeresDB Project Authors. Licensed under Apache-2.0.
//! Influxql processing
pub mod planner;
pub(crate) mod provider;
pub mod error {
use common_util::error::GenericError;
use snafu::{Backtrace, Snafu};
#[derive(Debug, Snafu)]
#[snafu(visibility = "pub")]
pub enum Error {
#[snafu(display(
"Failed to build influxdb schema, msg:{}.\nBacktrace:{}",
msg,
backtrace
))]
BuildSchema { msg: String, backtrace: Backtrace },
#[snafu(display("Failed to build influxql plan, msg:{}, err:{}", msg, source))]
BuildPlan { msg: String, source: GenericError },
#[snafu(display("Unimplemented influxql statement, statement:{}", stmt))]
Unimplemented { stmt: String },
}
define_result!(Error);
}