[fix](sql-functions) provide setup data for MEDIAN example (dev)#3903
Merged
morningman merged 1 commit intoJun 10, 2026
Merged
Conversation
The dev MEDIAN page queried `log_statis` without defining it, so the example errored with "table does not exist"; its second example's SQL and printed output were also mismatched. Port the version-4.x Example section to dev (EN+ZH): a `-- setup` block that creates `log_statis` and loads rows whose per-group medians are exactly the 50 / 30 the doc prints (MEDIAN = percentile 0.5 is deterministic), plus the self-consistent NULL example. version-4.x already has this and is unchanged. Verified end-to-end on the local master daily build — every touched example reproduces the doc's printed output cell-for-cell (dev EN P4 F0, dev ZH P4 F0). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The dev
MEDIANpage queriedlog_statiswithout defining it, so the example errored withtable does not exist; its second example's SQL and printed output were also mismatched.Port the version-4.x Example section to dev (EN+ZH): a
-- setupblock that createslog_statisand loads rows whose per-group medians are exactly the50/30the doc prints (MEDIAN=percentile 0.5is deterministic), plus the self-consistent NULL example. version-4.x already has this and is unchanged. (MEDIAN only exists in dev + 4.x.)Verification — executed end-to-end on the local master daily build (doris-0.0.0-2e72603618c): dev EN P4 F0, dev ZH P4 F0, every touched example reproducing the doc's printed output cell-for-cell.
🤖 Generated with Claude Code