SQL Audit adds network_wait_time column placeholder

This commit is contained in:
AntiTopQuark
2024-02-09 17:14:46 +00:00
committed by ob-robot
parent 211948977a
commit 2919f17c94
7 changed files with 76 additions and 4 deletions

View File

@ -545,7 +545,8 @@ bool ObGvSqlAudit::is_perf_event_dep_field(uint64_t col_id) {
case INDEX_BLOCK_CACHE_HIT:
case BLOCKSCAN_BLOCK_CNT:
case BLOCKSCAN_ROW_CNT:
case PUSHDOWN_STORAGE_FILTER_ROW_CNT: {
case PUSHDOWN_STORAGE_FILTER_ROW_CNT:
case NETWORK_WAIT_TIME: {
is_contain = true;
break;
}
@ -1052,6 +1053,9 @@ int ObGvSqlAudit::fill_cells(obmysql::ObMySQLRequestRecord &record)
case PLSQL_EXEC_TIME: {
cells[cell_idx].set_null();
} break;
case NETWORK_WAIT_TIME: {
cells[cell_idx].set_null();
} break;
default: {
ret = OB_ERR_UNEXPECTED;
SERVER_LOG(WARN, "invalid column id", K(ret), K(cell_idx), K(col_id));