opensearch-project / opensearch-project/sql

[BUG] Test project_source_change_type_env should throw a SemanticCheckException

Open
#917 8 comments 0 reactions 1 assignee View on GitHub

@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:

  1. Run the test project_source_change_type_env in https://github.com/opensearch-project/sql/blob/2.x/core/src/test/java/org/opensearch/sql/analysis/AnalyzerTest.java
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.