alexeykudinkin commented on code in PR #5629: URL: https://github.com/apache/hudi/pull/5629#discussion_r975619535
########## hudi-common/src/main/java/org/apache/hudi/common/model/HoodieRecord.java: ########## @@ -291,59 +284,51 @@ public void checkState() { } } - ////////////////////////////////////////////////////////////////////////////// - - // - // NOTE: This method duplicates those ones of the HoodieRecordPayload and are placed here - // for the duration of RFC-46 implementation, until migration off `HoodieRecordPayload` - // is complete - // - public abstract HoodieRecord mergeWith(HoodieRecord other, Schema readerSchema, Schema writerSchema) throws IOException; + /** + * Get column in record to support RDDCustomColumnsSortPartitioner + */ + public abstract Object getRecordColumnValues(Schema recordSchema, String[] columns, boolean consistentLogicalTimestampEnabled); - public abstract HoodieRecord rewriteRecord(Schema recordSchema, Schema targetSchema, TypedProperties props) throws IOException; + /** + * Support bootstrap. + */ + public abstract HoodieRecord mergeWith(HoodieRecord other, Schema targetSchema) throws IOException; Review Comment: I see what you're saying. This method is confusing though, since it's also called merge. Ideally, we shouldn't even have it in the interface (since it's not generic enough). Can we try to extract it out? -- 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...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org