MeihanLi commented on code in PR #9382: URL: https://github.com/apache/pinot/pull/9382#discussion_r969993167
########## pinot-spi/src/main/java/org/apache/pinot/spi/data/Schema.java: ########## @@ -690,24 +690,37 @@ public void updateBooleanFieldsIfNeeded(Schema oldSchema) { /** * Check whether the current schema is backward compatible with oldSchema. - * Backward compatibility requires all columns and fieldSpec in oldSchema should be retained. + * Always return true if force to set to true. + * + * Backward compatibility requires + * (1) all columns in oldSchema should be retained. + * (2) all column fieldSpecs should be backward compatible with the old ones. * * @param oldSchema old schema + * @param force whether to force overriding the old schema */ - public boolean isBackwardCompatibleWith(Schema oldSchema) { + public boolean isBackwardCompatibleWith(Schema oldSchema, boolean force) { Review Comment: Thanks, can you check the third commit? -- 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