mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-17 08:14:56 +00:00
test(promql): correct distinct-input arithmetic expectations
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
This commit is contained in:
@@ -4983,7 +4983,7 @@ fn runtime_input_ids_route_repeated_and_distinct_source_indexes() {
|
||||
}
|
||||
assert_eq!(
|
||||
addressed(&run(&mut execution)),
|
||||
vec![(0, vec![Some(6.0); 2])]
|
||||
vec![(0, vec![Some(9.0); 2])]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -9521,7 +9521,7 @@ fn an_ended_execution_keeps_no_input_schema_or_grid() {
|
||||
/// refusal is not a stop: what the execution holds is the answer the caller has not pulled yet.
|
||||
#[test]
|
||||
fn a_chunk_pushed_after_the_input_ended_is_refused() {
|
||||
let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 4);
|
||||
let (tree, grid, _, _) = binary_tree(BinaryOp::Add, 4);
|
||||
let schema = evaluated_schema(Arc::clone(&grid));
|
||||
let pool = bounded_pool(1 << 22);
|
||||
let mut execution = executor(&tree, Arc::clone(&pool));
|
||||
|
||||
@@ -343,13 +343,9 @@ fn two_selectors_are_summed_from_two_inputs() {
|
||||
);
|
||||
}
|
||||
|
||||
/// `a / on(job) b` matches on `job` alone, so two series that differ in `instance` pair up. The same
|
||||
/// inputs through `a / b` — the default matching, which matches on every label but `__name__` — pair
|
||||
/// nothing, and that difference is what proves the `on` list reached the kernel.
|
||||
|
||||
#[test]
|
||||
fn noncommutative_vector_operations_keep_left_right_values() {
|
||||
for (query, expected) in [("a / on() b", 0.5), ("a - on() b", -1.0)] {
|
||||
for (query, expected) in [("a / on() b", 0.5), ("a - on() b", -2.0)] {
|
||||
let compiled = compile(query);
|
||||
let chunks = run(
|
||||
&compiled,
|
||||
|
||||
Reference in New Issue
Block a user