The VM cost of a query is updated by the Trino event listener. However, the query completed event is triggered asynchronously after query completion. Currently, we get the VM cost immediately after the query result is collected, it is likely that the VM cost has not been updated by the event listener at this moment.