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/06 08:55:23 UTC

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

Vladsz83 commented on code in PR #10390:
URL: https://github.com/apache/ignite/pull/10390#discussion_r1040671953


##########
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:
   Duplicate 'assertQuery("select count(distinct descVal) from person").returns(3L).check();'
   



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