Skip to content

Commit 79dd900

Browse files
feat: add time partition related changes (#1405)
create stream with custom time partition use header - X-P-Time-Partition: <field-name> - this has to be a timestamp field X-P-Time-Partition-Limit: max historical range default to 30d server validates if all events in the batch has this time partition field if false, it rejects the whole batch
1 parent 08bece6 commit 79dd900

File tree

18 files changed

+967
-418
lines changed

18 files changed

+967
-418
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ clokwerk = "0.4"
123123
derive_more = { version = "1", features = ["full"] }
124124
itertools = "0.14"
125125
once_cell = "1.20"
126+
rayon = "1.8"
126127
rand = "0.8.5"
127128
regex = "1.7.3"
128129
reqwest = { version = "0.11.27", default-features = false, features = [

src/alerts/alerts_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async fn execute_local_query(
107107
filter_tag: None,
108108
};
109109

110-
let (records, _) = execute(query, &tables[0], false)
110+
let (records, _) = execute(query, false)
111111
.await
112112
.map_err(|err| AlertError::CustomError(format!("Failed to execute query: {err}")))?;
113113

0 commit comments

Comments
 (0)