Repository navigation
Build the deferred set of a column default that contains IN <table> - #119664
alexey-milovidov wants to merge 72 commits into
Conversation
A column definition whose expression is a bare `IN <table>` membership test - `flag UInt8 ALIAS p IN keys`, or the same with `DEFAULT` / `MATERIALIZED` - is accepted at CREATE time, because a bare table identifier is not a subquery node and so passes the validation that rejects subqueries in column defaults. The set for the expanded `in` was registered in the prepared sets, but nothing ever built it, so at pure default settings every consumer of the definition threw `Not-ready Set is passed as the second argument for function 'in'` (`LOGICAL_ERROR`), and a mutation referencing the column was accepted and then wedged in a permanent retry loop. Two places never built it: - `createComputeAliasColumnsStep` assembles the `Compute alias columns` expression step from the actions `CollectSourceColumnsVisitor` produced when it expanded the column, but it never reported the sets those actions carry. `addBuildSubqueriesForSetsStepIfNeeded` gives a `CreatingSet` step only to the sets reported as useful, so the set of an `ALIAS` column was dropped from the plan. Report them. The analysis-time half of the same gap was closed by aa6140a (`Register sets of ALIAS expressions at expansion time`), which stopped `No set is registered for key`; this is the build-time half. This covers `SELECT flag FROM t` and `SELECT ... WHERE flag`, and - less obviously - the mutation: `isStorageTouchedByMutations` runs a plain `SELECT count() ... WHERE <predicate>` over the part, which expands the `ALIAS` column through the very same step. The direct spelling `WHERE p IN keys` builds no alias-column step, which is why it worked all along. - `createExpressionsAnalyzer` in `inplaceBlockConversions` builds actions that are executed as a standalone `ExpressionActions` over a block. There is no query plan there, so no `CreatingSet` step can ever build the set. Build the deferred sets in place instead, with the new `buildPreparedSetsInplace`, which plans each set subquery the way `addBuildSubqueriesForSetsStepIfNeeded` does and then fills it through `FutureSetFromSubquery::buildSetInplace`. This covers `INSERT` into a table with `f UInt8 DEFAULT p IN keys` or the `MATERIALIZED` variant, and reading a part in which such a column is missing. The call has to come after the actions are built: planning a set subquery assigns unique aliases to the table expressions it reads, and that table expression node is the very `IN` right-hand side whose tree hash the set is keyed by, so building first makes the later lookup fail with `No set is registered for key`. A `Set` engine table on the right-hand side is a ready set rather than a deferred one and worked all along; new test `05210_column_default_in_table_set` keeps that covered, and also asserts that an explicit subquery in a column default stays rejected at CREATE time. Closes: #117276 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Workflow [PR], commit [dea32a4] Summary: ❌
AI ReviewSummaryThe PR builds deferred sets for column Findings❌ Blockers
Final VerdictStatus: ❌ Block Preserve table filters and function restrictions for default-set queries, with focused regressions for the reproduced cases. |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes242 object files changed (+264.58 KiB total), 0 added.
716 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units1440 translation units recompiled, 7657 s compile time in total, 1440 of them have a recent master baseline. |
|
📊 Cloud Performance Report ✅ AI verdict: This PR builds the sets for clickbenchFlagged queries (7 of 43)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 No significant changes Debug info
|
…ault
The flaky check of `05210_column_default_in_table_set` failed on the `INSERT` into the table with
`f UInt8 DEFAULT p IN keys`, with `Unexpected packet from server (expected Data, Exception, Log or
TimezoneUpdate, got Progress)` (`UNEXPECTED_PACKET_FROM_SERVER`) - 1 run in 50 on `amd_binary`,
`amd_debug` and `amd_asan_ubsan` alike.
The set of the column default is built in place while the `INSERT` is being prepared, at a point
where the client is still waiting in `receiveSampleBlock` for the header of the table it is about to
upload into. `FutureSetFromSubquery::buildSetInplace` gives the executor of the set subquery the
interactive cancellation callback of the query, and that callback sends the client an interactive
update - a `Progress` packet among the rest - on every tick of `interactive_delay`, floored at 100
ms. A set that takes longer than one tick to build therefore writes a `Progress` into the connection
at a point where neither of the two states the client can be in - waiting for the `INSERT` header, or
uploading its data - accepts one. Hence the timing dependence: a build under the tick is invisible.
Turn the interactive cancellation off for the in-place builds that run from a block conversion, with
the new `allow_interactive_cancel` argument of `buildSetInplace`. The default stays on, so the
ordinary set builds - primary key analysis and the like, which run while the client does expect
progress - are unchanged.
Reproduced deterministically with a set large enough to take longer than one tick, on a server
without the fix:
CREATE TABLE bigkeys (p UInt64) ENGINE = MergeTree ORDER BY p;
INSERT INTO bigkeys SELECT number FROM numbers(20000000);
CREATE TABLE tdef (p UInt64, f UInt8 DEFAULT p IN bigkeys) ENGINE = MergeTree ORDER BY p;
INSERT INTO tdef (p) VALUES (1), (2); -- UNEXPECTED_PACKET_FROM_SERVER, every time
`05210_column_default_in_table_set` now pins `async_insert = 0`: an asynchronous insert answers the
client before the block is converted, so it never reaches this path, and the randomization of the
setting would silently drop the coverage.
Also close the same gap on the old-analyzer half of `performRequiredConversions`, which the review of
the pull request pointed out: `createExpressions` registers the set of the column default without
ever filling it, and `FunctionIn` would report `Not-ready Set is passed as the second argument for
function 'in'` there too. The set registered by `ActionsVisitor` already carries its own plan, so it
only has to be filled. There is no test for it: the analyzer is mandatory since v26.9, a query that
asks for the old query analysis is refused with `SETTING_CONSTRAINT_VIOLATION`, and the path is left
only for a query another server sends.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…-column-default Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…, fail closed on an uncreated set Instead of disabling the interactive cancellation of every in-place set build from a column default (which also covers reads of old parts through `evaluateMissingDefaults`, where the client expects cancellation and progress), suppress only the interactive updates in `TCPHandler` while `executeQuery` prepares an `INSERT`: the client is waiting in `receiveSampleBlock` for the table header and accepts neither `Progress` nor `ProfileEvents` there. Cancellation is still polled. The `allow_interactive_cancel` argument of `buildSetInplace` is removed. `FutureSetFromSubquery::buildSetInplace` now throws when the pipeline stopped without creating the set (e.g. `timeout_overflow_mode = 'break'`): `build` consumed `source`, so the set can never be built later and `FunctionIn` would report "Not-ready Set is passed as the second argument". Add a test case for a `DEFAULT ... IN <table>` column added by `ALTER` and read from old parts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ate suppression `buildSetInplace` threw `LIMIT_EXCEEDED` whenever the set was not created, which also broke its other callers that tolerate an uncreated set, such as index analysis through `buildSetsForDAGExcludingGlobalIn` (`02844_subquery_timeout_with_break`). Check the set only in `buildPreparedSetsInplace`, which is the path for column defaults. `TCPHandler` suppressed interactive updates during `executeQuery` whenever the context had an insertion table, which includes `CREATE ... AS SELECT`, whose whole `INSERT` runs inside `executeQuery` while the client expects progress (`03629_create_or_replace_as_select_with_progress_tcp`). Suppress them only for `INSERT` queries. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119664&sha=9e37a8a395e1ae476ceee5a7ce77a93409af7ff2&name_0=PR&name_1=Fast%20test PR: #119664 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The targeted AST fuzzer fuzzed the queries of `05075` and ran mutations over the `ALIAS p IN t_prune_in_table_keys` column, which hit the `Not-ready Set` exception of #117276 (STID: 0250-4e52) when they execute. Its fix, #119664, is separate. Make the test a `.sh` one, since the targeted fuzzer takes only `.sql` files, and pass `ast_fuzzer_runs = 0` to disable the server-side fuzzer. The queries and the reference are unchanged. CI: https://github.com/ClickHouse/ClickHouse/actions/runs/37213398607/job/111474365208 PR: #117272 Co-Authored-By: Claude Opus 5.5 <[email protected]>
A skip index over an `ALIAS` column whose expression is `p IN <table>` evaluated the expanded `in` with a set that nothing ever built, so an `INSERT` threw `Not-ready Set is passed as the second argument for function 'in'`. The AST fuzzer reached it through the implicit min-max index created by `add_minmax_index_for_numeric_columns`. Key and index expressions already reject `IN <table>` written directly, but the check ran before the `ALIAS` expansion. Check the expanded index expression too, and do not create an implicit min-max index for an `ALIAS` column whose expanded expression would be rejected. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119664&sha=e2da9a01391a4e62b2c871cc435951491f6b16c6&name_0=PR&name_1=AST%20fuzzer%20%28amd_debug%2C%20targeted%29 PR: #119664 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reading old parts evaluates a missing `DEFAULT` with the global context of the storage, which never went through `makeQueryContext` and so has a zero client version. When the set subquery of a `DEFAULT ... IN <table>` became distributed - with parallel replicas enabled in the profile, or for a `Distributed` table on the right-hand side - `RemoteQueryExecutor` threw `Sending a distributed query with unknown (zero) client version`. Fill the initiator version and disable parallel replicas for the default expression, as `ExecuteScalarSubqueriesVisitor` does for the scalar subqueries of a standalone expression. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119664&sha=e2da9a01391a4e62b2c871cc435951491f6b16c6&name_0=PR&name_1=Stateless%20tests%20%28amd_llvm_coverage%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel%29 PR: #119664 Co-Authored-By: Claude Opus 5.5 <[email protected]>
In the private sync CI (`ReplicatedMergeTree` replaced with `SharedMergeTree`), `SYSTEM STOP REPLICATION QUEUES` does not keep the mutations pending, so `DELETE WHERE is_hit` over the `ALIAS ... IN <table>` column executes and hits the `Not-ready Set` exception of #117276 (its fix is #119664). Related: ClickHouse/clickhouse-private#71724 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ts children `ReadFromMerge::convertAndFilterSourceStream` computes the `ALIAS` columns of an underlying table with its own `ExpressionStep`, whose sets `collectSets` registers in the planner context of the child. No `CreatingSet` step was added for them, so an `ALIAS` column over `IN <table>` read through `merge` threw `Not-ready Set is passed as the second argument for function 'in'`. Report the sets of these steps and add a `DelayedCreatingSetsStep` for them to the child plan, planning the set subqueries with the new `planPreparedSetSubqueries`, factored out of `buildPreparedSetsInplace`. Found by the AST fuzzer: `SELECT flag FROM merge(currentDatabase(), '^') ORDER BY x DESC NULLS LAST` https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119664&sha=761fe0ec119978cd5be4b2c412bcf6fcefc83427&name_0=PR&name_1=AST%20fuzzer%20%28amd_debug%2C%20targeted%29 #119664 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the same settings A set of a column default reading a table depends on the settings of the reader (`transform_null_in`, `max_rows_in_set` with `set_overflow_mode = 'break'`, ...), and the readers of one query may have different settings, e.g. the children of a `Merge` table that are views with their own `SETTINGS`. Include the settings in the identity under which the sets are shared, except the ones that only limit the parallelism, which `Merge` sets differently for each child. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-column-default # Conflicts: # src/Interpreters/PreparedSets.h # src/Processors/QueryPlan/SourceStepWithFilter.h # src/Storages/IndicesDescription.h
…ifferent settings Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ding a table `keepReaderSettingsConstraints` returned early without explicit constraints and cleared `readonly` before clamping, so with `allow_executable_tables = 0` and `readonly = 1` the storage value `1` was used for the read of `DEFAULT p IN exec_rhs`, and the script ran. Now the settings of the storage that differ from the reader's are checked with the readonly mode of the reader as well. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… reads A nested `ReadFromMerge` kept its own `alias_sets` and built them for its children, so a set of `f ALIAS p IN keys` was built once per nested `Merge` table, and the children could see different snapshots of `keys`. Now the outer read hands its registry to the nested reads of its child plans which have the same access and settings (`canShareSetsOfExpressions`), and only the outer read builds the sets, in front of the pipelines of all its children. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-column-default Conflict in `src/Processors/QueryPlan/SourceStepWithFilter.h`: keep both the `setDefaultExpressionsSets` method of this branch and `canSkipDataByFilterOn` from master. Co-Authored-By: Claude Fable 5.2 <[email protected]>
… reads at the default settings `canShareSetsOfExpressions` compared `Settings` with `operator==`, which compares the lists of the changed settings, so a default value and the same value assigned explicitly were unequal. A `Merge` read assigns `enable_parallel_replicas = 0` for its children, so a nested `Merge` read never shared the registry of the sets with the outer one unless the query had this setting explicitly, and each nested read built its own set. Compare the effective values with the new `Settings::hasSameValues`. Also compare a nested read with the context the child plan is created with instead of the context of the outer read, so the settings assigned for every child (`enable_parallel_replicas`, `make_distributed_plan`) do not prevent the sharing when parallel replicas are enabled. New test `05843_column_alias_in_table_set_nested_merge_plain_columns`: nested `Merge` tables with plain intermediate columns and no explicit parallel replicas setting. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
🕵 Pushed b3af759 (merged |
|
🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119664&sha=effc38aa8e320fc0331749a271830d36487b4e60&name_0=PR&name_1=Stateless%20tests%20%28arm_asan_ubsan%2C%20targeted%29 and provide a fix in a separate PR. If the fix is already in progress, link it here.
Pushed dc4e04a (merged |
|
Acknowledged. I'm investigating the |
AI review of a later commit does not approve the PR, see the AI Review comment.
|
Fix: #133653 (test-only). The excess bytes were column statistics, not the read: the failing join had |
A default of a column missing in a part is evaluated with the settings of the storage context, except the limits and the settings restricting the access, which are taken from the reading query. Of the latter only `readonly`, `allow_ddl` and `allow_introspection_functions` were taken unconditionally; the other ones kept the value of the reader only when a constraint or the readonly mode pinned it. So `SELECT sum(f) FROM t SETTINGS allow_executable_tables = 0`, where `f` is `DEFAULT p IN exec_rhs`, still read the `Executable` table, while the direct spelling `p IN exec_rhs` threw `SUPPORT_IS_DISABLED`. Take every setting named `allow_*` from the reading query: they say what the query is allowed to do and do not change the meaning of an expression. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…er settings and definers A `Merge` read shares the sets of the `ALIAS` columns only between the children it computes these columns for, which are tables, with its own context. A child that is a view computes them in its own plan, with the settings of the view and on behalf of its `SQL SECURITY DEFINER` user, and a nested `Merge` read under such a view does not share the sets of the outer one (`canShareSetsOfExpressions`). The test pins this down for views with `transform_null_in`, `max_rows_in_set` and different definers, directly over the tables and over nested `Merge` tables. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
🕵 Pushed dea32a4 (merged
The only red check was the review-threads gate in |
| auto default_expressions_settings = storage_context->getSettingsCopy(); | ||
| const auto & reader_settings = settings.read_context->getSettingsRef(); | ||
| for (std::string_view name : getReaderSettingsForDefaultExpressions()) | ||
| default_expressions_settings.set(name, reader_settings.get(name)); | ||
| keepReaderSettingsConstraints(default_expressions_settings, *settings.read_context); | ||
| context_copy->setSettings(default_expressions_settings); |
There was a problem hiding this comment.
[Blocker] Preserve the reader's additional_table_filters for the RHS query
additional_table_filters matches none of the settings copied above, so replacing the reader's settings with the storage settings drops its row restrictions before the new set query is analyzed and executed. This exposes membership in rows excluded by the caller's filter.
Reproduced with this head's Fast-test binary:
CREATE TABLE keys (p UInt8) ENGINE = MergeTree ORDER BY p;
INSERT INTO keys VALUES (1), (2);
CREATE TABLE t (p UInt8) ENGINE = MergeTree ORDER BY p;
INSERT INTO t VALUES (1), (2), (3);
ALTER TABLE t ADD COLUMN f UInt8 DEFAULT p IN keys;
SELECT sum(p IN keys) FROM t
SETTINGS additional_table_filters = {'keys': 'p = 1'}; -- 1
SELECT sum(f) FROM t
SETTINGS additional_table_filters = {'keys': 'p = 1'}; -- 2An ALIAS with the same expression correctly returns 1. The nullable-to-nonnullable conversion path also uses this context: substituting DEFAULT toUInt8(2) IN keys returns 1 despite the same filter, while direct membership returns 0.
Keep the reader's table filters throughout RHS planning/execution and set reuse, and add regressions for both missing columns and nullable conversions.
The measured merge join loads the column statistics of the table on a statistics cache miss, and the compressed bytes of that load count in `ReadCompressedBytes`, which the test compares with a tenth of the compressed size of `s`. The `EXPLAIN PIPELINE` before the join normally warms the statistics cache. A concurrent test that drops a table in an `Ordinary` database empties the server-wide caches in between (`MergeTreeData::dropAllData` calls `Context::clearCaches` for a table without a UUID), so the join loads the statistics again. With the randomized `uniq` statistic (about 408 KB here) and the randomized server codec `ZSTD(1)` (threshold about 326 KB) the oracle prints 0. The read itself is unchanged. Create the table without statistics, so the measured queries count only their column reads. Related: ClickHouse#132720, ClickHouse#119664 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes: #117276
Related: #117272
Related: #117113
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix the
Not-ready Set is passed as the second argument for function 'in'logical error for a column defined asALIAS,DEFAULTorMATERIALIZEDover a bareIN <table>membership test, such asflag UInt8 ALIAS p IN keys. Reading such a column, filtering by it, inserting into its table and mutating through it now compute the set instead of throwing, and a mutation referencing the column no longer wedges in a permanent retry loop.Description
A column definition whose expression is a bare
IN <table>membership test -flag UInt8 ALIAS p IN keys, or the same withDEFAULT/MATERIALIZED- is accepted at CREATE time, because a bare table identifier is not a subquery node and so passesvalidateColumnsDefaults, which rejects the explicitIN (SELECT ...)spelling. The set for the expandedinwas registered in the prepared sets, but nothing ever built it, so every consumer of the definition threw at pure default settings.Two places were missing the build:
createComputeAliasColumnsStepassembles theCompute alias columnsexpression step from the DAG thatCollectSourceColumnsVisitorproduced when it expanded the column, but it never reported the sets that DAG carries.addBuildSubqueriesForSetsStepIfNeededgives aCreatingSetstep only to the sets reported as useful, so anALIAScolumn's set was dropped from the plan and never built. Report them. The analysis-time half of the same gap was closed by aa6140a (Register sets of ALIAS expressions at expansion time), which stoppedNo set is registered for key; this is the build-time half. This coversSELECT flag FROM t,SELECT ... WHERE flag, and - less obviously - the mutation, whoseisStorageTouchedByMutationsruns a plainSELECT count() ... WHERE <predicate>over the part and hit the very same step; the direct spellingWHERE p IN keysbuilds no alias-column step and worked all along.createExpressionsAnalyzerininplaceBlockConversionsbuilds anActionsDAGthat is executed as a standaloneExpressionActionsover a block. There is no query plan there, so noCreatingSetstep can ever build the set. Build the deferred sets in place instead, with the newbuildPreparedSetsInplaceinPlanner/Utils, which plans each set subquery likeaddBuildSubqueriesForSetsStepIfNeededdoes and then fills it throughFutureSetFromSubquery::buildSetInplace. This coversINSERTinto a table withf UInt8 DEFAULT p IN keysor theMATERIALIZEDvariant, and reading a part in which such a column is missing.The call has to come after the actions are built, and
buildPreparedSetsInplacesays so: planning a set subquery assigns unique aliases to the table expressions it reads, and that table expression node is the veryINright-hand side whose tree hash the set is keyed by, so building first makes the laterPlannerActionsVisitorlookup fail withNo set is registered for key. The regular planner path observes the same order for the same reason.A
Mergetable computes theALIAScolumns of each underlying table in that child's own plan (ReadFromMerge::convertAndFilterSourceStream), which had noCreatingSetstep for their sets either. The sets of those expression steps are now registered inReadFromMerge::alias_sets, shared by all children (a later child finds the set registered by an earlier one by its key), planned withplanPreparedSetSubqueries(factored out ofbuildPreparedSetsInplace), and built once for the whole read in front of the united pipeline of the children inReadFromMerge::initializePipeline. So, like the direct spellingp IN keys, the right-hand side is read once per query and every child sees the same snapshot of it.A
Setengine table on the right-hand side is a ready set rather than a deferred one and worked all along; the new test keeps that covered. An explicit subquery in a column default stays rejected at CREATE time.A skip index cannot evaluate such a set either, so
IN <table>that reaches a skip index through anALIAScolumn is now rejected, as the direct spelling already was: an explicit index over such a column fails at CREATE time withBAD_ARGUMENTS, and no implicit min-max index (add_minmax_index_for_numeric_columnsand similar) is created for it. Also, the in-place build for a part read with a missingDEFAULTruns with the storage's global context. It now gets an initiator version and has parallel replicas disabled, the same as the scalar subqueries of a standalone expression, so a set subquery that becomes distributed no longer throwsSending a distributed query with unknown (zero) client version.A
DEFAULTof a column missing in a part is evaluated on behalf of the reading query: with its user's privileges, row policies, query status and set/read limits. A background merge or mutation has no reading query, so such a default that reads a table throwsACCESS_DENIEDthere. It does not read the right-hand side with the storage's full access and store the result in the merged part.Partition pruning: now that a mutation through such a column executes,
ALTER ... DELETE WHERE <alias column>on a partitioned table must not have itsblock_numbersnarrowed to the submission-time contents of the set, or rows in a partition that matches only the execution-time contents escape the mutation (#117113). This PR includes the guard of #117272:getPartitionIdsPrunedByPredicatefollows an identifier into itsALIAS/EPHEMERALdefinition and treats a bare table identifier on the right ofINas a deferred set, leaving such a mutation unpruned.The rejection of a skip index over such an
ALIAScolumn applies only to new definitions (CREATE,ALTER ADD INDEX, anALTERthat makes an existing index read a table). A definition accepted before this change, e.g. with aSettable on the right-hand side, still loads.Tested locally against a release build: the four reproducers from the issue (
SELECT ... WHERE flag,SELECT flag,INSERTwithDEFAULTand withMATERIALIZED, andALTER ... DELETE WHERE flag) all throwLOGICAL_ERRORonmasterand pass with this change; the new test passes five times in a row under randomized settings (including parallel replicas). No regressions in the 161.sqltests that useALIAScolumns, nor in the set/subquery and column-default test groups, compared against amasterbinary on the same server configuration.Workflow [PR]
Sync PR [sync-upstream/pr/119664]