Jackie-Jiang commented on code in PR #9077: URL: https://github.com/apache/pinot/pull/9077#discussion_r926950462
########## pinot-core/src/main/java/org/apache/pinot/core/util/SegmentProcessorAvroUtils.java: ########## @@ -74,7 +74,10 @@ public static GenericData.Record convertGenericRowToAvroRecord(GenericRow generi public static Schema convertPinotSchemaToAvroSchema(org.apache.pinot.spi.data.Schema pinotSchema) { SchemaBuilder.FieldAssembler<org.apache.avro.Schema> fieldAssembler = SchemaBuilder.record("record").fields(); - for (FieldSpec fieldSpec : pinotSchema.getAllFieldSpecs()) { + List<FieldSpec> orderedFieldSpecs = pinotSchema.getAllFieldSpecs().stream() + .sorted() Review Comment: Can you please also fix the compile issue? I believe some classes are not imported -- 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