SELECT IF ( `isnull` ( `information_schema` . `processlist` . `ID` ) , `concat` ( `substring_index` ( `performance_schema` . `threads` . `NAME` , ? , - (?) ) , ? , `performance_schema` . `events_waits_history_long` . `THREAD_ID` ) , `concat` ( `information_schema` . `processlist` . `USER` , ? , `information_schema` . `processlist` . `HOST` , ? , `information_schema` . `processlist` . `ID` ) ) AS `thread` , `sys` . `format_path` ( `performance_schema` . `events_waits_history_long` . `OBJECT_NAME` ) AS `file` , `sys` . `format_time` ( `performance_schema` . `events_waits_history_long` . `TIMER_WAIT` ) AS `latency` , `performance_schema` . `events_waits_history_long` . `OPERATION` AS `operation` , `sys` . `format_bytes` ( `performance_schema` . `events_waits_history_long` . `NUMBER_OF_BYTES` ) AS `requested` FROM ( ( `performance_schema` . `events_waits_history_long` JOIN `performance_schema` . `threads` ON ( ( `performance_schema` . `events_waits_history_long` . `THREAD_ID` = 