mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-24 17:00:37 +00:00
feat!: Remove script crate and python feature (#5321)
* feat: exclude script crate * chore: simplify feature * feat: remove the script crate * chore: remove python feature and some comments * chore: fix warning
This commit is contained in:
@@ -2037,18 +2037,19 @@ mod test {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_find_successive_runs() {
|
||||
impl From<(i32, i32, Option<i32>, Option<i32>)> for SucRun<i32> {
|
||||
fn from((offset, len, min_val, max_val): (i32, i32, Option<i32>, Option<i32>)) -> Self {
|
||||
Self {
|
||||
offset: offset as usize,
|
||||
len: len as usize,
|
||||
first_val: min_val,
|
||||
last_val: max_val,
|
||||
}
|
||||
impl From<(i32, i32, Option<i32>, Option<i32>)> for SucRun<i32> {
|
||||
fn from((offset, len, min_val, max_val): (i32, i32, Option<i32>, Option<i32>)) -> Self {
|
||||
Self {
|
||||
offset: offset as usize,
|
||||
len: len as usize,
|
||||
first_val: min_val,
|
||||
last_val: max_val,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_find_successive_runs() {
|
||||
let testcases = vec![
|
||||
(
|
||||
vec![Some(1), Some(1), Some(2), Some(1), Some(3)],
|
||||
|
||||
Reference in New Issue
Block a user