Skip to content

Revert "Implement PromQL functions absent and count_values" - #117789

Closed
clickhouse-gh[bot] wants to merge 1 commit into
masterfrom
revert-112795
Closed

clickhouse-gh[bot] wants to merge 1 commit into
masterfrom
revert-112795

Conversation

@clickhouse-gh

@clickhouse-gh clickhouse-gh Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Reverts #112795

This pull request was reverted automatically by the Revert CI regressions job, which found that it
introduced a failure that keeps happening on master, and merged this revert without waiting
for checks so that master is usable again.

Failure: test Documentation examples in Docs examples

Seen 3 times on 3 master commits in the last
24 hours, between 2026-09-02 21:10:17 and 2026-09-02 21:18:25 UTC.

Most recent report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=e9122655791c80e3ef9b977482173a6a1a35a957&name_0=MasterCI&name_1=Docs%20examples&name_1=Docs%20examples

Why this pull request:

Although the first failing run by start time was on a54f19b0b7169af771a26d449065c368684b07a3 at 2026-09-02 21:10:17 UTC, the actual introducing merge is c064f38bedf61e6bc1ecfe1d9c027082a5927d85 (#112795). In the range from the last good master run on cda48f97d9728a4601d8304ed7432c662e8849b4 at 2026-09-02 20:55:06 UTC to that first bad observed run, #112795 is the only merge that adds src/Functions/TimeSeries/timeSeriesPrometheusValueToString.cpp, and it adds the exact bad FunctionDocumentation example: the boxed expected output for timeSeriesPrometheusValueToString(toFloat64(1e-7)) is one character too wide, matching the Documentation examples diff now seen on c064f38bedf61e6bc1ecfe1d9c027082a5927d85, a54f19b0b7169af771a26d449065c368684b07a3, and e9122655791c80e3ef9b977482173a6a1a35a957. No newer Docs examples master run is present after 2026-09-02 21:18:25 UTC, and current master still contains the bad literal, so there is no sign of a merged fix yet.

A draft pull request reintroducing the change is opened right after this one is merged, so the change
can come back through normal CI once the failure is fixed. Every investigation this job makes,
including the ones that revert nothing, is recorded in the checks_investigated table of the CI
database.

If this revert is wrong, say so here and bring the change back: the job errs towards reverting
because a broken master blocks everybody, not because its judgement beats yours.

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

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


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

…unt-values"

This reverts commit c064f38, reversing
changes made to 13c33af.
@clickhouse-gh

clickhouse-gh Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Workflow [PR], commit [60913f3]

Summary: ❌

job_name test_name status info comment
Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/6) ERROR
Container memory budget exceeded (/docker) ERROR cidb

AI Review

Summary

This revert cleanly removes the absent and count_values PromQL implementation, deletes the helper function timeSeriesPrometheusValueToString, and restores the table-function documentation plus focused integration coverage to the prior "not yet supported" contract. I did not find a remaining correctness, consistency, or cleanup issue in the current patch.

Missing context / blind spots
  • ⚠️ At review time the full PR CI signal was still incomplete: GitHub showed Build (arm_tidy) and the aggregate PR check as pending, so I could only rely on the finished Fast test and Style check jobs plus source inspection.
Final Verdict

✅ No new review findings.

LLVM Coverage Report

Measured on commit 60913f3.

Metric Baseline Current Δ
Lines 88.70% 88.70% +0.00%
Functions 92.10% 92.10% +0.00%
Branches 81.00% 81.00% +0.00%

Changed lines: Changed C/C++ lines covered: 32/32 (100.00%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Sep 2, 2026
@nikitamikhaylov

Copy link
Copy Markdown
Member

@groeneai open a PR with a fix for the Documentation.

@clickhouse-gh

clickhouse-gh Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Build profile diff (arm_release)

Comparing 60913f311 with master ab12a1449 (stripped binary size, per-symbol sizes and ThinLTO time; object sizes against the warmup build of 23783e69d; 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

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

Job report

@groeneai

groeneai commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Acknowledged. This is documentation-only. In the FunctionDocumentation example that #112795 added to src/Functions/TimeSeries/timeSeriesPrometheusValueToString.cpp, the expected-output box is internally inconsistent: the header row is 54 characters wide while the data row and the bottom border are 55. So Documentation examples is diffing the padding, not the value, and 0.0000001 is identical on both sides. The function output is correct and the correction is a two character deletion inside that literal, so the feature itself does not need to be reverted.

I will post the fix PR link here.

@groeneai

groeneai commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

No PR from me is needed after all. #117827 already carries exactly the correction I described, and it is approved; the identical two line change also rides in #117816.

I checked that rather than assuming it. The file blob #117827 produces is 994f9b80906ca8e, byte for byte the change I had already built and tested here: on a pristine build the Docs examples runner reports one unexpected failure for Function/timeSeriesPrometheusValueToString#0 with the diff CI shows, and with those two code points removed it reports 1 ok, 0 not ok. So the feature still does not need reverting.

@Algunenano

Copy link
Copy Markdown
Member

Already fixed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants