Skip to content

fix(obfuscator): stop obfuscating postgres EXTRACT temporal field#97

Closed
Eldolfin wants to merge 1 commit into
DataDog:mainfrom
Eldolfin:fix/postgres-extract-obfuscation
Closed

fix(obfuscator): stop obfuscating postgres EXTRACT temporal field#97
Eldolfin wants to merge 1 commit into
DataDog:mainfrom
Eldolfin:fix/postgres-extract-obfuscation

Conversation

@Eldolfin

@Eldolfin Eldolfin commented May 4, 2026

Copy link
Copy Markdown

Partially fixes DataDog/datadog-agent#49420 DataDog/integrations-core#23565 (the same fix needs to be done in datadog-agent's sql obfuscator)

What does this PR do?

In a query like SELECT EXTRACT(epoch FROM t.ts) FROM t; keep epoch (the temporal field) as is instead of obfuscating it.

Additional Notes

  • Should we do this only on dbms == postgres ?

see DataDog/datadog-agent#50307 for the same fix on the agent's side

@Eldolfin Eldolfin marked this pull request as ready for review May 4, 2026 15:58
@Eldolfin Eldolfin requested a review from a team as a code owner May 4, 2026 15:58
@Eldolfin

Eldolfin commented May 4, 2026

Copy link
Copy Markdown
Author

Does not fix the issue actually... It should be obfuscated but in a different manner. Sorry for the noise !

@Eldolfin Eldolfin closed this May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] DBM query obfuscator incorrectly parameterizes EXTRACT field keywords, splitting one query into two signatures

1 participant