mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-14 06:46:56 +00:00
fix(promql): preserve partial prefix rejection diagnostic
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
This commit is contained in:
@@ -221,9 +221,14 @@ impl FusedSeries {
|
||||
op: BoundAggregate,
|
||||
) -> DataFusionResult<Self> {
|
||||
validate_binding(&tree, &binding, children.len())?;
|
||||
if children.len() != 1 || reads_across_series(tree.root()) {
|
||||
if children.len() != 1 {
|
||||
return Err(DataFusionError::Plan(
|
||||
"FusedSeries partial fold requires one raw child and a per-partition prefix".into(),
|
||||
"FusedSeries partial fold requires one raw child".into(),
|
||||
));
|
||||
}
|
||||
if reads_across_series(tree.root()) {
|
||||
return Err(DataFusionError::Plan(
|
||||
"FusedSeries partial fold prefix reads across series".into(),
|
||||
));
|
||||
}
|
||||
aggregate_op(&op)?;
|
||||
|
||||
Reference in New Issue
Block a user