sql
sql copied to clipboard
[BUG] Non-anonymized queries can be added to OpenSearch logs
QueryDataAnonymizer fails to anonymize queries that are only supported by the v2 engine.
When that happens, the query including parameter values is added to OpenSearch log.
###Root Cause
QueryDataAnonymizer uses v1 parser to determine what elements in the AST need to be anonymized. When a query fails v1 engine, anonymization is skipped and the query is logged as-is.
Relates to #787
Completed via #1665