-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update script supports java.lang.String.sha1() and java.lang.String.sha256() methods #16923
Conversation
…ha256() methods Signed-off-by: Gao Binlong <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16923 +/- ##
============================================
- Coverage 72.28% 72.21% -0.07%
+ Complexity 65238 65224 -14
============================================
Files 5297 5299 +2
Lines 303351 303475 +124
Branches 43918 43925 +7
============================================
- Hits 219279 219159 -120
- Misses 66120 66351 +231
- Partials 17952 17965 +13 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Gao Binlong <[email protected]>
Signed-off-by: Gao Binlong <[email protected]>
❌ Gradle check result for c016747: 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? |
❌ Gradle check result for c016747: 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? |
❌ Gradle check result for c016747: 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? |
…ha256() methods (#16923) * Update script supports java.lang.String.sha1() and java.lang.String.sha256() methods Signed-off-by: Gao Binlong <[email protected]> * Modify change log Signed-off-by: Gao Binlong <[email protected]> --------- Signed-off-by: Gao Binlong <[email protected]> (cherry picked from commit ab546ae) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…a.lang.String.sha256() methods (#16931) * Update script supports java.lang.String.sha1() and java.lang.String.sha256() methods (#16923) * Update script supports java.lang.String.sha1() and java.lang.String.sha256() methods Signed-off-by: Gao Binlong <[email protected]> * Modify change log Signed-off-by: Gao Binlong <[email protected]> --------- Signed-off-by: Gao Binlong <[email protected]> (cherry picked from commit ab546ae) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Update PainlessPlugin.java (use Whitelist instead of AllowList) Signed-off-by: Andriy Redko <[email protected]> * Update PainlessPlugin.java Signed-off-by: Andriy Redko <[email protected]> --------- Signed-off-by: Gao Binlong <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Signed-off-by: Andriy Redko <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Andriy Redko <[email protected]>
Description
For now we have augmentation methods
sha1
andsha256
for strings in painless script:OpenSearch/modules/lang-painless/src/main/java/org/opensearch/painless/api/Augmentation.java
Line 687 in 7ae66d0
, but it can only be used in ingest context for use in ingest pipeline, we can expand the scope to the update context so that these methods can be used in operations like update document, reindex and update_by_query.
Related Issues
#16423
Check List
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.