Conversation
## Versions - [x] dev - [ ] 4.x - [ ] 3.x - [ ] 2.1 ## Languages - [x] Chinese - [x] English ## Docs Checklist - [ ] Checked by AI - [ ] Test Cases Built ## Summary Document the `gamma` scalar function, which is being added to the Doris frontend and backend: - `docs/sql-manual/sql-functions/scalar-functions/numeric-functions/gamma.md` (English) - `i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/gamma.md` (Chinese) - the `numeric-functions/gamma` entry in `sidebars.ts` The page covers the definition (`gamma(n)` is `(n - 1)!` for a positive integer `n`, `gamma(0.5)` is `sqrt(pi)`), the special values the implementation produces (NULL at `0`, at every negative integer and at negative infinity; NaN for a NaN input; Infinity for positive infinity and above the double overflow threshold), and nine examples in both languages. Every example block is the real output of the function, taken from a build of the dev branch, so the values match what a reader gets, including the double-precision representation `24.000000000000004` for `gamma(5)`. Related Doris PR: added once the Doris pull request is opened; that pull request links back to this documentation PR.
12 tasks
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.
Versions
gammais a new function on the master branch only, so there is no released version to document yet.Languages
Docs Checklist
Every example block on the page is the real output of the function, captured from a build of the dev
branch, and both language versions are added in this PR, so no counterpart sync is outstanding. The
function itself is covered by the regression test and the BE unit test in the Doris PR.
Summary
Document the
gammascalar function, which is being added to the Doris frontend and backend:docs/sql-manual/sql-functions/scalar-functions/numeric-functions/gamma.md(English)i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/gamma.md(Chinese)numeric-functions/gammaentry insidebars.tsThe page covers the definition (
gamma(n)is(n - 1)!for a positive integern,gamma(0.5)issqrt(pi)), the special values the implementation produces (NULL at0, at every negative integerand at negative infinity; NaN for a NaN input; Infinity for positive infinity and above the double
overflow threshold), and nine examples in both languages. Every example block is the real output of
the function, taken from a build of the dev branch, so the values match what a reader gets,
including the double-precision representation
24.000000000000004forgamma(5).