Skip to content

Fix ORDER BY WITH FILL emitting generated rows before a NULLS FIRST NULL - #118096

Open
groeneai wants to merge 6 commits into
ClickHouse:masterfrom
groeneai:fix-with-fill-nulls-first-null-placement
Open

groeneai wants to merge 6 commits into
ClickHouse:masterfrom
groeneai:fix-with-fill-nulls-first-null-placement

Conversation

@groeneai

@groeneai groeneai commented Sep 4, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #117832

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fixed wrong results for ORDER BY ... NULLS FIRST WITH FILL over a column holding NULL or NaN values. Generated rows were emitted before the NULLs or a NaN instead of after them, one of them was emitted twice, the FILL FROM row was dropped, and without FILL FROM no rows were generated at all.

Description

ORDER BY <nullable column> NULLS FIRST WITH FILL violates its own ORDER BY:

SELECT * FROM values('x Nullable(Int32)', (5), (NULL)) ORDER BY x ASC NULLS FIRST WITH FILL FROM 1 TO 3;
-- returns  2, NULL, 5      expected  NULL, 1, 2, 5

NULLS FIRST puts the NULLs at the head of the range, so no generated row precedes them. A
DISTINCT-in-order consumer then reads a range the plan declared sorted, so a release build silently
mis-deduplicates and a debug build raises
Logical error: 'Equal values are not contiguous within the range assumed to be sorted'.

Root cause. FillingRow compares fill values as Fields and accurateLess is false in both
directions against Null, so a NULL is unordered for the fill machinery even though nulls_direction
gives it a definite position; five consequences chain in FillingTransform.

The change adds one predicate and guards the placement and anchoring decisions this makes wrong: with a single fill key, NULLS FIRST and no STALENESS, a range's leading NULLs are a
prefix that generated rows follow and that does not anchor the range. NULLS FIRST sorts a NaN next to
the NULLs (order-by.mdx), so a NaN joins that prefix, including when it opens the range, where the
FILL FROM row preceded it. Every repro in the test fails on master; five further statements pin the
plan shape and the guards. It resolves the TODO in 8c9be17b915402f.

