xiangfu0 commented on code in PR #13905: URL: https://github.com/apache/pinot/pull/13905#discussion_r1735174694
########## pinot-core/src/test/java/org/apache/pinot/core/util/CrcUtilsTest.java: ########## @@ -38,8 +38,8 @@ 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 long EXPECTED_V1_CRC = 2708456273L; - private static final long EXPECTED_V3_CRC = 2796149869L; + private static final long EXPECTED_V1_CRC = 3087108662L; Review Comment: Since we need to add extra child field spec, so I refactor the logic and add method `addFieldSpec(properties, column, fieldSpec);` However this changes the order of column stats in the `metadata.properties` files got changed. Do you see this an issue for crc change? E.g. before: ``` column.column1.cardinality = 51594 column.column1.totalDocs = 100000 column.column1.dataType = INT column.column1.bitsPerElement = 16 column.column1.lengthOfEachEntry = 0 column.column1.columnType = DIMENSION column.column1.isSorted = false column.column1.hasDictionary = true column.column1.isSingleValues = true column.column1.maxNumberOfMultiValues = 0 column.column1.totalNumberOfEntries = 100000 column.column1.isAutoGenerated = false column.column1.minValue = 15935 column.column1.maxValue = 2147475579 column.column1.defaultNullValue = -2147483648 ``` after: ``` column.column1.cardinality = 51594 column.column1.totalDocs = 100000 column.column1.bitsPerElement = 16 column.column1.lengthOfEachEntry = 0 column.column1.isSorted = false column.column1.hasDictionary = true column.column1.maxNumberOfMultiValues = 0 column.column1.totalNumberOfEntries = 100000 column.column1.isAutoGenerated = false column.column1.columnType = DIMENSION column.column1.dataType = INT column.column1.isSingleValues = true column.column1.minValue = 15935 column.column1.maxValue = 2147475579 column.column1.defaultNullValue = -2147483648 ``` -- 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