opensearch-project / opensearch-project/sql
[BUG] Test project_source_change_type_env should throw a SemanticCheckException
Open
@sunil9977 is already working on this.
Since Feb 26, 2026.
bug
engine v2
good first issue
infrastructure
- Dominant language
- Java
- Stars
- 176
- Forks
- 229
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 43
Description
What is the bug?
The test project_source_change_type_env does not throw a SemanticCheckException.
How can one reproduce the bug?
Steps to reproduce the behavior:
- Run the test
project_source_change_type_envin https://github.com/opensearch-project/sql/blob/2.x/core/src/test/java/org/opensearch/sql/analysis/AnalyzerTest.java - See that a SemanticCheckException was expected to be thrown however, nothing was thrown.
What is the expected behavior?
The query source=schema | fields integer_value, double_value | fields float_value should throw a SemanticCheckException because the first fields already shrink the typeenv to {interger_value, double_value}
What is your host/environment?
- OS: macOS
- Version: OpenSearch 2.4
- Plugins: OpenSearch SQL 2.x
Do you have any additional context?
Test should be enabled once this issue is resolved.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.