Skip to content

Commit

Permalink
feat: 修复 influxdb condition 为空的问题 #1010158081115227725 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamcleren authored Nov 21, 2023
1 parent 9ce11de commit 1dca899
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/unify-query/query/structured/condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ func ConvertToPromBuffer(totalBuffer [][]ConditionField) [][]promql.ConditionFie
},
)
}
promBuffer = append(promBuffer, fieldList)
if len(fieldList) > 0 {
promBuffer = append(promBuffer, fieldList)
}
}
return promBuffer
}
Expand Down

0 comments on commit 1dca899

Please sign in to comment.