Jackie-Jiang commented on code in PR #10468: URL: https://github.com/apache/pinot/pull/10468#discussion_r1147922459
########## pinot-core/src/test/java/org/apache/pinot/core/util/CrcUtilsTest.java: ########## @@ -19,71 +19,43 @@ package org.apache.pinot.core.util; import java.io.File; +import java.net.URL; import java.util.concurrent.TimeUnit; import org.apache.commons.io.FileUtils; -import org.apache.pinot.segment.local.indexsegment.immutable.ImmutableSegmentLoader; import org.apache.pinot.segment.local.segment.creator.SegmentTestUtils; -import org.apache.pinot.segment.local.segment.creator.impl.SegmentCreationDriverFactory; +import org.apache.pinot.segment.local.segment.creator.impl.SegmentIndexCreationDriverImpl; import org.apache.pinot.segment.local.utils.CrcUtils; -import org.apache.pinot.segment.spi.IndexSegment; -import org.apache.pinot.segment.spi.SegmentMetadata; import org.apache.pinot.segment.spi.creator.SegmentGeneratorConfig; import org.apache.pinot.segment.spi.creator.SegmentIndexCreationDriver; -import org.apache.pinot.spi.utils.ReadMode; import org.apache.pinot.util.TestUtils; -import org.testng.Assert; import org.testng.annotations.Test; +import static org.testng.Assert.assertEquals; +import static org.testng.Assert.assertNotNull; -/** - * Dec 4, 2014 - */ public class CrcUtilsTest { - + private static final File INDEX_DIR = new File(FileUtils.getTempDirectory(), "CrcUtilsTest"); private static final String AVRO_DATA = "data/test_data-mv.avro"; - private static final File INDEX_DIR = new File("/tmp/testingCrc"); + private static final long EXPECTED_CRC = 4139425029L; @Test - public void test1() + public void testCrc() Review Comment: No, different column order will give different CRC. This test is used to make sure the order is always the same -- 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