LakshSingla commented on a change in pull request #12065:
URL: https://github.com/apache/druid/pull/12065#discussion_r780051096
##########
File path: sql/src/test/java/org/apache/druid/sql/calcite/CalciteQueryTest.java
##########
@@ -13342,4 +13340,34 @@ public void
testCommonVirtualExpressionWithDifferentValueType() throws Exception
ImmutableList.of()
);
}
+
+ // When optimization in Grouping#applyProject is applied, and it reduces a
Group By query to a timeseries, we
+ // want it to return empty bucket if no row matches
+ @Test
+ public void testReturnEmptyRowWhenGroupByIsConvertedToTimeseries() throws
Exception
Review comment:
Added a few more test cases, which show the consequences of optimization
in different cases.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]