mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-28 05:34:02 +00:00
style(promql): wrap the ranking admission predicate
Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
@@ -600,8 +600,10 @@ impl PromPlanner {
|
||||
if ranked && selectors.len() != 1 {
|
||||
return Ok(None);
|
||||
}
|
||||
let per_partition =
|
||||
!ranked && (!reads_across_series(root) || pointwise_operand(root) || independent_scan_pair(root));
|
||||
let per_partition = !ranked
|
||||
&& (!reads_across_series(root)
|
||||
|| pointwise_operand(root)
|
||||
|| independent_scan_pair(root));
|
||||
if ranked {
|
||||
let output_schema = fused_output_schema(&ranked_fields, &tags, &time)?;
|
||||
let Some(raw_input) = children.into_iter().next() else {
|
||||
|
||||
Reference in New Issue
Block a user