Really interesting! Could you clarify what difference having two different query_parameterized_hash for similar queries is? Is there a performance hit?
That's the intent but turns out it's only doing a very simple hashing and not actually looking at the canonical version of the query. For example it won't treat aliases/renames as the same even though it should. This makes it harder to look at all queries that are in essence doing the same thing.