mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-05 21:02:58 +00:00
* chore: pass compile Signed-off-by: shuiyisong <xixing.sys@gmail.com> * fix: default case Signed-off-by: shuiyisong <xixing.sys@gmail.com> * fix: test Signed-off-by: shuiyisong <xixing.sys@gmail.com> * chore: remove and move code Signed-off-by: shuiyisong <xixing.sys@gmail.com> * chore: remove serde_value to vrlvalue conversion Signed-off-by: shuiyisong <xixing.sys@gmail.com> * refactor: optimized vrl value related code Signed-off-by: shuiyisong <xixing.sys@gmail.com> * refactor: loki transform using vrl Signed-off-by: shuiyisong <xixing.sys@gmail.com> * fix: remove unused error Signed-off-by: shuiyisong <xixing.sys@gmail.com> * chore: fix cr issue Signed-off-by: shuiyisong <xixing.sys@gmail.com> * chore: use from_utf8_lossy_owned Signed-off-by: shuiyisong <xixing.sys@gmail.com> * chore: CR issue Signed-off-by: shuiyisong <xixing.sys@gmail.com> --------- Signed-off-by: shuiyisong <xixing.sys@gmail.com>
53 lines
1.7 KiB
Rust
53 lines
1.7 KiB
Rust
// Copyright 2023 Greptime Team
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#![feature(string_from_utf8_lossy_owned)]
|
|
|
|
mod dispatcher;
|
|
pub mod error;
|
|
mod etl;
|
|
mod manager;
|
|
mod metrics;
|
|
mod tablesuffix;
|
|
|
|
pub use etl::ctx_req::{ContextOpt, ContextReq};
|
|
pub use etl::processor::Processor;
|
|
pub use etl::transform::transformer::greptime::{GreptimePipelineParams, SchemaInfo};
|
|
pub use etl::transform::transformer::identity_pipeline;
|
|
pub use etl::transform::GreptimeTransformer;
|
|
pub use etl::{
|
|
parse, Content, DispatchedTo, Pipeline, PipelineExecOutput, TransformedOutput, TransformerMode,
|
|
};
|
|
pub use manager::{
|
|
pipeline_operator, table, util, IdentityTimeIndex, PipelineContext, PipelineDefinition,
|
|
PipelineInfo, PipelineRef, PipelineTableRef, PipelineVersion, PipelineWay, SelectInfo,
|
|
GREPTIME_INTERNAL_IDENTITY_PIPELINE_NAME, GREPTIME_INTERNAL_TRACE_PIPELINE_V1_NAME,
|
|
};
|
|
|
|
#[macro_export]
|
|
macro_rules! unwrap_or_continue_if_err {
|
|
($result:expr, $condition:expr) => {{
|
|
match $result {
|
|
Ok(value) => value,
|
|
Err(e) => {
|
|
if $condition {
|
|
continue;
|
|
} else {
|
|
return Err(e);
|
|
}
|
|
}
|
|
}
|
|
}};
|
|
}
|