Jackie-Jiang commented on code in PR #10990: URL: https://github.com/apache/pinot/pull/10990#discussion_r1245955420
########## pinot-segment-local/src/test/java/org/apache/pinot/segment/local/segment/creator/impl/SegmentColumnarIndexCreatorTest.java: ########## @@ -174,21 +202,52 @@ private static long getStartTimeInSegmentMetadata(String testDateTimeFormat, Str } @Test - public void testAddMinMaxValueInvalid() { + public void testAddMinMaxValue() { PropertiesConfiguration props = new PropertiesConfiguration(); SegmentColumnarIndexCreator.addColumnMinMaxValueInfo(props, "colA", "bar", "foo"); Assert.assertFalse(Boolean.parseBoolean( - String.valueOf(props.getProperty(Column.getKeyFor("colA", Column.MIN_MAX_VALUE_INVALID))))); + String.valueOf(props.getProperty(getKeyFor("colA", Column.MIN_MAX_VALUE_INVALID))))); props = new PropertiesConfiguration(); SegmentColumnarIndexCreator.addColumnMinMaxValueInfo(props, "colA", ",bar", "foo"); - Assert.assertTrue(Boolean.parseBoolean( - String.valueOf(props.getProperty(Column.getKeyFor("colA", Column.MIN_MAX_VALUE_INVALID))))); + Assert.assertFalse(Boolean.parseBoolean( + String.valueOf(props.getProperty(getKeyFor("colA", Column.MIN_MAX_VALUE_INVALID))))); + Assert.assertEquals(String.valueOf(props.getProperty(getKeyFor("colA", MIN_VALUE))), "bar"); props = new PropertiesConfiguration(); SegmentColumnarIndexCreator.addColumnMinMaxValueInfo(props, "colA", "bar", " "); Review Comment: Based on the existing logic, I think it is a valid value -- 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