vvivekiyer commented on code in PR #10093:
URL: https://github.com/apache/pinot/pull/10093#discussion_r1066362108


##########
pinot-segment-local/src/test/java/org/apache/pinot/segment/local/segment/index/loader/ForwardIndexHandlerTest.java:
##########
@@ -1374,7 +1373,7 @@ public void testDisableForwardIndexForSingleRawColumn()
         // This value is based on the rows in createTestData().
         dictionaryElementSize = 7;
       } else if (dataType == FieldSpec.DataType.BIG_DECIMAL) {
-        dictionaryElementSize = 11;
+        dictionaryElementSize = 4;

Review Comment:
   The existing code uses a random BASE_BIG_DECIMAL. Depending on the random 
value, the dictionaryElementSize varies.  
   In the `validateMetadata()` function, we check if the dictionaryElementSize 
remains the same
   `assertEquals(columnMetadata.getColumnMaxLength(), dictionaryElementSize, 
column);`
   
   This was causing the flakiness. Now we make it deterministic by not using 
BASE_BIG_DECIMAL. 



-- 
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: commits-unsubscr...@pinot.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to