Skip to content

Adding public getter function for source field mapper excludes#20205

Merged
sohami merged 2 commits intoopensearch-project:mainfrom
buddharajusahil:feature/source-excludes-public
Dec 15, 2025
Merged

Adding public getter function for source field mapper excludes#20205
sohami merged 2 commits intoopensearch-project:mainfrom
buddharajusahil:feature/source-excludes-public

Conversation

@buddharajusahil
Copy link
Contributor

@buddharajusahil buddharajusahil commented Dec 9, 2025

Description

This change is adding a public getter function for the excludes list in SourceFieldMapper.

Related Issues

Resolves #20201

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Summary by CodeRabbit

  • New Features

    • Added a public getter to read an index source field's configured exclusion list.
  • Chores

    • Updated release notes to reference the new public getter in the API surface.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 9, 2025

Walkthrough

Added a public accessor getExcludes() to SourceFieldMapper that returns a cloned copy of the private excludes array, exposing the excludes configuration as a public API without changing other behavior.

Changes

Cohort / File(s) Change Summary
SourceFieldMapper API Expansion
server/src/main/java/org/opensearch/index/mapper/SourceFieldMapper.java
Added public String[] getExcludes() which returns a defensive clone of the private excludes array, exposing excludes externally while preventing direct mutation of the original array.
Changelog
CHANGELOG.md
Documented the addition of the public getter for SourceFieldMapper excludes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Verify method signature and visibility: public String[] getExcludes().
  • Confirm it returns a defensive clone (not the original array) and does not mutate state.
  • Check coding style/javadoc and the CHANGELOG entry.

Poem

