v.21.2Improvements

Add normalizeQueryKeepNames and normalizedQueryHashKeepNames for Improved Query Log Analysis

Add normalizeQueryKeepNames and normalizedQueryHashKeepNames to normalize queries without masking long names with ?. This helps better analyze complex query logs. #18910 (Amos Bird).
Introduces normalizeQueryKeepNames and normalizedQueryHashKeepNames functions to normalize SQL queries without replacing long identifiers with ?, enabling detailed analysis of complex query logs.

Why it matters

This feature addresses the issue of losing meaningful identifier names in query normalization when they are masked with ?. By preserving the original names in the normalized queries, users can more effectively analyze, track, and debug complex query patterns in logs.

How to use it

Use the new functions normalizeQueryKeepNames(query) and normalizedQueryHashKeepNames(query) to obtain normalized query strings and their hashes without masking identifier names. Integrate these functions in query analysis workflows to retain full detail of original query components.