Still unchanged: two or more fill keys; use_with_fill_by_sorting_prefix = 0 with a key ahead of the fill
key; STALENESS; a non-finite bound, which keeps the path off (#118122); and an +/-infinity row,
where generation stops there in any null direction. Independent of #117832, whose sites are gated on
nulls_direction == direction and mine on the negation.

Found by AST fuzzer (amd_debug, targeted), STID 2508-4384:
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=117832&sha=8fdf5e908157268bcf5d47b49555f0c00c85a86f&name_0=PR&name_1=AST%20fuzzer%20%28amd_debug%2C%20targeted%29


Workflow [PR]
Sync PR [sync-upstream/pr/118096]

groeneai and others added 4 commits September 3, 2026 23:07
`ORDER BY <nullable column> NULLS FIRST WITH FILL` returned rows violating its
own ORDER BY: generated rows landed in front of the NULLs, one of them was
emitted twice with a NULL between the copies, the FILL FROM row was dropped, and
with no FILL FROM nothing was generated at all. A DISTINCT-in-order consumer then
read a range the plan had declared sorted, so a release build silently
mis-deduplicated and a debug or sanitizer build raised
`Logical error: 'Equal values are not contiguous within the range assumed to be
sorted'`.

`FillingRow` compares fill values as `Field`s, and `accurateLess` is false in
both directions when either side is `Null`, so a NULL is unordered for every
comparison the fill machinery makes even though `nulls_direction` gives it a
definite position. Three consequences chained in
`FillingTransform::transformRange`: `FillingRow::findBorder` returned the
`fill_to` constraint for a NULL next value, reading it as "no upper border", so
the range was generated ahead of a row that sorts before all of it and the suffix
re-emitted the last generated row; the per-row `should_insert_first` compared
against a NULL previous row and was therefore false, leaving the pending FILL
FROM row unplaced; and the preamble anchored the range on the NULL, and an
all-NULL `filling_row` makes `FillingRow::next` return false unconditionally.
Under NULLS LAST all three are correct or unreachable.

The fix adds `isNullPrefixSkippable` plus three guarded sites in `transformRange`,
one per consequence: with a single fill key, `nulls_direction != direction` and no
STALENESS, a range's NULL rows are a prefix that no generated row precedes, that
does not anchor the range, and after which the pending FILL FROM row is placed.
`FillingRow` and `generateSuffixIfNeeded` are untouched and no new insert site is
added, so INTERPOLATE is inherited from the existing insert rather than
duplicated. Shapes the predicate excludes are byte-identical to before, measured.

Removes the `-- TODO: NULLS FIRST does not work correctly with FILL.` line added
in 8c9be17 on 2023-02-09, which this resolves.

Found by the AST fuzzer, STID 2508-4384:
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=117832&sha=8fdf5e908157268bcf5d47b49555f0c00c85a86f&name_0=PR&name_1=AST%20fuzzer%20%28amd_debug%2C%20targeted%29
ClickHouse#117832

Co-Authored-By: Claude Opus 5 <[email protected]>
Under NULLS FIRST the documented sort order is NULL, then NaN, then other
values (docs/reference/statements/select/order-by.mdx). Field comparison
disagrees: accurateLess hardcodes nan_direction_hint = 1 and never consults
nulls_direction, so a NaN compares above every ordinary value and
Field::isNaN is not Field::isNull. The previous commit's prefix test asked
only isNull, so for a Nullable(Float64) fill key holding {NULL, NaN, 5} with
FILL FROM 1 TO 3 the generated row 1 was inserted between the NULL and the
NaN, giving NULL, 1, NaN, 2, 5 instead of NULL, NaN, 1, 2, 5.

The prefix predicate now covers NULL or NaN at all four decision points, and
the insert site gets an explicit guard against placing a generated row before
a prefix row. That guard used to be supplied only as a side effect of
FillingRow::operator< returning false against a Null, which does not hold for
a NaN. Field::isNaN is type-guarded on Types::Float64, so for an integer,
Date, DateTime64 or Decimal fill key the predicate is exactly isNull and the
change is inert; a 27-shape matrix covering every fixed and every deliberately
excluded shape is byte-identical before and after, including the NULLS LAST
rows whose byte-identity is what proves this change cannot interact with the
NULLS LAST half.

The regression test's DISTINCT block now uses the shape the AST fuzzer
actually reported, a fill key that is NULL on every row, so the claim that a
generated row was emitted twice has an assertion behind it: before the fix
that query returns 2, NULL, NULL, 2 and after it NULL, NULL, 1, 2. This also
covers the row placer for that shape, which is a different code path from the
one the other blocks exercise.
…x rows

Adds the fourth guarded site, in generateSuffixIfNeeded. When every row of a
range is a NULL-or-NaN prefix row, the three in-range placers are all correctly
blocked, so nothing sets filling_row_inserted and the pending FILL FROM row
survives to the suffix. There should_insert_first tests only next_row.isNull(),
and a NaN is not a Null (Field::isNaN requires Types::Float64, isNull requires
Types::Null), while FillingRow::operator< gives nan < 1 == false. Both existing
disjuncts are therefore false and the generated row is dropped:

    SELECT * FROM values('x Nullable(Float64)', (nan), (NULL))
    ORDER BY x ASC NULLS FIRST WITH FILL FROM 1 TO 3

returned NULL, nan, 2 - losing the 1 - and now returns NULL, nan, 1, 2.

The && !filling_row_inserted conjunct is required, not symmetry with the
neighbouring disjunct. The range preamble inserts the FILL FROM row whenever
less(fill_from, current_value, direction) holds, and accurateLess(1.0, NaN) is
true, so a range whose FIRST row is a NaN reaches the suffix with the flag
already set by insertFromFillingRow. Measured without the conjunct, that shape
emits the generated row twice: values('x Nullable(Float64)', (nan)) with the
same clause gives 1, nan, 1, 2 instead of 1, nan, 2.

The suffix disjunct only widens should_insert_first, which is computed before
and consumed after the unchanged hasSomeConstraints/isConstraintsSatisfied
gate, so it cannot insert a row that violates a constraint; and it requires
!isNullPrefixRow(filling_row), so filling_row always holds an ordinary value
when it fires.

Also in the test: block 2 now uses the AST fuzzer's own two-group shape, which
keeps an all-NULL fill key (the reported CI signature) while still aborting a
debug build without the fix - the single-group all-NULL form does not abort, so
it would have traded the abort oracle away. Two statements pin the NaN
generalisation, one per placer path; before them, reverting the NaN half of the
prefix predicate left the test green.

isNullPrefixField's header said "False for every non-float type", which is
false for the whole function: isNull is type-agnostic, only the isNaN half is
type-scoped.
…mit guard

Two test statements. `src/` is unchanged by this commit.

The first pins the anchoring site. With no `FILL FROM` the range preamble stores
the first row's value in the filling row, so for a range whose prefix is a `NaN`
the filling row holds that `NaN` and `FillingRow::next` refuses to advance,
dropping every generated row in the range. The anchor re-seeds the filling row
from the first ordinary value, so `values('x Nullable(Float64)', (7), (3), (nan))`
`ORDER BY x ASC NULLS FIRST WITH FILL` goes from `nan 3 7` to `nan 3 4 5 6 7`.
Both pre-existing `NaN` statements carry `FILL FROM`, which leaves the filling
row holding the bound, so that site never fired with a `NaN` anywhere in the
file. An arm restricting it to `FillingRow::isNull` reddens the new statement
alone, and dropping `Field::isNaN` from the prefix predicate now reddens three
statements instead of two.

The second pins the `filling_row_inserted` guard on the suffix disjunct with a
row count rather than a full output. Its blocking branch is reachable only for
an all-`NaN` range with `FILL FROM`, and every such range also carries the
pre-existing misplacement of the `FILL FROM` row in front of a leading `NaN`, so
a full-output reference would record an ordering that is known to be wrong. The
count is three under that ordering and under any corrected one, and four without
the guard.
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-ci-own-pr PR origin: CI on a groeneai PR exposed a separate defect labels Sep 4, 2026
@groeneai

groeneai commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator Author
Internal second-model review

Two blockers fixed, both about NaN. Under NULLS FIRST the documented order is NULL, then NaN, then
values (order-by.mdx:32), while accurateLess treats a NaN as greater than every value. The first
revision therefore emitted a generated row between the NULL and a NaN; the second still dropped the
FILL FROM row for a range consisting only of NULL and NaN rows, whose only placer is the suffix. The
prefix now covers NaN at every decision point, and the regression test pins the reported input, a fill key
that is NULL on every row.

A third round added missing coverage rather than code: with no FILL FROM the first ordinary value has to
re-anchor the range, and that path was asserted only for NULLs, so a NaN-leading range could silently go
back to dropping every generated row. The fourth round returned no findings.

⚠️ Noted, not fixed, both pre-existing and disclosed in the description: the FILL FROM row is still
emitted in front of a leading NaN, and +/-infinity, which FillingRow::next refuses to step across in
either null direction.

⚠️ Wording only: isNullPrefixField's header says "for any other fill key type this is exactly isNull",
but a Nullable(Float32) value is a Types::Float64 Field, so isNaN fires for it as well. That is the
correct behaviour, since a Float32 NaN sorts in the same prefix.

💡 Not pinned: a value below FILL FROM after the NULL under ASC (measured correct, no test case).

@clickhouse-gh

clickhouse-gh Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [21ce424]

Summary: ❌

job_name test_name status info comment
AST fuzzer (amd_debug, targeted) FAIL
Logical error: 'Equal values are not contiguous within the range assumed to be sorted' (STID: 2508-4384) FAIL cidb
AST fuzzer (amd_debug, targeted, old_compatibility) FAIL
Logical error: 'Equal values are not contiguous within the range assumed to be sorted' (STID: 2508-4384) FAIL cidb

AI Review

Summary

This PR fixes the NULLS FIRST WITH FILL paths it claims to cover: leading NULL/NaN rows no longer get generated rows inserted ahead of them, the pending FILL FROM row is no longer dropped or duplicated in the covered single-fill-key cases, and the new stateless queries exercise the fixed preamble, in-range, suffix, and re-anchoring paths. I did not find a new correctness or coverage issue in the current head beyond the residual shapes the PR body already scopes out explicitly.

Final Verdict

✅ No new findings.

LLVM Coverage Report

Measured on commit 21ce424.

Metric Baseline Current Δ
Lines 88.80% 88.80% +0.00%
Functions 91.80% 91.80% +0.00%
Branches 81.10% 81.10% +0.00%

Changed lines: Changed C/C++ lines covered: 49/50 (98.00%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Sep 4, 2026
@groeneai

groeneai commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator Author

cc @yakov-olkhovskiy @Michicosun, could you review this? accurateLess is false in both directions against Null, so a NULLS FIRST NULL row is unordered for FillingRow even though it sorts before every value: generated rows landed in front of it, the FILL FROM row was dropped, and with no FILL FROM the range anchored on the NULL and generated nothing.

if (running_with_staleness)
return false;

return use_with_fill_by_sorting_prefix || sort_description.empty()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

null_prefix_skippable is computed from the raw sort_description_, but the transform later drops leading sort keys that are not in the header. That still leaves the old wrong-result path reachable for supported shapes like ORDER BY 10 ASC, x ASC NULLS FIRST WITH FILL FROM 1 TO 3 SETTINGS enable_positional_arguments = 0, use_with_fill_by_sorting_prefix = 0: the literal 10 cannot affect ordering, yet it keeps this predicate false, so transformRange treats the leading NULL as unordered again and emits generated rows before it. This needs to key off the effective sort description (or otherwise ignore no-header constant keys) rather than the raw parser list.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran it. The shape is real and pre-existing; the mechanism and the suggested fix are not.

It is unchanged by this PR: over (NULL), (2) that query prints 2 \N 2 on this head and byte-identically on its merge base, and it is the residual the description lists (use_with_fill_by_sorting_prefix = 0 with a key ahead of the fill key). At the default use_with_fill_by_sorting_prefix = 1 the same query is \N 1 2, so the boundary is that setting, not the constant.

Nothing drops the constant key. With WITH FILL present the planner materializes every ORDER BY column (PlannerExpressionAnalysis.cpp:539-542), so it arrives as an ordinary non-const column named 10_UInt8, and that name is in the transform's input header: EXPLAIN json=1 gives the step's sort description as 10_UInt8, __table1.x and EXPLAIN header=1 gives the same two names. deduplicateSortDescription only drops names absent from the header, so it keeps this one.

The suggested fix is therefore inert, measured rather than argued: I built the arm that decides from the effective description (isNullPrefixSkippable(sort_description, ...)) and its output is byte-identical to this head on the repro and on five controls, repro still 2 \N 2.

What does cover the shape is dropping the "fill key is the first sort key" condition, and that moves the violation instead of removing it. On that arm the repro becomes \N 1 2, but

SELECT p, x FROM values('p UInt8, x Nullable(Int64)', (1,NULL),(1,5),(2,NULL),(2,5))
ORDER BY p, x ASC NULLS FIRST WITH FILL FROM 1 TO 3 SETTINGS use_with_fill_by_sorting_prefix = 0

becomes 1 \N / 0 1 / 0 2 / 1 5 / 2 \N / 2 5: with no sorting prefix the generated rows carry p's default and land mid-stream, so p runs 1,0,0,1,2,2 where master's runs 0,1,1,2,2. That is what the condition is guarding, so widening it is a scope decision for that residual, with its own tests and changelog, not a correction to this guard.

One point in your favour: the repro does not need enable_positional_arguments = 0. A constant spelled 'k' or 10+0 reaches it at default settings, so only use_with_fill_by_sorting_prefix = 0 is required.

@Michicosun Michicosun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NULLS FIRST WITH FILL looks like a non-combining feature; why do we need to support this case? Can we instead reject it at the parser level?

@clickhouse-gh

clickhouse-gh Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 21ce42439 with master 794800200 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

8 translation units recompiled, 15 s compile time in total, 8 of them have a recent master baseline.

Job report

@clickhouse-gh clickhouse-gh Bot added the comp-query-execution Runtime execution pipeline, processors, vectorized operators, resource management during execution. label Sep 4, 2026
@groeneai

groeneai commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator Author

@Michicosun Two questions in one, so let me take them separately, with measurements.

Is it non-combining? It is a documented surface that is already exercised. docs/reference/statements/select/order-by.mdx:32 defines the order under the modifier ("first NULL, then NaN, then other values"), and the syntax is pinned by merged tests that ship in release suites: 04419_99495_limit_with_ties_virtual_row_empty_chunk.sql:46,49 (ORDER BY 1 DESC NULLS FIRST WITH FILL STALENESS -1 LIMIT 1 WITH TIES) at v26.8.2.7-lts and v26.7.6.57-stable, and 04148_stid_3520_3e11_materialized_cte_outer_alias.sql:54 at v26.8.2.7-lts and v26.6.4.55-stable. So every shape has a defined answer, and this PR only makes the Nullable one produce it.

Can it be rejected at the parser level? Only by syntax, because the parser has no types: ParserOrderByElement::parseImpl (src/Parsers/ExpressionElementParsers.cpp:2462) records nulls_direction and with_fill on the AST element before any name or type resolution. On a non-Nullable fill key the modifier is a no-op, so a syntactic rule would reject queries whose meaning it also accepts. Measured on master and on this branch, both of these print 1, 2, 3, 5:

SELECT x FROM values('x Int64', (1), (5)) ORDER BY x ASC NULLS FIRST WITH FILL FROM 1 TO 4;
SELECT x FROM values('x Int64', (1), (5)) ORDER BY x ASC WITH FILL FROM 1 TO 4;

It would also turn both tests above into syntax errors. Consistently with that, all 37 sites raising INVALID_WITH_FILL_EXPRESSION are in InterpreterSelectQuery.cpp, PlannerSorting.cpp, FillingTransform.cpp and QueryAnalyzer.cpp; src/Parsers has none.

If you would rather reject than fix, the type-aware place is one of those stages: refuse nulls_direction != direction only when the fill key is Nullable, which leaves the no-op spelling working. There is a fair case for it, since today's answer is silently wrong (values('x Nullable(Int64)', (NULL), (5)) ORDER BY x ASC NULLS FIRST WITH FILL FROM 1 TO 4 gives 2 3 \N 5 on master and \N 1 2 3 5 after this PR), and #112650 is doing exactly that at that layer for WITH FILL bounds that do not fit the column type. It is still a user-visible rejection of a released surface, so I would rather not decide that inside a bug fix. Tell me which you prefer and I will implement it.

@groeneai

groeneai commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 0934b44

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task whose
fixing-PR link will be posted here when it opens.

Check / test Reason Owner / fixing PR
AST fuzzer (amd_debug, targeted) / Equal values are not contiguous within the range assumed to be sorted (STID 2508-4384) the fuzzer's fill key is x ASC, i.e. NULLS LAST, so it is the half this PR does not cover: isNullPrefixSkippable returns false when nulls_direction == direction, leaving every path added here inert #117832 (mine, open)
AST fuzzer (amd_debug, targeted, old_compatibility) / same signature (STID 2508-4384) same defect as the row above; the two queries differ only in NULLS FIRST vs NULLS LAST on p, a non-nullable number column, where the clause is a no-op #117832 (mine, open)
Stress test (amd_asan_ubsan) / same signature (STID 2508-3796) the contiguity assert in DistinctSortedStreamTransform.cpp:184, reached because a stream the plan declared sorted is not #118077 (mine, open)
Stress test (arm_asan_ubsan, s3) / same signature (STID 2508-420e) same assert, same line, different sanitizer and storage #118077 (mine, open)
Upgrade check (amd_release) / Error message in clickhouse-server.log a background mutation retries UNKNOWN_IDENTIFIER about once per second: Unknown expression identifier b, Maybe you meant: ['a'], In scope b, b - a duplicated analyzer scope list; 27 distinct pull requests carry this signature in 14 days, 0 on master #115962 (mine, open)

Not PR-caused, so nothing here is owed by this change. #117832's fix is measurably absent from this
branch: isNullPlacementDecidable occurs 0 times in FillingTransform.cpp at this head, twice at
#117832's head, and 0 times at the master tip.

The two Bugfix validation (functional tests, amd64/aarch64) rows for 02562_with_fill_nullable are
not failures - both checks report check_status = success, which is that job's inverted verdict.

Session id: cron:our-pr-ci-monitor:20260904-200000

The `new_sorting_prefix` preamble in `transformRange` inserts the `FILL FROM`
row whenever `less(fill_from, current_value, direction)` holds. `Field`
comparison places a `NaN` above every value, while under `NULLS FIRST` a `NaN`
sorts below them, so the preamble emitted a generated row in front of a range
that starts with a `NaN`:

    SELECT * FROM values('x Nullable(Float64)', (nan))
    ORDER BY x ASC NULLS FIRST WITH FILL FROM 1 TO 3;
    -- returns  1, nan, 2      expected  nan, 1, 2

Guard that insertion with the prefix predicate the other sites already use.
Skipping the insertion leaves `filling_row_inserted` false, so the pending
`FILL FROM` row is still placed: by the guard in the row loop once the first
ordinary value arrives, or by `generateSuffixIfNeeded` when the range holds
prefix rows only.

`isNullPrefixSkippable` now also declines a bound that is not a finite number.
Such a bound reaches the filling row the way a prefix row does, so the range
re-anchored to its first ordinary value and then filled against a border the
bound never gives: `FILL FROM nan` over `{3, 7}` returned `3, 4, 5, 6, 7`
instead of `3, 7`, and `{nan, 3, 7}` under `FILL TO nan` or `FILL TO inf`, which
returned `nan, 3, 7`, generated rows until the memory limit. A non-finite bound
now keeps the whole path off, so those queries are left exactly as they were.

The last statement of `05060_with_fill_nulls_first` asserted `count()`, which
cannot see row order and stayed at 3 in both directions. It now asserts the full
output, plus a leading `NaN` followed by a value in a `Nullable` and in a plain
`Float64` column, two ranges opening with an ordinary value, and the four
non-finite bounds. Every guard fails on its own: reverting the preamble guard
moves the three `NaN` rows, dropping `filling_row_inserted` doubles a generated
row, and dropping either half of the bound check regenerates the `FROM nan`
rows, truncates `FROM inf`, or reaches the query memory limit under `TO nan` and
`TO inf`.
@groeneai

groeneai commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 21ce424

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task whose
fixing-PR link will be posted here when it opens.

Check / test Reason Owner / fixing PR
AST fuzzer (amd_debug, targeted) / Equal values are not contiguous within the range assumed to be sorted (STID 2508-4384) the fuzzer's fill key is x ASC, i.e. NULLS LAST, the half this PR does not cover: isNullPrefixSkippable returns false when nulls_direction == direction, so every path added here is inert for this query #117832 (mine, open)
AST fuzzer (amd_debug, targeted, old_compatibility) / same signature (STID 2508-4384) same defect as the row above; the two queries differ only in the redundant NULLS LAST on p, a non-nullable number column, where the clause is a no-op #117832 (mine, open)

Not PR-caused, re-measured on this head after the transformRange change: isNullPlacementDecidable
(#117832's NULLS LAST fix) occurs 0 times in FillingTransform.cpp here, twice at #117832's head, and
0 times at the master tip; this branch is still diverged, behind 9. The three other failures rowed at
0934b44e (two Stress test contiguity aborts, one Upgrade check mutation retry) did not recur here.

The two Bugfix validation (functional tests, amd64/aarch64) rows for 02562_with_fill_nullable are
not failures - both checks report check_status = success, which is that job's inverted verdict.

Session id: cron:our-pr-ci-monitor:20260908-143101

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-query-execution Runtime execution pipeline, processors, vectorized operators, resource management during execution. groeneai-origin-ci-own-pr PR origin: CI on a groeneai PR exposed a separate defect pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants