kgyrtkirk commented on code in PR #15465:
URL: https://github.com/apache/druid/pull/15465#discussion_r1447276639


##########
extensions-core/datasketches/src/test/java/org/apache/druid/query/aggregation/datasketches/hll/sql/HllSketchSqlAggregatorTest.java:
##########
@@ -1157,6 +1161,40 @@ public void testHllEstimateAsVirtualColumnWithTopN()
     );
   }
 
+  @SqlTestFrameworkConfig(resultCache = ResultCacheMode.ENABLED)
+  @Test
+  public void testResultCacheWithWindowing()
+  {
+    cannotVectorize();
+    skipVectorize();
+    for (int i = 0; i < 2; i++) {
+      testBuilder()
+          .queryContext(ImmutableMap.of(PlannerContext.CTX_ENABLE_WINDOW_FNS, 
true))
+          .sql(
+              "SELECT "
+                  + " TIME_FLOOR(__time, 'P1D') as dayLvl,\n"
+                  + "  dim1,\n"
+                  + "  HLL_SKETCH_ESTIMATE(DS_HLL(hllsketch_dim1,18,'HLL_4'), 
true),\n"
+                  + "  
HLL_SKETCH_ESTIMATE(DS_HLL(DS_HLL(hllsketch_dim1,18,'HLL_4'),18,'HLL_4') OVER 
(PARTITION BY dim1), true),"
+                  + "  1\n"
+                  + "FROM\n"
+                  + "  (select * from  druid.foo ) ttt\n"
+                  + "  WHERE  __time >= '1903-08-02' AND __time <= 
'2033-08-07'\n"
+                  + "  and dim1 not like '%ikipedia' and l1 > -4\n"
+                  + "  group by 1,2"
+          )
+          .expectedResults(
+              ImmutableList.of(
+                  new Object[] {946684800000L, "", 0.0D, 0.0D, 1},
+                  new Object[] {946771200000L, "10.1", 1.0D, 1.0D, 1},
+                  new Object[] {946857600000L, "2", 1.0D, 1.0D, 1}
+              )
+          )
+          .run();
+      System.out.println("|sad");

Review Comment:
   :facepalm: 
   I've added it to have a trigger breakpoint to skip the first execution of 
the query...forgot to remove it...
   
   



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

Reply via email to