def METHOD_NAME(subscription, snuba_query, snql_query, entity_subscription):
    query = snql_query.query
    is_performance_metrics = query.match.name.startswith("generic_metrics")
    is_metrics = "metrics" in query.match.name
    if is_performance_metrics:
        _validate_query(query, True)
    elif is_metrics:
        _validate_query(query, False)
    return old_create_snql_in_snuba(
        subscription, snuba_query, snql_query, entity_subscription
    )