mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-23 06:30:05 +00:00
refactor(pipeline)!: change dispatch table name format (#6901)
* chore(breaking): change dispatch table name format * chore: fix test
This commit is contained in:
@@ -218,7 +218,7 @@ impl From<&Rule> for DispatchedTo {
|
||||
impl DispatchedTo {
|
||||
/// Generate destination table name from input
|
||||
pub fn dispatched_to_table_name(&self, original: &str) -> String {
|
||||
format!("{}_{}", &original, self.table_suffix)
|
||||
[original, &self.table_suffix].concat()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2517,12 +2517,12 @@ dispatcher:
|
||||
field: type
|
||||
rules:
|
||||
- value: http
|
||||
table_suffix: http
|
||||
table_suffix: _http
|
||||
pipeline: http
|
||||
- value: db
|
||||
table_suffix: db
|
||||
table_suffix: _db
|
||||
- value: not_found
|
||||
table_suffix: not_found
|
||||
table_suffix: _not_found
|
||||
pipeline: not_found
|
||||
|
||||
transform:
|
||||
|
||||
Reference in New Issue
Block a user