which algorithm did pmm use in query analytics?

thanks for you reply,
when i find a slow sql on a mysql server with QAN, i want to know its historical execution information which is stored in historical table saved by query-digest,
it’s unconvenient if i could not link query id from query-digest and QAN,
is there any plan to unify them with one algorithm?