opensearch-project / opensearch-project/sql

[FEATURE] Preserve identifier type information in anonymizer

Open
#4,855 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
176
Forks
229
Avg merge
2d 21h
Merged PRs (30d)
43

Description

Is your feature request related to a problem?
For data confidentiality purposes, our anonymizer replaces all field names with identifier:

source=table | where identifier > identifier | stats count() by identifier

This gets the job done, but makes debugging queries from log entries difficult. For reproducing certain types of queries from bugs, it would be nice to at least have type information.

What solution would you like?
Preserve type information in the identifier output, turning the above query into something like:

source=table | where field_integer > field_integer | stats count() by field_string

This is considerably more actionable for reproducing bugs from logged queries.

What alternatives have you considered?
Don't

Do you have any additional context?
N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the anonymizer implementation and tracing how field names become identifier in the SQL/PPL query examples. Determine how identifier types can be retained without exposing field names, then verify that anonymized queries preserve examples such as integer comparisons and string grouping while remaining actionable for logged-query debugging.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.