Skip to content

feat(server-common): Add JsonToJson Recommender as a utility function#18518

Draft
Chris-tyt wants to merge 2 commits intoopensearch-project:mainfrom
Chris-tyt:add_jsontojson_recommender_in_util
Draft

feat(server-common): Add JsonToJson Recommender as a utility function#18518
Chris-tyt wants to merge 2 commits intoopensearch-project:mainfrom
Chris-tyt:add_jsontojson_recommender_in_util

Conversation

@Chris-tyt
Copy link
Copy Markdown

Description

This PR adds a utility class JsonToJsonRecommender under server/.../common/util that can infer JSONPath mappings based on example input and output JSON objects.

This utility is intended as a core component for implementing automatic field-level mapping in scenarios like inference-based pipeline configuration or input/output transformation logic.

The unit tests include example input-output pairs and cover relevant cases.

Related Issues

Resolves #18507

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.

@github-actions github-actions bot added enhancement Enhancement or improvement to existing feature or request Other labels Jun 13, 2025
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for a755e30: 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?

@Chris-tyt Chris-tyt force-pushed the add_jsontojson_recommender_in_util branch from a755e30 to 4be1f3c Compare June 13, 2025 20:29
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 4be1f3c: 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?

@Chris-tyt Chris-tyt force-pushed the add_jsontojson_recommender_in_util branch from 4be1f3c to 5146502 Compare June 13, 2025 21:43
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 5146502: 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?

@Chris-tyt Chris-tyt force-pushed the add_jsontojson_recommender_in_util branch from 5146502 to 09184b8 Compare June 13, 2025 21:54
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 09184b8: 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?

@Chris-tyt Chris-tyt force-pushed the add_jsontojson_recommender_in_util branch 2 times, most recently from 1cad440 to aa4c172 Compare June 13, 2025 22:26
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for aa4c172: 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?

@Chris-tyt Chris-tyt force-pushed the add_jsontojson_recommender_in_util branch from aa4c172 to f18d44b Compare June 13, 2025 23:01
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for f18d44b: 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?

@Chris-tyt Chris-tyt force-pushed the add_jsontojson_recommender_in_util branch from f18d44b to 09aaafc Compare June 16, 2025 18:51
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 09aaafc: 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?

Yanting Tao added 2 commits June 16, 2025 15:41
Signed-off-by: Yanting Tao <yanting@amazon.com>
Signed-off-by: Yanting Tao <yanting@amazon.com>
@Chris-tyt Chris-tyt force-pushed the add_jsontojson_recommender_in_util branch from 09aaafc to 7a7c02b Compare June 16, 2025 22:41
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 7a7c02b: 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?

@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

This PR is stalled because it has been open for 30 days with no activity.

@opensearch-trigger-bot opensearch-trigger-bot bot added the stalled Issues that have stalled label Jul 17, 2025
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 Other stalled Issues that have stalled

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] JsonToJson Recommender

1 participant