Skip to content
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

fix json error #2234

Merged
merged 1 commit into from
Mar 19, 2024
Merged

fix json error #2234

merged 1 commit into from
Mar 19, 2024

Conversation

jngz-es
Copy link
Collaborator

@jngz-es jngz-es commented Mar 19, 2024

Description

[Describe what this change achieves]

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

@dhrubo-os
Copy link
Collaborator

{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [guardrails : {type=flat_object}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters:  [guardrails : {type=flat_object}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [guardrails : {type=flat_object}]"}},"status":400}

As we discussed we need to put this field inside of properties

Signed-off-by: Jing Zhang <[email protected]>
@@ -262,13 +262,13 @@ public class CommonValue {
+ MLModel.LAST_UNDEPLOYED_TIME_FIELD
+ "\": {\"type\": \"date\", \"format\": \"strict_date_time||epoch_millis\"},\n"
+ " \""
+ MLModel.GUARDRAILS_FIELD
Copy link
Collaborator

Choose a reason for hiding this comment

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

Have you verified if the index mapping is valid ? You can manually try it in OSD dev tools

@dhrubo-os
Copy link
Collaborator

Tests with failures:
1106 tests completed, 1 failed, 58 skipped
 - org.opensearch.ml.task.MLPredictTaskRunnerTests.testExecuteTask_OnLocalNode_RemoteModel

I think the core problem is solved. This is could be due to @Zhangxunmt's integration test failure?

@Zhangxunmt
Copy link
Collaborator

Let's merge sooner than later to unblock other tests.

@Zhangxunmt Zhangxunmt merged commit 461199a into opensearch-project:main Mar 19, 2024
4 of 10 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 19, 2024
Signed-off-by: Jing Zhang <[email protected]>
(cherry picked from commit 461199a)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 19, 2024
Signed-off-by: Jing Zhang <[email protected]>
(cherry picked from commit 461199a)
jngz-es added a commit that referenced this pull request Mar 19, 2024
Signed-off-by: Jing Zhang <[email protected]>
(cherry picked from commit 461199a)

Co-authored-by: Jing Zhang <[email protected]>
jngz-es added a commit that referenced this pull request Mar 19, 2024
Signed-off-by: Jing Zhang <[email protected]>
(cherry picked from commit 461199a)

Co-authored-by: Jing Zhang <[email protected]>
austintlee pushed a commit to austintlee/ml-commons that referenced this pull request Mar 20, 2024
austintlee pushed a commit to austintlee/ml-commons that referenced this pull request Mar 20, 2024
@jngz-es jngz-es deleted the json_error branch June 10, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants