Solution (#4031): [BUG] Field masking has inconsistent memory issues with certain q#6276
Solution (#4031): [BUG] Field masking has inconsistent memory issues with certain q#6276TFGSUMIT wants to merge 1 commit into
Conversation
…stent memory issues with cert
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit f33d1c4.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
hi @TFGSUMIT thank you for raising this PR.
The files added here seem to be incomplete and not referenced anywhere. Some files are already present in core engine (e.g. SearchRequest), and can be used from there. Could you file an issue describing the bug and repro if one doesn't exist already.
After these are addressed, can you:
- run "./gradlew spotlessApply"
- signoff commits using GPG sign
This pull request addresses the issue of inconsistent memory issues with field masking in certain queries. The changes include:
QueryRewriterclass to rewrite queries to exclude masked fields when field masking is enabled.isFieldMaskedmethod to theMaskingclass to check if a field is masked.MaskingTestsclass to test rewritten queries and verify that they do not materialize masked fields.To test this PR, please follow these instructions:
MaskingTestsclass to verify that the rewritten queries do not materialize masked fields.Note: This PR assumes that the
Maskingclass is properly configured to enable field masking. Please ensure that theMaskingclass is correctly configured before applying this PR.