You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2022/12/07 18:26:15 UTC

[GitHub] [ignite] alex-plekhanov commented on a diff in pull request #10390: IGNITE-13919 SQL Calcite: Optimization for COUNT(column) if column is indexed

alex-plekhanov commented on code in PR #10390:
URL: https://github.com/apache/ignite/pull/10390#discussion_r1042544883


##########
modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/integration/AggregatesIntegrationTest.java:
##########
@@ -108,6 +108,26 @@ public void testCountWithBackupsAndCacheModes() {
         assertQuery("select count(*) from person").returns(7L).check();
     }
 
+    /** */
+    @Test
+    public void testCountIndexedField() {
+        createAndPopulateIndexedTable(1, CacheMode.PARTITIONED);
+        assertQuery("select count(distinct descVal) from person").returns(3L).check();

Review Comment:
   FIxed



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org