morningman commented on code in PR #28186: URL: https://github.com/apache/doris/pull/28186#discussion_r1439125080
########## docs/en/docs/sql-manual/sql-functions/table-functions/job-task.md: ########## @@ -0,0 +1,118 @@ +--- +{ + "title": "JOB-Task", + "language": "en" +} +--- + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +## `tasks` + +### Name + +<version since="dev"> + +tasks + +</version> + +### description + +Table function, generates a temporary table of tasks, which allows you to view the information of tasks generated by jobs in the current Doris cluster. + +This function is used in the FROM clause. + +#### syntax + +`tasks("type"="insert");` +**parameter description** + +| parameter | description | type | required | +|:-----|:------------|:-------|:---------| +| type | job type | string | yes | + +***type only support mv or insert*** + +##### Insert tasks +The table schema of `tasks("type"="insert");` tvf: +``` +mysql> desc function tasks("type"="insert"); Review Comment: ```suggestion mysql> desc function tasks("type"="insert"); ``` ########## docs/en/docs/sql-manual/sql-functions/table-functions/job-task.md: ########## @@ -0,0 +1,118 @@ +--- +{ + "title": "JOB-Task", Review Comment: ```suggestion "title": "TASKS", ``` ########## docs/en/docs/sql-manual/sql-functions/table-functions/job-task.md: ########## @@ -0,0 +1,118 @@ +--- +{ + "title": "JOB-Task", + "language": "en" +} +--- + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +## `tasks` + +### Name + +<version since="dev"> + +tasks + +</version> + +### description + +Table function, generates a temporary table of tasks, which allows you to view the information of tasks generated by jobs in the current Doris cluster. + +This function is used in the FROM clause. + +#### syntax + +`tasks("type"="insert");` +**parameter description** + +| parameter | description | type | required | +|:-----|:------------|:-------|:---------| +| type | job type | string | yes | + +***type only support mv or insert*** Review Comment: type 支持的类型: - insert:insert into 类型的任务。 - mv:异步物化视图产生的任务。 ########## docs/zh-CN/docs/sql-manual/sql-functions/table-functions/job-task.md: ########## @@ -0,0 +1,117 @@ +--- +{ + "title": "JOB-Task", + "language": "zh-CN" +} +--- + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +## `tasks` + +### Name + +<version since="dev"> + +tasks + +</version> + +### description + +表函数,生成 tasks 临时表,可以查看当前 doris 集群中的 job 产生的tasks 信息。 + +该函数用于from子句中。 + +#### syntax + +`tasks("type"="insert");` +**参数说明** + +| 参数名 | 说明 | 类型 | 是否必填 | +|:-----|:-------|:-------|:-----| +| type | 作业类型 | string | 是 | + +***type 当前仅支持 insert 或者 mv*** Review Comment: 段落和段落之间,标题和标题之间增加空行 ########## docs/zh-CN/docs/sql-manual/sql-functions/table-functions/job-task.md: ########## @@ -0,0 +1,117 @@ +--- +{ + "title": "JOB-Task", + "language": "zh-CN" +} +--- + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +## `tasks` + +### Name + +<version since="dev"> + +tasks + +</version> + +### description + +表函数,生成 tasks 临时表,可以查看当前 doris 集群中的 job 产生的tasks 信息。 + +该函数用于from子句中。 + +#### syntax + +`tasks("type"="insert");` +**参数说明** + +| 参数名 | 说明 | 类型 | 是否必填 | +|:-----|:-------|:-------|:-----| +| type | 作业类型 | string | 是 | + +***type 当前仅支持 insert 或者 mv*** +##### Insert tasks +tasks("type"="insert");表结构: Review Comment: ```suggestion `tasks("type"="insert")` 的表结构: ``` -- 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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org