Skip to content

[BUG] Test aggregation_cant_merge_indexScan_with_project fails #912

Open
@GumpacG

Description

@GumpacG

What is the bug?
The test aggregation_cant_merge_indexScan_with_project fails when it is enabled.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Run the test aggregation_cant_merge_indexScan_with_project in https://github.com/opensearch-project/sql/blob/2.x/opensearch/src/test/java/org/opensearch/sql/opensearch/planner/logical/OpenSearchLogicOptimizerTest.java
  2. See an AssertionFailedError with actual being OpenSearchLogicalIndexAgg(relationName=schema, filter==(intV, 1), aggregatorList=[AVG(intV)], groupByList=[longV], sortList=null)

What is the expected behavior?
Expected is LogicalAggregation(aggregatorList=[AVG(intV)], groupByList=[longV])

What is your host/environment?

  • OS: macOS
  • Version: OpenSearch 2.4.0
  • Plugins: OpenSearch SQL 2.x

Do you have any additional context?
The test should be enabled once this is fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginfrastructureChanges to infrastructure, testing, CI/CD, pipelines, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions