Repository navigation
Docs: specify argument types explicitly - #82089
Merged
Merged
Conversation
Contributor
This comment was marked as resolved.
This comment was marked as resolved.
rschu1ze
reviewed
Jun 18, 2025
| result += "`](/sql-reference/data-types/fixedstring)"; | ||
| else if (type.starts_with("Int") || type.starts_with("UInt") || type == "(U)Int*") /// matches 'Int8', 'Int16' etc. and 'UInt8', 'UInt16' etc. and 'Int*' and '(U)Int*' | ||
| result += "`](/sql-reference/data-types/int-uint)"; | ||
| else if (type.starts_with("Float") || type.starts_with("BFloat")) /// matches 'Float32', 'Float64', 'BFloat16' etc |
Member
There was a problem hiding this comment.
You can remove etc at the end of the line. The enumeration of the three types is exhaustive.
This comment was marked as resolved.
This comment was marked as resolved.
rschu1ze
marked this pull request as ready for review
June 19, 2025 11:52
Blargian
commented
Jun 19, 2025
Comment on lines
+128
to
+132
| result += "- `" + name + "` — " + description_; | ||
| /// We assume that if 'type' is empty(), 'description' already ends with the elegible type. | ||
| /// there may also be special cases where the exact argument type depends on something else or needs explanation | ||
| if (!types.empty()) | ||
| result += mapTypesToTypesWithLinks(types); |
Member
Author
There was a problem hiding this comment.
@rschu1ze any idea why the c++ style check doesn't like this?
Member
There was a problem hiding this comment.
Let's wait for another style check result, I moved some code around in the last two commits.
rschu1ze
reviewed
Jun 19, 2025
rschu1ze
reviewed
Jun 19, 2025
rschu1ze
reviewed
Jun 19, 2025
rschu1ze
reviewed
Jun 19, 2025
rschu1ze
reviewed
Jun 19, 2025
rschu1ze
reviewed
Jun 19, 2025
…House into docs-explicit-arg-types
Member
|
No test failures in OSS and the one in public is unrelated! |
rschu1ze
reviewed
Jun 21, 2025
| FunctionDocumentation::Description description | ||
| = R"(Converts a string to lowercase, assuming that the string contains valid UTF-8 encoded text. If this assumption is violated, no exception is thrown and the result is undefined.)"; | ||
| FunctionDocumentation::Syntax syntax = "upperUTF8(input)"; | ||
| FunctionDocumentation::Arguments arguments = {{"input", "Input with String type"}}; |
Member
There was a problem hiding this comment.
There is a chance that "String type" included FixedStrings, pls check.
| .syntax = "getClientHTTPHeader(name)", | ||
| .arguments = {{"name", "The HTTP header name (String)"}}, | ||
| .returned_value = "The value of the header (String).", | ||
| .returned_value = {"The value of the header", {"String"}}, |
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Jun 23, 2025
Docs: follow up to #82089
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.
Allow to specify argument and return types explicitly
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
...
Documentation entry for user-facing changes