🐇 I nibbled through the mapper's nest,
Found hidden strings and did my best,
I give you back a copy, clean and neat,
Excludes now safe — no sneaky feat,
Hoppity-hop, the change is sweet.

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding a public getter function for the excludes field in SourceFieldMapper.
Description check ✅ Passed The description includes all required sections: a clear description of the change, related issue number (#20201), and a completed checklist with testing, API changes, and documentation marked as done.
Linked Issues check ✅ Passed The pull request fully meets the requirement from issue #20201: it adds a public getter method getExcludes() to SourceFieldMapper to expose the excludes list, enabling efficient retrieval for k-NN derived source path use cases.
Out of Scope Changes check ✅ Passed All changes are directly in scope: the getExcludes() method addition to SourceFieldMapper and CHANGELOG.md update align with the objective to expose excludes publicly.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 144077f and 72a4289.

📒 Files selected for processing (1)
  • CHANGELOG.md (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • CHANGELOG.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
  • GitHub Check: gradle-check
  • GitHub Check: precommit (25, ubuntu-24.04-arm)
  • GitHub Check: precommit (21, windows-2025, true)
  • GitHub Check: precommit (25, macos-15)
  • GitHub Check: precommit (25, macos-15-intel)
  • GitHub Check: detect-breaking-change
  • GitHub Check: precommit (21, windows-latest)
  • GitHub Check: precommit (21, ubuntu-latest)
  • GitHub Check: precommit (25, windows-latest)
  • GitHub Check: precommit (21, macos-15)
  • GitHub Check: precommit (21, ubuntu-24.04-arm)
  • GitHub Check: precommit (25, ubuntu-latest)
  • GitHub Check: precommit (21, macos-15-intel)
  • GitHub Check: Analyze (java)
  • GitHub Check: assemble (21, ubuntu-latest)
  • GitHub Check: assemble (25, ubuntu-24.04-arm)
  • GitHub Check: assemble (21, ubuntu-24.04-arm)
  • GitHub Check: assemble (21, windows-latest)
  • GitHub Check: assemble (25, windows-latest)
  • GitHub Check: assemble (25, ubuntu-latest)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
server/src/main/java/org/opensearch/index/mapper/SourceFieldMapper.java (1)

285-287: Accessor implementation is correct; consider defensive copy if immutability is desired

The new getExcludes() correctly exposes the configured excludes and aligns with the stated PR goal; no functional issues here. The only consideration is that returning the backing String[] allows callers to mutate the array contents and effectively change the mapper’s internal state. If you want to keep SourceFieldMapper effectively immutable, you could instead return a copy or an unmodifiable view:

-    public String[] getExcludes() {
-        return excludes;
-    }
+    public String[] getExcludes() {
+        return Arrays.copyOf(excludes, excludes.length);
+    }

This is optional and depends on how much you want to protect against external mutation of mapper configuration.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ba9ec47 and 9100f2c.

📒 Files selected for processing (1)
  • server/src/main/java/org/opensearch/index/mapper/SourceFieldMapper.java (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
  • GitHub Check: gradle-check
  • GitHub Check: precommit (21, windows-2025, true)
  • GitHub Check: precommit (25, ubuntu-24.04-arm)
  • GitHub Check: precommit (25, macos-15-intel)
  • GitHub Check: precommit (21, macos-15)
  • GitHub Check: precommit (25, macos-15)
  • GitHub Check: precommit (25, windows-latest)
  • GitHub Check: precommit (21, macos-15-intel)
  • GitHub Check: precommit (25, ubuntu-latest)
  • GitHub Check: precommit (21, windows-latest)
  • GitHub Check: precommit (21, ubuntu-24.04-arm)
  • GitHub Check: precommit (21, ubuntu-latest)
  • GitHub Check: assemble (21, ubuntu-latest)
  • GitHub Check: assemble (21, ubuntu-24.04-arm)
  • GitHub Check: assemble (25, ubuntu-latest)
  • GitHub Check: assemble (25, ubuntu-24.04-arm)
  • GitHub Check: assemble (25, windows-latest)
  • GitHub Check: assemble (21, windows-latest)
  • GitHub Check: detect-breaking-change
  • GitHub Check: Analyze (java)

@buddharajusahil buddharajusahil force-pushed the feature/source-excludes-public branch from 9100f2c to 0b686af Compare December 9, 2025 23:26
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
server/src/main/java/org/opensearch/index/mapper/SourceFieldMapper.java (1)

285-287: Avoid leaking internal excludes array; return a defensive copy instead

Returning the backing String[] lets callers mutate internal state of a SourceFieldMapper, which can violate immutability assumptions and cause hard‑to‑trace bugs under concurrent access. Consider returning a copy instead.

-    public String[] getExcludes() {
-        return excludes;
-    }
+    public String[] getExcludes() {
+        return excludes.clone();
+    }
CHANGELOG.md (1)

40-40: Changelog entry correctly documents the new public getter

The new bullet accurately reflects the SourceFieldMapper API change; no functional concerns. If you want to polish wording, consider “…for use with k‑NN derived source paths” for slightly smoother phrasing.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9100f2c and 0b686af.

📒 Files selected for processing (2)
  • CHANGELOG.md (1 hunks)
  • server/src/main/java/org/opensearch/index/mapper/SourceFieldMapper.java (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
  • GitHub Check: gradle-check
  • GitHub Check: Analyze (java)
  • GitHub Check: precommit (25, macos-15-intel)
  • GitHub Check: assemble (25, ubuntu-24.04-arm)
  • GitHub Check: precommit (25, macos-15)
  • GitHub Check: precommit (25, ubuntu-24.04-arm)
  • GitHub Check: precommit (21, windows-2025, true)
  • GitHub Check: assemble (25, windows-latest)
  • GitHub Check: precommit (21, ubuntu-latest)
  • GitHub Check: assemble (21, ubuntu-24.04-arm)
  • GitHub Check: precommit (25, ubuntu-latest)
  • GitHub Check: precommit (25, windows-latest)
  • GitHub Check: precommit (21, macos-15-intel)
  • GitHub Check: precommit (21, ubuntu-24.04-arm)
  • GitHub Check: assemble (25, ubuntu-latest)
  • GitHub Check: assemble (21, ubuntu-latest)
  • GitHub Check: assemble (21, windows-latest)
  • GitHub Check: precommit (21, windows-latest)
  • GitHub Check: precommit (21, macos-15)
  • GitHub Check: detect-breaking-change

@github-actions
Copy link
Contributor

✅ Gradle check result for 0b686af: SUCCESS

@codecov
Copy link

codecov bot commented Dec 10, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 72.71%. Comparing base (66ed5cb) to head (72a4289).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...org/opensearch/index/mapper/SourceFieldMapper.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #20205      +/-   ##
============================================
- Coverage     72.82%   72.71%   -0.12%     
+ Complexity    71315    71278      -37     
============================================
  Files          5795     5795              
  Lines        328297   328303       +6     
  Branches      47282    47283       +1     
============================================
- Hits         239089   238716     -373     
- Misses        69893    70316     +423     
+ Partials      19315    19271      -44     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@buddharajusahil buddharajusahil force-pushed the feature/source-excludes-public branch from 0b686af to a4f4556 Compare December 10, 2025 02:24
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
server/src/main/java/org/opensearch/index/mapper/SourceFieldMapper.java (1)

285-287: Defensive copy via clone() is correct; consider documenting contract

Returning excludes.clone() cleanly exposes the configuration without leaking internal mutable state, and keeps the existing String[]-based API surface intact. From a correctness and encapsulation standpoint this looks good.

As a minor follow‑up, consider adding brief Javadoc on getExcludes() clarifying that:

  • it never returns null, and
  • it returns a copy of the excludes array that callers are free to modify.

That will help future users of this public API understand the method’s guarantees.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0b686af and a4f4556.

📒 Files selected for processing (2)
  • CHANGELOG.md (1 hunks)
  • server/src/main/java/org/opensearch/index/mapper/SourceFieldMapper.java (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • CHANGELOG.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: gradle-check

@github-actions
Copy link
Contributor

❕ Gradle check result for a4f4556: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
CHANGELOG.md (1)

40-40: Consider adding the specific method name for clarity.

The changelog entry correctly documents the new feature in the appropriate section. For better clarity and consistency with documentation practices, consider mentioning the specific method name getExcludes():

- Added public getter method in `SourceFieldMapper` to be used in KNN derived source path ([#20205](https://github.com/opensearch-project/OpenSearch/pull/20205))
+ Added public getter method `getExcludes()` in `SourceFieldMapper` to be used in KNN derived source path ([#20205](https://github.com/opensearch-project/OpenSearch/pull/20205))

This makes the changelog entry more informative for users reviewing release notes.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a4f4556 and ea08818.

📒 Files selected for processing (1)
  • CHANGELOG.md (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (21)
  • GitHub Check: gradle-check
  • GitHub Check: assemble (25, ubuntu-24.04-arm)
  • GitHub Check: Analyze (java)
  • GitHub Check: assemble (21, ubuntu-latest)
  • GitHub Check: assemble (25, windows-latest)
  • GitHub Check: assemble (21, windows-latest)
  • GitHub Check: precommit (25, ubuntu-24.04-arm)
  • GitHub Check: assemble (21, ubuntu-24.04-arm)
  • GitHub Check: assemble (25, ubuntu-latest)
  • GitHub Check: precommit (21, windows-2025, true)
  • GitHub Check: precommit (21, macos-15-intel)
  • GitHub Check: precommit (21, ubuntu-latest)
  • GitHub Check: precommit (25, macos-15-intel)
  • GitHub Check: precommit (25, windows-latest)
  • GitHub Check: precommit (25, macos-15)
  • GitHub Check: precommit (21, ubuntu-24.04-arm)
  • GitHub Check: precommit (25, ubuntu-latest)
  • GitHub Check: precommit (21, windows-latest)
  • GitHub Check: precommit (21, macos-15)
  • GitHub Check: detect-breaking-change
  • GitHub Check: Mend Security Check

@github-actions
Copy link
Contributor

❌ Gradle check result for ea08818: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Contributor

❌ Gradle check result for ea08818: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ea08818 and 33228fb.

📒 Files selected for processing (1)
  • CHANGELOG.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
CHANGELOG.md

[grammar] ~13-~13: Use a hyphen to join words.
Context: .../pull/19539)) - Add a mapper for context aware segments grouping criteria ([#1923...

(QB_NEW_EN_HYPHEN)


[uncategorized] ~15-~15: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...568)) - Add support for repository with Server side encryption enabled and client side encr...

(EN_COMPOUND_ADJECTIVE_INTERNAL)


[grammar] ~15-~15: Use a hyphen to join words.
Context: ...erver side encryption enabled and client side encryption as well based on a flag....

(QB_NEW_EN_HYPHEN)


[uncategorized] ~32-~32: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...enSearch/pull/19878)) - Add support for context aware segments ([#19098](https://github.com/o...

(EN_COMPOUND_ADJECTIVE_INTERNAL)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (21)
  • GitHub Check: gradle-check
  • GitHub Check: Mend Security Check
  • GitHub Check: precommit (25, windows-latest)
  • GitHub Check: assemble (25, windows-latest)
  • GitHub Check: assemble (21, ubuntu-latest)
  • GitHub Check: assemble (25, ubuntu-24.04-arm)
  • GitHub Check: assemble (21, ubuntu-24.04-arm)
  • GitHub Check: assemble (25, ubuntu-latest)
  • GitHub Check: assemble (21, windows-latest)
  • GitHub Check: precommit (21, macos-15)
  • GitHub Check: precommit (25, macos-15-intel)
  • GitHub Check: precommit (21, macos-15-intel)
  • GitHub Check: precommit (21, windows-2025, true)
  • GitHub Check: precommit (25, ubuntu-24.04-arm)
  • GitHub Check: precommit (21, ubuntu-24.04-arm)
  • GitHub Check: precommit (25, macos-15)
  • GitHub Check: precommit (25, ubuntu-latest)
  • GitHub Check: precommit (21, windows-latest)
  • GitHub Check: precommit (21, ubuntu-latest)
  • GitHub Check: detect-breaking-change
  • GitHub Check: Analyze (java)
🔇 Additional comments (1)
CHANGELOG.md (1)

40-40: Changelog entry looks accurate; consider consistent naming (“k-NN” / “derived source path(s)”).

@github-actions
Copy link
Contributor

✅ Gradle check result for 33228fb: SUCCESS

@buddharajusahil buddharajusahil force-pushed the feature/source-excludes-public branch 2 times, most recently from c9b5b31 to 10da324 Compare December 13, 2025 00:08
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (1)
CHANGELOG.md (1)

9-40: Fix the diff to show only your changelog entry.

The diff incorrectly shows the entire "Added" section (lines 9-40) as modified when only your new entry on line 41 should be added. This appears to be a merge conflict resolution issue. Please rebase or merge properly so that only line 41 appears in the diff.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 33228fb and c9b5b31.

📒 Files selected for processing (2)
  • CHANGELOG.md (1 hunks)
  • server/src/main/java/org/opensearch/index/mapper/SourceFieldMapper.java (1 hunks)
🧰 Additional context used
🪛 LanguageTool
CHANGELOG.md

[grammar] ~14-~14: Use a hyphen to join words.
Context: .../pull/19539)) - Add a mapper for context aware segments grouping criteria ([#1923...

(QB_NEW_EN_HYPHEN)


[uncategorized] ~16-~16: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...568)) - Add support for repository with Server side encryption enabled and client side encr...

(EN_COMPOUND_ADJECTIVE_INTERNAL)


[grammar] ~16-~16: Use a hyphen to join words.
Context: ...erver side encryption enabled and client side encryption as well based on a flag....

(QB_NEW_EN_HYPHEN)


[uncategorized] ~33-~33: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...enSearch/pull/19878)) - Add support for context aware segments ([#19098](https://github.com/o...

(EN_COMPOUND_ADJECTIVE_INTERNAL)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
  • GitHub Check: gradle-check
  • GitHub Check: precommit (21, windows-2025, true)
  • GitHub Check: precommit (25, windows-latest)
  • GitHub Check: precommit (25, macos-15)
  • GitHub Check: precommit (25, ubuntu-24.04-arm)
  • GitHub Check: precommit (25, macos-15-intel)
  • GitHub Check: precommit (21, ubuntu-24.04-arm)
  • GitHub Check: precommit (25, ubuntu-latest)
  • GitHub Check: precommit (21, windows-latest)
  • GitHub Check: precommit (21, macos-15)
  • GitHub Check: precommit (21, macos-15-intel)
  • GitHub Check: precommit (21, ubuntu-latest)
  • GitHub Check: detect-breaking-change
  • GitHub Check: assemble (25, ubuntu-24.04-arm)
  • GitHub Check: assemble (25, ubuntu-latest)
  • GitHub Check: assemble (21, ubuntu-latest)
  • GitHub Check: assemble (21, ubuntu-24.04-arm)
  • GitHub Check: assemble (25, windows-latest)
  • GitHub Check: Analyze (java)
  • GitHub Check: assemble (21, windows-latest)
🔇 Additional comments (2)
CHANGELOG.md (1)

41-41: LGTM!

The changelog entry accurately describes the addition of the public getter method and follows the established format.

server/src/main/java/org/opensearch/index/mapper/SourceFieldMapper.java (1)

286-286: Good use of defensive copying.

Returning a clone of the array prevents external code from mutating the internal state of the mapper, which is the correct approach for exposing internal collections.

Signed-off-by: Sahil Buddharaju <sahilbud@amazon.com>
@buddharajusahil buddharajusahil force-pushed the feature/source-excludes-public branch from 10da324 to 144077f Compare December 13, 2025 00:09
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c9b5b31 and 144077f.

📒 Files selected for processing (2)
  • CHANGELOG.md (2 hunks)
  • server/src/main/java/org/opensearch/index/mapper/SourceFieldMapper.java (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • server/src/main/java/org/opensearch/index/mapper/SourceFieldMapper.java
🧰 Additional context used
🪛 LanguageTool
CHANGELOG.md

[grammar] ~9-~9: Use a hyphen to join words.
Context: ...in SourceFieldMapper to be used in KNN derived source path ([#20205](https://gi...

(QB_NEW_EN_HYPHEN)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (16)
  • GitHub Check: gradle-check
  • GitHub Check: precommit (25, macos-15)
  • GitHub Check: precommit (21, windows-latest)
  • GitHub Check: precommit (21, windows-2025, true)
  • GitHub Check: precommit (25, windows-latest)
  • GitHub Check: precommit (21, macos-15-intel)
  • GitHub Check: assemble (25, windows-latest)
  • GitHub Check: assemble (25, ubuntu-24.04-arm)
  • GitHub Check: precommit (21, ubuntu-24.04-arm)
  • GitHub Check: precommit (21, ubuntu-latest)
  • GitHub Check: precommit (25, macos-15-intel)
  • GitHub Check: assemble (25, ubuntu-latest)
  • GitHub Check: assemble (21, windows-latest)
  • GitHub Check: assemble (21, ubuntu-24.04-arm)
  • GitHub Check: assemble (21, ubuntu-latest)
  • GitHub Check: Analyze (java)

@github-actions
Copy link
Contributor

❌ Gradle check result for 144077f: null

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@buddharajusahil buddharajusahil force-pushed the feature/source-excludes-public branch from ac41dfb to c940b31 Compare December 13, 2025 04:33
@github-actions
Copy link
Contributor

❕ Gradle check result for c940b31: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Signed-off-by: Sahil Buddharaju <sahilbud@amazon.com>
@buddharajusahil buddharajusahil force-pushed the feature/source-excludes-public branch from c940b31 to 72a4289 Compare December 13, 2025 08:14
@github-actions
Copy link
Contributor

❕ Gradle check result for 72a4289: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@sohami sohami merged commit ee59cb0 into opensearch-project:main Dec 15, 2025
33 of 34 checks passed
liuguoqingfz pushed a commit to liuguoqingfz/OpenSearch that referenced this pull request Dec 15, 2025
…earch-project#20205)

* Adding public getter function for source field mapper excludes

Signed-off-by: Sahil Buddharaju <sahilbud@amazon.com>

* Retrigger CI

Signed-off-by: Sahil Buddharaju <sahilbud@amazon.com>

---------

Signed-off-by: Sahil Buddharaju <sahilbud@amazon.com>
Co-authored-by: Sahil Buddharaju <sahilbud@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement or improvement to existing feature or request _No response_

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Make excludes publicly accessible in SourceFieldMapper

2 participants