Introduce more fields for in-source function documentation#49300
Introduce more fields for in-source function documentation#49300
Conversation
|
This is an automated comment for commit 4529511 with description of existing statuses. It's updated for the latest CI running
|
hanfei1991
left a comment
There was a problem hiding this comment.
It looks cool! Is there a test to help me understand how the in-source documentation works?
This test finds the functions that do not have entries in system.functions: Here is how it is used now (by hand) contrib writing guide In the future we plan to fill in the missing entries in the source and generate the docs in CI. Adding the correct fields and the logic to populate the tables from the source are the first steps. |
|
What about Parameters column in addition to Arguments? |
|
closes #8562 |
|
System table
Did you mean the argument type (e.g. "String")? This is currently part of |
Not exactly, I'm talking about quantile(0,9)(value) Where |
|
Interesting, haven't seen this syntax before, thanks! Makes for sure sense to have a field for that too. I would nevertheless prefer to merge this PR as is because it is large and there is a risk of logical merge conflicts with other PRs. Also, this PR is technically about regular function docs whereas |
* Bump protobuf to v3.18.x (ref: ClickHouse/ClickHouse#50400) * Bump protobuf to v3.19.6 (ref: ClickHouse/ClickHouse#55963) * Bump protobuf to v3.19.6 (ref: ClickHouse/ClickHouse#50920) * Update contribe/orc (ref: ClickHouse/ClickHouse#53324) * Bump protobuf to v21.9 (ref: ClickHouse/ClickHouse#56014) * Removed unused code in google-protobuf-cmake/CMakeLists.txt (ref: ClickHouse/ClickHouse#56102) * Bump gRPC to v1.55.4 and protobuf to v22.5 (ref: ClickHouse/ClickHouse#56664) * Bump gRPC to v1.59 and protobuf to v24.4 (ref: ClickHouse/ClickHouse#56853) * enable functions in readonly mode (ref: ClickHouse/ClickHouse#42708) * Introduce more fields for in-source function documentation (ref: ClickHouse/ClickHouse#49300) * Add ability to convert timeplusd table structure to CapnProto/Protobuf format schema (ref: ClickHouse/ClickHouse#52278) * Well known protos (ref: ClickHouse/ClickHouse#56741) * Update protobuf to v25.1 (ref: ClickHouse/ClickHouse#58020) * fixed unit_tests_dbms build * Avoid ignoring errors of execute_process() (set COMMAND_ERROR_IS_FATAL=ANY) (ref: ClickHouse/ClickHouse#68267) * fixed reigsterFunction * fixed error after rebase
* Bump protobuf to v3.18.x (ref: ClickHouse/ClickHouse#50400) * Bump protobuf to v3.19.6 (ref: ClickHouse/ClickHouse#55963) * Bump protobuf to v3.19.6 (ref: ClickHouse/ClickHouse#50920) * Update contribe/orc (ref: ClickHouse/ClickHouse#53324) * Bump protobuf to v21.9 (ref: ClickHouse/ClickHouse#56014) * Removed unused code in google-protobuf-cmake/CMakeLists.txt (ref: ClickHouse/ClickHouse#56102) * Bump gRPC to v1.55.4 and protobuf to v22.5 (ref: ClickHouse/ClickHouse#56664) * Bump gRPC to v1.59 and protobuf to v24.4 (ref: ClickHouse/ClickHouse#56853) * enable functions in readonly mode (ref: ClickHouse/ClickHouse#42708) * Introduce more fields for in-source function documentation (ref: ClickHouse/ClickHouse#49300) * Add ability to convert timeplusd table structure to CapnProto/Protobuf format schema (ref: ClickHouse/ClickHouse#52278) * Well known protos (ref: ClickHouse/ClickHouse#56741) * Update protobuf to v25.1 (ref: ClickHouse/ClickHouse#58020) * fixed unit_tests_dbms build * Avoid ignoring errors of execute_process() (set COMMAND_ERROR_IS_FATAL=ANY) (ref: ClickHouse/ClickHouse#68267) * fixed reigsterFunction * fixed error after rebase
Related: #49222
renamed class
DocumentationtoFunctionDocumentationas other database "objects" (settings, system tables, etc.) use different "templates" for documentationmade the class more fine-granular, instead of
DescriptionExamplesCategorieswe now have
DescriptionSyntaxArgumentsReturned ValueExamplesCategories.This means more effort for the programmer but the generated documentation will look more uniform because more structural information is available.
system.functions(but undocumented because they may change again in future)@DanRoscigno
@UnamedRus
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Split function-documentation into more fine-granular fields