Note
This view is introduced since OceanBase Database V4.2.0.
Purpose
This view displays the join filter execution information of all tenants on all OBServer nodes in real time.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| SVR_IP | varchar(46) | NO | The IP address of the OBServer node. |
| SVR_PORT | bigint(20) | NO | The port number of the OBServer node. |
| QC_SESSION_ID | bigint(0) | NO | The query coordinator (QC) session ID of the cursor for a given parallel query. For V4.3.x:
|
| QC_INSTANCE_ID | bigint(0) | NO | The QC instance ID of the given cursor for the parallel query. |
| SQL_PLAN_HASH_VALUE | bigint(0) | NO | The hash value of the SQL plan of the cursor for the given parallel query. |
| FILTER_ID | bigint(20) | NO | The ID of the connection filter in the given cursor. This ID corresponds to the filter ID in the execution plan. |
| BITS_SET | bigint(0) | NO | The size of the bitmap for the Bloom filter. In the current version of OceanBase Database, this column is used only for compatibility. |
| FILTERED | bigint(20) | NO | The number of rows processed by the connection filter. |
| PROBED | bigint(20) | NO | The number of rows in the right-side table that have been tested by using the bitmap filter. Here, the value is the sum of filtered and unfiltered rows. |
| ACTIVE | bigint(0) | NO | Indicates whether the filter is active. |
| CON_ID | bigint(20) | NO | The ID of the data container. |
| TRACE_ID | varchar(64) | NO | The trace ID of the SQL statement. |
Sample query
Query the execution information of the join filter in all OBServer nodes for all tenants in the sys tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.GV$SQL_JOIN_FILTER LIMIT 10;
The query result is as follows:
+----------------+----------+---------------+----------------+---------------------+-----------+----------+----------+--------+--------+--------+------------------------------------+
| SVR_IP | SVR_PORT | QC_SESSION_ID | QC_INSTANCE_ID | SQL_PLAN_HASH_VALUE | FILTER_ID | BITS_SET | FILTERED | PROBED | ACTIVE | CON_ID | TRACE_ID |
+----------------+----------+---------------+----------------+---------------------+-----------+----------+----------+--------+--------+--------+------------------------------------+
| 11.xxx.xxx.xxx | 28825 | NULL | NULL | NULL | 0 | NULL | 0 | 0 | NULL | 1002 | y70***************************-0-0 |
| 11.xxx.xxx.xxx | 28825 | NULL | NULL | NULL | 0 | NULL | 0 | 0 | NULL | 1002 | y70***************************-0-0 |
| 11.xxx.xxx.xxx | 28825 | NULL | NULL | NULL | 0 | NULL | 0 | 0 | NULL | 1002 | y70***************************-0-0 |
| 11.xxx.xxx.xxx | 28825 | NULL | NULL | NULL | 0 | NULL | 0 | 0 | NULL | 1004 | y70***************************-0-0 |
| 11.xxx.xxx.xxx | 28825 | NULL | NULL | NULL | 0 | NULL | 0 | 2509 | NULL | 1004 | y70***************************-0-0 |
| 11.xxx.xxx.xxx | 28825 | NULL | NULL | NULL | 0 | NULL | 0 | 0 | NULL | 1004 | y70***************************-0-0 |
| 11.xxx.xxx.xxx | 28825 | NULL | NULL | NULL | 0 | NULL | 0 | 2530 | NULL | 1004 | y70***************************-0-0 |
| 11.xxx.xxx.xxx | 28825 | NULL | NULL | NULL | 0 | NULL | 0 | 0 | NULL | 1004 | y70***************************-0-0 |
| 11.xxx.xxx.xxx | 28825 | NULL | NULL | NULL | 0 | NULL | 0 | 2504 | NULL | 1004 | y70***************************-0-0 |
| 11.xxx.xxx.xxx | 28825 | NULL | NULL | NULL | 0 | NULL | 0 | 0 | NULL | 1004 | y70***************************-0-0 |
+----------------+----------+---------------+----------------+---------------------+-----------+----------+----------+--------+--------+--------+------------------------------------+
10 rows in set