[BUG] Mapping does not present error when data is incorrect #1110
Labels
bug
Something isn't working
infrastructure
Changes to infrastructure, testing, CI/CD, pipelines, etc.
What is the bug?
Invalid data format for mapping does not cause error in integration tests. It does cause an error when loading with curl manually.
How can one reproduce the bug?
Steps to reproduce the behavior:
Create mapping and load data that is incorrectly formatted.
Load
Data](https://github.com/opensearch-project/sql/blob/081882ce140666f577f1e6e7359fa2675a5269df/integ-test/src/test/resources/datatypes.json)
Mappings
in IT tests and observe there is no error from the invalid data..
What is the expected behavior?
IT tests should produce error instead of ignoring data.
What is your host/environment?
Do you have any additional context?
This file,
datatypes.json
, was incorrectly formatted with brackets. Issue was not caught until PR 867.Old data issue
Fix
The text was updated successfully, but these errors were encountered: