You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "robll-v1 (via GitHub)" <gi...@apache.org> on 2025/11/12 13:15:23 UTC
[PR] create doc of century [doris-website]
robll-v1 opened a new pull request, #3085:
URL: https://github.com/apache/doris-website/pull/3085
## Versions
- [ ] dev
- [ ] 4.x
- [ ] 3.x
- [ ] 2.1
## Languages
- [√ ] Chinese
- [ ] English
## Docs Checklist
- [ ] Checked by AI
- [ ] Test Cases Built
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] create doc of century [doris-website]
Posted by "linrrzqqq (via GitHub)" <gi...@apache.org>.
linrrzqqq commented on code in PR #3085:
URL: https://github.com/apache/doris-website/pull/3085#discussion_r2555042846
##########
docs/sql-manual/sql-functions/scalar-functions/numeric-functions/century.md:
##########
@@ -0,0 +1,106 @@
+---
+{
+ "title": "Century",
+ "language": "en"
+}
+---
+
+## Description
+
+The century corresponding to the given date
+
+## Syntax
+
+```sql
+century(<x>)
+```
+
+## Parameters
+
+| Parameter | Description |
+| -- | -- |
+| `<x>` | It returns the century of the corresponding date and supports error type handling. |
+
+## Return Value
+
+The century corresponding to the given date
+
+## Special Cases
Review Comment:
参考下其他函数的文档格式哈,这块应该是合到上面的 `Return Value` 里面的
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] create doc of century [doris-website]
Posted by "zclllyybb (via GitHub)" <gi...@apache.org>.
zclllyybb commented on code in PR #3085:
URL: https://github.com/apache/doris-website/pull/3085#discussion_r2557109779
##########
i18n/zh-CN/docusaurus-plugin-content-docs/version-3.x/sql-manual/sql-functions/scalar-functions/date-time-functions/century.md:
##########
@@ -0,0 +1,59 @@
+---
+{
+ "title": "世纪 (century)",
Review Comment:
dont need Chinese translation here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] create doc of century [doris-website]
Posted by "zclllyybb (via GitHub)" <gi...@apache.org>.
zclllyybb commented on PR #3085:
URL: https://github.com/apache/doris-website/pull/3085#issuecomment-3522548196
在 pr content里link过来对应的 code PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] create doc of century [doris-website]
Posted by "robll-v1 (via GitHub)" <gi...@apache.org>.
robll-v1 commented on PR #3085:
URL: https://github.com/apache/doris-website/pull/3085#issuecomment-3525583165
code pr : https://github.com/apache/doris/pull/57893
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] create doc of century [doris-website]
Posted by "linrrzqqq (via GitHub)" <gi...@apache.org>.
linrrzqqq commented on PR #3085:
URL: https://github.com/apache/doris-website/pull/3085#issuecomment-3569455316
还需要4.x 版本的文档(`doris-website/versioned_docs/version-4.x` && `doris-website/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x` && sidebar in `doris-website/versioned_sidebars/version-4.x-sidebars.json`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] create doc of century [doris-website]
Posted by "zclllyybb (via GitHub)" <gi...@apache.org>.
zclllyybb commented on code in PR #3085:
URL: https://github.com/apache/doris-website/pull/3085#discussion_r2557106722
##########
i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-functions/scalar-functions/date-time-functions/century.md:
##########
@@ -0,0 +1,62 @@
+---
+{
+ "title": "CENTURY",
+ "language": "zh-CN"
+}
+---
+
+## 描述
+CENTURY 函数用于提取指定日期或时间值中的世纪部分,返回整数形式的世纪。支持处理 DATE、DATETIME 类型。
+
+## 语法
+```sql
+CENTURY(<date_or_time_expr>) [AS <alias>]
+```
+
+##参数
Review Comment:
need a space here to make it a title
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] create doc of century [doris-website]
Posted by "linrrzqqq (via GitHub)" <gi...@apache.org>.
linrrzqqq commented on code in PR #3085:
URL: https://github.com/apache/doris-website/pull/3085#discussion_r2555031853
##########
i18n/zh-CN/docusaurus-plugin-content-docs/version-3.x/sql-manual/sql-functions/scalar-functions/date-time-functions/century.md:
##########
Review Comment:
中文这里整体再写下
##########
docs/sql-manual/sql-functions/scalar-functions/numeric-functions/century.md:
##########
@@ -0,0 +1,106 @@
+---
+{
+ "title": "Century",
+ "language": "en"
+}
+---
+
+## Description
+
+The century corresponding to the given date
+
+## Syntax
+
+```sql
+century(<x>)
+```
+
+## Parameters
+
+| Parameter | Description |
+| -- | -- |
+| `<x>` | It returns the century of the corresponding date and supports error type handling. |
Review Comment:
这里应该是参数,而不是返回值
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] create doc of century [doris-website]
Posted by "linrrzqqq (via GitHub)" <gi...@apache.org>.
linrrzqqq commented on code in PR #3085:
URL: https://github.com/apache/doris-website/pull/3085#discussion_r2555054362
##########
sidebars.ts:
##########
@@ -1203,6 +1203,7 @@ const sidebars: SidebarsConfig = {
'sql-manual/sql-functions/scalar-functions/numeric-functions/cbrt',
'sql-manual/sql-functions/scalar-functions/numeric-functions/ceil',
'sql-manual/sql-functions/scalar-functions/numeric-functions/conv',
+ 'sql-manual/sql-functions/scalar-functions/numeric-functions/century',
Review Comment:
按字典序排列
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] create doc of century [doris-website]
Posted by "zclllyybb (via GitHub)" <gi...@apache.org>.
zclllyybb merged PR #3085:
URL: https://github.com/apache/doris-website/pull/3085
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] create doc of century [doris-website]
Posted by "zclllyybb (via GitHub)" <gi...@apache.org>.
zclllyybb commented on code in PR #3085:
URL: https://github.com/apache/doris-website/pull/3085#discussion_r2557105632
##########
i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-functions/scalar-functions/date-time-functions/century.md:
##########
@@ -0,0 +1,62 @@
+---
+{
+ "title": "CENTURY",
+ "language": "zh-CN"
+}
+---
+
+## 描述
+CENTURY 函数用于提取指定日期或时间值中的世纪部分,返回整数形式的世纪。支持处理 DATE、DATETIME 类型。
+
+## 语法
+```sql
+CENTURY(<date_or_time_expr>) [AS <alias>]
Review Comment:
no need to add `[AS <alias>]`. keep structure same between same docs in different branch
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] create doc of century [doris-website]
Posted by "zclllyybb (via GitHub)" <gi...@apache.org>.
zclllyybb commented on code in PR #3085:
URL: https://github.com/apache/doris-website/pull/3085#discussion_r2557108810
##########
i18n/zh-CN/docusaurus-plugin-content-docs/version-3.x/sql-manual/sql-functions/scalar-functions/date-time-functions/century.md:
##########
Review Comment:
dont add 3.x docs. you should add 4 docs: 2 langs in dev, 2 langs in 4.x
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org