You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/11/24 06:31:21 UTC

[GitHub] [doris] BePPPower opened a new pull request, #14542: [feature](Docs) add backends and rowsets docs

BePPPower opened a new pull request, #14542:
URL: https://github.com/apache/doris/pull/14542

   # Proposed changes
   
   Issue Number: close #xxx
   add backends and rowsets docs for system table `information_schema.backends` and `information_schema.rowsets`
   
   ## Problem summary
   
   Describe your changes.
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: 
       - [ ] Yes
       - [x] No
       - [ ] I don't know
   2. Has unit tests been added:
       - [ ] Yes
       - [x] No
       - [ ] No Need
   3. Has document been added or modified:
       - [x] Yes
       - [ ] No
       - [ ] No Need
   4. Does it need to update dependencies:
       - [ ] Yes
       - [x] No
   5. Are there any changes that cannot be rolled back:
       - [ ] Yes (If Yes, please explain WHY)
       - [x] No
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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


[GitHub] [doris] yiguolei merged pull request #14542: [feature](Docs) add backends and rowsets docs

Posted by GitBox <gi...@apache.org>.
yiguolei merged PR #14542:
URL: https://github.com/apache/doris/pull/14542


-- 
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


[GitHub] [doris] morningman commented on a diff in pull request #14542: [feature](Docs) add backends and rowsets docs

Posted by GitBox <gi...@apache.org>.
morningman commented on code in PR #14542:
URL: https://github.com/apache/doris/pull/14542#discussion_r1031414235


##########
docs/zh-CN/docs/admin-manual/system-table/rowsets:
##########
@@ -0,0 +1,84 @@
+---
+{
+    "title": "rowsets",
+    "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.
+-->
+
+## rowsets
+
+### Name
+
+rowsets
+
+### description
+
+`rowsets` 是doris内置的一张系统表,存放在`information_schema`数据库下。通过 `rowsets` 系统表可以查看各个`BE` 当前rowsets情况。
+
+rowsets表结构为:
+```sql
+MySQL [(none)]> desc information_schema.rowsets;
++------------------------+------------+------+-------+---------+-------+
+| Field                  | Type       | Null | Key   | Default | Extra |
++------------------------+------------+------+-------+---------+-------+
+| BACKEND_ID             | BIGINT     | Yes  | false | NULL    |       |
+| ROWSET_ID              | VARCHAR(*) | Yes  | false | NULL    |       |
+| TABLET_ID              | BIGINT     | Yes  | false | NULL    |       |
+| ROWSET_NUM_ROWS        | BIGINT     | Yes  | false | NULL    |       |
+| TXN_ID                 | BIGINT     | Yes  | false | NULL    |       |
+| NUM_SEGMENTS           | BIGINT     | Yes  | false | NULL    |       |
+| START_VERSION          | BIGINT     | Yes  | false | NULL    |       |
+| END_VERSION            | BIGINT     | Yes  | false | NULL    |       |
+| INDEX_DISK_SIZE        | BIGINT     | Yes  | false | NULL    |       |
+| DATA_DISK_SIZE         | BIGINT     | Yes  | false | NULL    |       |
+| CREATION_TIME          | BIGINT     | Yes  | false | NULL    |       |
+| OLDEST_WRITE_TIMESTAMP | BIGINT     | Yes  | false | NULL    |       |
+| NEWEST_WRITE_TIMESTAMP | BIGINT     | Yes  | false | NULL    |       |
++------------------------+------------+------+-------+---------+-------+
+```
+backends 系统表展示出来的信息基本与 `show backends` 语句展示出的信息一致。但是backends系统表的各个字段类型更加明确,且可以利用backends 系统表去做过滤、join等操作。

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


[GitHub] [doris] BePPPower commented on a diff in pull request #14542: [feature](Docs) add backends and rowsets docs

Posted by GitBox <gi...@apache.org>.
BePPPower commented on code in PR #14542:
URL: https://github.com/apache/doris/pull/14542#discussion_r1032098315


##########
docs/zh-CN/docs/admin-manual/system-table/rowsets:
##########
@@ -0,0 +1,84 @@
+---
+{
+    "title": "rowsets",
+    "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.
+-->
+
+## rowsets
+
+### Name
+
+rowsets
+
+### description
+
+`rowsets` 是doris内置的一张系统表,存放在`information_schema`数据库下。通过 `rowsets` 系统表可以查看各个`BE` 当前rowsets情况。
+
+rowsets表结构为:
+```sql
+MySQL [(none)]> desc information_schema.rowsets;
++------------------------+------------+------+-------+---------+-------+
+| Field                  | Type       | Null | Key   | Default | Extra |
++------------------------+------------+------+-------+---------+-------+
+| BACKEND_ID             | BIGINT     | Yes  | false | NULL    |       |
+| ROWSET_ID              | VARCHAR(*) | Yes  | false | NULL    |       |
+| TABLET_ID              | BIGINT     | Yes  | false | NULL    |       |
+| ROWSET_NUM_ROWS        | BIGINT     | Yes  | false | NULL    |       |
+| TXN_ID                 | BIGINT     | Yes  | false | NULL    |       |
+| NUM_SEGMENTS           | BIGINT     | Yes  | false | NULL    |       |
+| START_VERSION          | BIGINT     | Yes  | false | NULL    |       |
+| END_VERSION            | BIGINT     | Yes  | false | NULL    |       |
+| INDEX_DISK_SIZE        | BIGINT     | Yes  | false | NULL    |       |
+| DATA_DISK_SIZE         | BIGINT     | Yes  | false | NULL    |       |
+| CREATION_TIME          | BIGINT     | Yes  | false | NULL    |       |
+| OLDEST_WRITE_TIMESTAMP | BIGINT     | Yes  | false | NULL    |       |
+| NEWEST_WRITE_TIMESTAMP | BIGINT     | Yes  | false | NULL    |       |
++------------------------+------------+------+-------+---------+-------+
+```
+backends 系统表展示出来的信息基本与 `show backends` 语句展示出的信息一致。但是backends系统表的各个字段类型更加明确,且可以利用backends 系统表去做过滤、join等操作。

Review Comment:
   done



-- 
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