frontends

Name

SinceVersion dev

frontends

description

Table-Value-Function, generate a temporary table named frontends_disks. This tvf is used to view the information of FE nodes ‘s disks in the doris cluster.

This function is used in FROM clauses.

syntax

frontends_disks()

The table schema of frontends_disks() tvf:

1. mysql> desc function frontends_disks();
2. +-------------+------+------+-------+---------+-------+
3. | Field       | Type | Null | Key   | Default | Extra |
4. +-------------+------+------+-------+---------+-------+
5. | Name        | TEXT | No   | false | NULL    | NONE  |
6. | Host        | TEXT | No   | false | NULL    | NONE  |
7. | DirType     | TEXT | No   | false | NULL    | NONE  |
8. | Dir         | TEXT | No   | false | NULL    | NONE  |
9. | Filesystem  | TEXT | No   | false | NULL    | NONE  |
10. | Capacity    | TEXT | No   | false | NULL    | NONE  |
11. | Used        | TEXT | No   | false | NULL    | NONE  |
12. | Available   | TEXT | No   | false | NULL    | NONE  |
13. | UseRate     | TEXT | No   | false | NULL    | NONE  |
14. | MountOn     | TEXT | No   | false | NULL    | NONE  |
15. +-------------+------+------+-------+---------+-------+
16. 11 rows in set (0.14 sec)

The information displayed by the frontends_disks tvf is basically consistent with the information displayed by the show frontends disks statement. However, the types of each field in the frontends_disks tvf are more specific, and you can use the frontends_disks tvf to perform operations such as filtering and joining.

The information displayed by the frontends_disks tvf is authenticated, which is consistent with the behavior of show frontends disks, user must have ADMIN/OPERATOR privelege.

example

1. mysql> select * from frontends_disk()\G
2. *************************** 1. row ***************************
3. Name: fe_fe1d5bd9_d1e5_4ccc_9b03_ca79b95c9941
4. Host: 172.XX.XX.1
5. DirType: log
6. Dir: /data/doris/fe-github/log
7. Filesystem: /dev/sdc5
8. Capacity: 366G
9. Used: 119G
10. Available: 228G
11. UseRate: 35%
12. MountOn: /data
13. ......
14. 12 row in set (0.03 sec)

keywords

1. frontends_disks