(normalized_query)
return format(mmh3.hash64(ensure_bytes(normalized_query), signed=False)[0], 'x')
Given an already obfuscated & normalized SQL query, generate its 64-bit hex signature.
Given an already obfuscated & normalized SQL query, generate its 64-bit hex signature.
Given an already obfuscated & normalized SQL query generate its 64 - bit hex signature .
def compute_sql_signature(normalized_query):
    """
    Given an already obfuscated & normalized SQL query, generate its 64-bit hex signature.
    """
    if not normalized_query:
        return None
    # Note: please be cautious when changing this function as some features rely on this
    # hash matching the APM resource hash generated on our backend.
    return format(mmh3.hash64(ensure_bytes(normalized_query), signed=False)[0], 'x')
def compute_sql_signature ( normalized_query ) : if not normalized_query : return None # Note: please be cautious when changing this function as some features rely on this # hash matching the APM resource hash generated on our backend. return format ( mmh3 . hash64 ( ensure_bytes ( normalized_query ) , signed = False ) [ 0 ] , 'x' )