← Back to Pull requests

[SPARK-60338][SQL] Insert Variant canonicalization into aggregation and repartitioning plans #60634

Open
SavicStefan opened this pull request with 2066 lines diff across 13 files
View on GitHub
SavicStefan SavicStefan commented on Nov 17, 2026 20:27 UTC
Author

What changes were proposed in this pull request?


<!--
Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue.
If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.
1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
2. If you fix some SQL features, you can provide some references of other DBMSes.
3. If there is design documentation, please add the link.
4. If there is a discussion in the mailing list, please add the link.
-->

This PR adds the optimizer rules InsertVariantCanonicalizationInAggregate and InsertVariantCanonicalizationInRepartitionExpressions, modeled on the existing MapSort rules. They wrap Variant values in the internal CanonicalizeVariant expression so logically equal Variants have identical bytes before aggregation and partitioning.

The aggregate rule:

  • runs after PullOutGroupingExpressions, so grouping keys are attributes or literals

  • canonicalizes Variant grouping keys in a projection below the aggregate and groups on the canonicalized attribute, preserving the output column names

  • canonicalizes arguments of distinct aggregates such as COUNT(DISTINCT v), reusing the grouping alias when the argument is also a grouping key

  • updates the references above the aggregate to the new output attributes
  • The repartition rule canonicalizes Variant keys of DISTRIBUTE BY / repartition in place, including the child of range partitioning sort orders.

    The rules run in a new batch right after "Replace Operators", so the aggregates created for DISTINCT and deduplication are covered too.

    The analyzer checks that currently reject Variant in GROUP BY, DISTINCT and DISTRIBUTE BY are unchanged.

    Implement optimizer rules, modeled on InsertMapSortInAggregate and NormalizeFloatingNumbers, that wrap Variant values in CanonicalizeVariant wherever they are compared or hashed, so logically equal Variants have identical bytes at the point of comparison:

  • Equality predicates (=, <=>, IN, INSET), the array functions that compare elements, and hash expressions, including comparisons inside lambdas and conditional branches. This covers join conditions, including the joins created for INTERSECT, EXCEPT and IN / EXISTS subqueries.

  • Aggregate functions that compare their inputs: collect_set, collect_union, mode, approx_count_distinct, also as window functions and with FILTER.

  • Grouping keys and DISTINCT aggregate arguments, keeping the aggregate output attributes stable. This covers DISTINCT, UNION DISTINCT, dropDuplicates, INTERSECT ALL and EXCEPT ALL.

  • Repartition and rebalance keys, and streaming deduplication keys.
  • Guarded by spark.sql.optimizer.insertVariantCanonicalization.enabled.

    Not in scope of this PR, window partition and order keys, typed / R / Python grouping, pivot and bucketing, will be added in the follow up.

    Why are the changes needed?


    <!--
    Please clarify why the changes are needed. For instance,
    1. If you propose a new API, clarify the use case for a new API.
    2. If you fix a bug, you can clarify why it is a bug.
    -->

    Logically equal Variant values can have different binary encodings, and hash aggregation and hash partitioning compare the raw bytes. Canonicalizing the keys in the plan before the aggregate or exchange is what makes GROUP BY, DISTINCT and DISTRIBUTE BY on Variant produce correct groups.
    The same approach is already used for maps with MapSort.

    Does this PR introduce _any_ user-facing change?


    <!--
    Note that it means any user-facing change including all aspects such as new features, bug fixes, or other behavior changes. Documentation-only updates are not considered user-facing changes.

    If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
    If possible, please also clarify if this is a user-facing change compared to the released Spark versions or within the unreleased branches such as master.
    If no, write 'No'.
    -->

    No.

    How was this patch tested?


    <!--
    If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
    If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
    If tests were not added, please describe why they were not added and/or why it was difficult to add.
    If benchmark tests were added, please run the benchmarks in GitHub Actions for the consistent environment, and the instructions could accord to: https://spark.apache.org/developer-tools.html#github-workflow-benchmarks.
    -->

    It was tested using new tests, that assert the resulting plan shape of the logical plans, because the analyzer still rejects Variant in these operations.

    Was this patch authored or co-authored using generative AI tooling?


    <!--
    If generative AI tooling has been used in the process of authoring this patch, please include the
    phrase: 'Generated-by: ' followed by the name of the tool and its version.
    If no, write 'No'.
    Please refer to the ASF Generative Tooling Guidance for details.
    -->

    Generated-by: Claude Code

    Diff: 2066 lines (+2066 / -0) across 13 files Reviewer: harshmotw-db Review duration: 26640m
    All Vouch review confidence checks passed
    Residual risk 0.04 = Change Risk (0.61) × (1 − Review Confidence (0.94)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.61 · 2066 lines diff across 13 files
    0.61
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.96 · 5 substantive comment(s)
    0.96
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    93%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.400
    Real PR Conversation Timeline
    13 items
    harshmotw-db harshmotw-db commented on Nov 20, 2026 22:19 UTC
    Reviewer

    Took a very high level look and I have a few comments:
    1. New optimizer rules must be guarded behind a flag.
    2. I don't see any reference to collect_set, union, intersection, union all, except, dropduplicates etc anywhere. Would your optimization work on these situations automatically? Can we add tests for these? Can you use a strong AI agent to figure out some other scenarios where equality is referenced?
    3. I'm not sure but I think the tests just contain count distinct but no regular distinct?
    4. I think we currently don't allow GROUP BY VARIANT in a SQL query right now. It might fail during analysis or optimization. Your PR doesn't change the end-to-end behavior yet right?

    andylam-db andylam-db commented on code on Nov 20, 2026 22:31 UTC
    Code Review
    sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/InsertVariantCanonicalization.scala:1
    @@ -0,0 +1,230 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.sql.catalyst.optimizer
    +
    +import scala.collection.immutable.VectorMap
    +import scala.collection.mutable
    +
    +import org.apache.spark.sql.catalyst.expressions.{Alias, ArrayTransform, Attribute, CreateNamedStruct, Expression, GetStructField, If, IsNull, LambdaFunction, Literal, NamedExpression, NamedLambdaVariable, SortOrder, TransformValues}
    +import org.apache.spark.sql.catalyst.expressions.aggregate.{AggregateExpression, AggregateFunction}
    +import org.apache.spark.sql.catalyst.expressions.variant.CanonicalizeVariant
    +import org.apache.spark.sql.catalyst.plans.logical.{Aggregate, LogicalPlan, Project, RepartitionByExpression}
    +import org.apache.spark.sql.catalyst.rules.Rule
    +import org.apache.spark.sql.catalyst.trees.TreePattern.{AGGREGATE, REPARTITION_OPERATION}
    +import org.apache.spark.sql.types.{ArrayType, MapType, StructType, VariantType}
    +import org.apache.spark.util.ArrayImplicits.SparkArrayOps
    +
    +/**
    + * Adds [[CanonicalizeVariant]] to grouping expressions and distinct aggregate arguments that
    + * contain Variant values, ensuring logically equal Variants have identical bytes before
    + * aggregation:
    + *
    + * SELECT variant_column, COUNT(*) FROM TABLE GROUP BY variant_column =>
    + * SELECT _groupingvariantcanonicalization AS variant_column, COUNT(*) FROM (
    + *   SELECT canonicalize_variant(variant_column) AS _groupingvariantcanonicalization FROM TABLE
    + * ) GROUP BY _groupingvariantcanonicalization
    + *
    + * SELECT COUNT(DISTINCT variant_column) FROM TABLE =>
    + * SELECT COUNT(DISTINCT _distinctvariantcanonicalization) FROM (
    + *   SELECT canonicalize_variant(variant_column) AS _distinctvariantcanonicalization FROM TABLE
    + * )
    + *
    + * This rule runs after [[PullOutGroupingExpressions]], so grouping keys are attributes or
    + * literals. Distinct arguments are normalized here instead of in [[RewriteDistinctAggregates]]
    + * because a single distinct group without a filter bypasses that rule and is handled by the
    + * physical planner.
    + */
    +object InsertVariantCanonicalizationInAggregate extends Rule[LogicalPlan] {

    Consider this query once GROUP BY accepts Variant keys:

    SELECT schema_of_variant_agg(v)
    FROM (
      SELECT CAST(CAST(id AS DECIMAL(10, 1)) AS VARIANT) AS v
      FROM range(1, 3)
    )
    GROUP BY v;
    

    The input contains decimal Variants for 1.0 and 2.0. Each gets its own group. The existing aggregate would report a DECIMAL schema for each group. But CanonicalizeVariant converts these integer-valued decimals to longs, so if the aggregate reads the canonicalized values, it reports BIGINT for both groups. The grouping is correct and the returned schemas are wrong.

    andylam-db andylam-db commented on code on Nov 20, 2026 22:36 UTC
    Code Review
    sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala:1
    @@ -234,6 +234,11 @@ abstract class Optimizer(catalogManager: CatalogManager)
           ReplaceExceptWithFilter,
           ReplaceExceptWithAntiJoin,
           ReplaceDistinctWithAggregate),
    +    // This batch must run after "Replace Operators", as that one turns Distinct and Deduplicate
    +    // into Aggregate.
    +    Batch("Insert Variant Canonicalization", FixedPoint(1),
    +      InsertVariantCanonicalizationInAggregate,
    +      InsertVariantCanonicalizationInRepartitionExpressions),

    Another problem with this rewrite;

    Consider COUNT(DISTINCT v) FILTER (WHERE false), where v is a constant, valid Variant. Some valid Variants share storage internally. Rebuilding one into its canonical encoding can expand it past Spark’s size limit.

    • Base Spark removes the always-false aggregate and returns 0.
    • With the PR, the optimizer puts CanonicalizeVariant(v) in a separate projection below the aggregate. Constant folding evaluates that projection before Spark removes the always-false aggregate, so it can throw VARIANT_CONSTRUCTOR_SIZE_LIMIT.

    andylam-db andylam-db commented on Nov 20, 2026 22:37 UTC
    Contributor

    Your PR doesn't change the end-to-end behavior

    Seems like it would. The rules are plugged in the optimizer without a config/

    harshmotw-db harshmotw-db commented on Nov 20, 2026 22:40 UTC
    Contributor

    @andylam-db What I meant was that I think we block variants being used as grouping keys and in distinct etc elsewhere. So even after this optimization is applied, an end-to-end query might still fail just like before.

    harshmotw-db harshmotw-db commented on code on Nov 20, 2026 22:46 UTC
    Code Review
    sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala:1
    @@ -234,6 +234,11 @@ abstract class Optimizer(catalogManager: CatalogManager)
           ReplaceExceptWithFilter,
           ReplaceExceptWithAntiJoin,
           ReplaceDistinctWithAggregate),
    +    // This batch must run after "Replace Operators", as that one turns Distinct and Deduplicate
    +    // into Aggregate.
    +    Batch("Insert Variant Canonicalization", FixedPoint(1),
    +      InsertVariantCanonicalizationInAggregate,
    +      InsertVariantCanonicalizationInRepartitionExpressions),

    Oh this is tricky. Do you know of an alternative that would fix this? If the project is evaluated earlier, we also have a problem where if canonicalize fails on a row but if that row were inactive anyway, we would end up failing the query.

    I personally would be okay with the current approach because I would really doubt that the SQL spec guarantees an order of operations here. I'll leave it up to you

    harshmotw-db harshmotw-db commented on code on Nov 20, 2026 22:51 UTC
    Code Review
    sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/InsertVariantCanonicalization.scala:1
    @@ -0,0 +1,230 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.sql.catalyst.optimizer
    +
    +import scala.collection.immutable.VectorMap
    +import scala.collection.mutable
    +
    +import org.apache.spark.sql.catalyst.expressions.{Alias, ArrayTransform, Attribute, CreateNamedStruct, Expression, GetStructField, If, IsNull, LambdaFunction, Literal, NamedExpression, NamedLambdaVariable, SortOrder, TransformValues}
    +import org.apache.spark.sql.catalyst.expressions.aggregate.{AggregateExpression, AggregateFunction}
    +import org.apache.spark.sql.catalyst.expressions.variant.CanonicalizeVariant
    +import org.apache.spark.sql.catalyst.plans.logical.{Aggregate, LogicalPlan, Project, RepartitionByExpression}
    +import org.apache.spark.sql.catalyst.rules.Rule
    +import org.apache.spark.sql.catalyst.trees.TreePattern.{AGGREGATE, REPARTITION_OPERATION}
    +import org.apache.spark.sql.types.{ArrayType, MapType, StructType, VariantType}
    +import org.apache.spark.util.ArrayImplicits.SparkArrayOps
    +
    +/**
    + * Adds [[CanonicalizeVariant]] to grouping expressions and distinct aggregate arguments that
    + * contain Variant values, ensuring logically equal Variants have identical bytes before
    + * aggregation:
    + *
    + * SELECT variant_column, COUNT(*) FROM TABLE GROUP BY variant_column =>
    + * SELECT _groupingvariantcanonicalization AS variant_column, COUNT(*) FROM (
    + *   SELECT canonicalize_variant(variant_column) AS _groupingvariantcanonicalization FROM TABLE
    + * ) GROUP BY _groupingvariantcanonicalization
    + *
    + * SELECT COUNT(DISTINCT variant_column) FROM TABLE =>
    + * SELECT COUNT(DISTINCT _distinctvariantcanonicalization) FROM (
    + *   SELECT canonicalize_variant(variant_column) AS _distinctvariantcanonicalization FROM TABLE
    + * )
    + *
    + * This rule runs after [[PullOutGroupingExpressions]], so grouping keys are attributes or
    + * literals. Distinct arguments are normalized here instead of in [[RewriteDistinctAggregates]]
    + * because a single distinct group without a filter bypasses that rule and is handled by the
    + * physical planner.
    + */
    +object InsertVariantCanonicalizationInAggregate extends Rule[LogicalPlan] {

    Currently, the query would fail because we don't allow group by v :)

    But yes, canonicalization can change the schema_of_variant output. However, I think that is fine. According to the variant spec, decimal and integer types both fall into the exact numeric equivalence class and so I think they may be transformed into each other.

    @gene-db What do you think?

    SavicStefan SavicStefan commented on Dec 03, 2026 08:53 UTC
    Author

    Took a very high level look and I have a few comments:

    > 1. New optimizer rules must be guarded behind a flag.

    The rules are now guarded by spark.sql.optimizer.insertVariantCanonicalization.enabled.

    2. I don't see any reference to collect_set, union, intersection, union all, except, dropduplicates etc anywhere. Would your optimization work on these situations automatically? Can we add tests for these? Can you use a strong AI agent to figure out some other scenarios where equality is referenced?

    Yes, they are covered now, I left out just thre Window keys, typed / R / Python grouping, pivot and bucketing, they will be done in the follow up.

    3. I'm not sure but I think the tests just contain count distinct but no regular distinct?

    Yes, plain DISTINCT is tested: see "canonicalize the aggregates created for DISTINCT, deduplication and set operations"

    4. I think we currently don't allow GROUP BY VARIANT in a SQL query right now. It might fail during analysis or optimization. Your PR doesn't change the end-to-end behavior yet right?

    Yeah, I plan to enable it in the next one, to not make such a buge change and to have it well tested.

    SavicStefan SavicStefan commented on code on Dec 03, 2026 15:28 UTC
    Code Review
    sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/InsertVariantCanonicalization.scala:1
    @@ -0,0 +1,230 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.sql.catalyst.optimizer
    +
    +import scala.collection.immutable.VectorMap
    +import scala.collection.mutable
    +
    +import org.apache.spark.sql.catalyst.expressions.{Alias, ArrayTransform, Attribute, CreateNamedStruct, Expression, GetStructField, If, IsNull, LambdaFunction, Literal, NamedExpression, NamedLambdaVariable, SortOrder, TransformValues}
    +import org.apache.spark.sql.catalyst.expressions.aggregate.{AggregateExpression, AggregateFunction}
    +import org.apache.spark.sql.catalyst.expressions.variant.CanonicalizeVariant
    +import org.apache.spark.sql.catalyst.plans.logical.{Aggregate, LogicalPlan, Project, RepartitionByExpression}
    +import org.apache.spark.sql.catalyst.rules.Rule
    +import org.apache.spark.sql.catalyst.trees.TreePattern.{AGGREGATE, REPARTITION_OPERATION}
    +import org.apache.spark.sql.types.{ArrayType, MapType, StructType, VariantType}
    +import org.apache.spark.util.ArrayImplicits.SparkArrayOps
    +
    +/**
    + * Adds [[CanonicalizeVariant]] to grouping expressions and distinct aggregate arguments that
    + * contain Variant values, ensuring logically equal Variants have identical bytes before
    + * aggregation:
    + *
    + * SELECT variant_column, COUNT(*) FROM TABLE GROUP BY variant_column =>
    + * SELECT _groupingvariantcanonicalization AS variant_column, COUNT(*) FROM (
    + *   SELECT canonicalize_variant(variant_column) AS _groupingvariantcanonicalization FROM TABLE
    + * ) GROUP BY _groupingvariantcanonicalization
    + *
    + * SELECT COUNT(DISTINCT variant_column) FROM TABLE =>
    + * SELECT COUNT(DISTINCT _distinctvariantcanonicalization) FROM (
    + *   SELECT canonicalize_variant(variant_column) AS _distinctvariantcanonicalization FROM TABLE
    + * )
    + *
    + * This rule runs after [[PullOutGroupingExpressions]], so grouping keys are attributes or
    + * literals. Distinct arguments are normalized here instead of in [[RewriteDistinctAggregates]]
    + * because a single distinct group without a filter bypasses that rule and is handled by the
    + * physical planner.
    + */
    +object InsertVariantCanonicalizationInAggregate extends Rule[LogicalPlan] {

    In the follow up, I will enable this for the group by, because of the testing, we need to test it properly.

    Consider this query once GROUP BY accepts Variant keys:

    >
    > SELECT schema_of_variant_agg(v)
    > FROM (
    >   SELECT CAST(CAST(id AS DECIMAL(10, 1)) AS VARIANT) AS v
    >   FROM range(1, 3)
    > )
    > GROUP BY v;
    > 

    > The input contains decimal Variants for 1.0 and 2.0. Each gets its own group. The existing aggregate would report a DECIMAL schema for each group. But CanonicalizeVariant converts these integer-valued decimals to longs, so if the aggregate reads the canonicalized values, it reports BIGINT for both groups. The grouping is correct and the returned schemas are wrong.

    About this, you were right about that, because previsouly it replaced the grouping key everywhere,
    also inside aggregate functions, I fixed that now, so the canonical value is now used only for grouping, and aggregate functions keep reading the original column, so schema_of_variant_agg(v) reports DECIMAL for your case. Added also a tests for this.

    SavicStefan SavicStefan commented on code on Dec 03, 2026 15:39 UTC
    Code Review
    sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala:1
    @@ -234,6 +234,11 @@ abstract class Optimizer(catalogManager: CatalogManager)
           ReplaceExceptWithFilter,
           ReplaceExceptWithAntiJoin,
           ReplaceDistinctWithAggregate),
    +    // This batch must run after "Replace Operators", as that one turns Distinct and Deduplicate
    +    // into Aggregate.
    +    Batch("Insert Variant Canonicalization", FixedPoint(1),
    +      InsertVariantCanonicalizationInAggregate,
    +      InsertVariantCanonicalizationInRepartitionExpressions),

    I fixed this now the aggregate rule now runs after operator optimization, so the always-false aggregate is already replaced by 0 and nothing is canonicalized, the plan is the same with the flag on and off. For other
    filters, rows the filter excludes are not canonicalized either, except when the filter is nondeterministic.

    SavicStefan SavicStefan commented on Dec 03, 2026 15:39 UTC
    Author

    Seems like it would. The rules are plugged in the optimizer without a config/

    Added a config.

    SavicStefan SavicStefan commented on Dec 03, 2026 15:40 UTC
    Author

    @andylam-db What I meant was that I think we block variants being used as grouping keys and in distinct etc elsewhere. So even after this optimization is applied, an end-to-end query might still fail just like before.

    yeah, I will enable them in the follow up PR, rihgt now, they are disabled and we have a config like @andylam-db suggested. Thanks.

    Reviewers
    Assignees
    SavicStefan SavicStefan
    Labels
    risk: low confidence: 93.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 60.6% (MEDIUM) · Higher = larger blast radius
    60.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 93.6% · Lower = rushed or shallow review
    93.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 3.9% · Safe to merge
    3.9%
    Repository