sql icon indicating copy to clipboard operation
sql copied to clipboard

[BUG] Test aggregation_cant_merge_indexScan_with_project fails

Open GumpacG opened this issue 2 years ago • 0 comments

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.

GumpacG avatar Oct 13 '22 15:10 GumpacG