fix(promql): retain deterministic set matching labels

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
This commit is contained in:
discord9
2026-10-12 18:15:43 +08:00
parent 29e448813f
commit a53d4471a7
+2 -6
View File
@@ -737,13 +737,9 @@ impl PromPlanner {
// The marked identity is not a label the default matching compares, and the whole set
// operation keeps the left operand's columns and its identity.
let left_tag_col_set =
Self::matching_tag_columns(&left_context, modifier, metric_name.as_deref())
.into_iter()
.collect::<HashSet<_>>();
Self::matching_tag_columns(&left_context, modifier, metric_name.as_deref());
let right_tag_col_set =
Self::matching_tag_columns(&right_context, modifier, metric_name.as_deref())
.into_iter()
.collect::<HashSet<_>>();
Self::matching_tag_columns(&right_context, modifier, metric_name.as_deref());
ensure!(
left_tag_col_set == right_tag_col_set,
CombineTableColumnMismatchSnafu {