kasakrisz commented on code in PR #3552: URL: https://github.com/apache/hive/pull/3552#discussion_r964382971
########## ql/src/java/org/apache/hadoop/hive/ql/metadata/MaterializedViewMetadata.java: ########## @@ -32,16 +36,19 @@ import static java.util.Collections.unmodifiableSet; public class MaterializedViewMetadata { + private static final Logger LOG = LoggerFactory.getLogger(MaterializedViewMetadata.class); + final CreationMetadata creationMetadata; MaterializedViewMetadata(CreationMetadata creationMetadata) { this.creationMetadata = creationMetadata; } public MaterializedViewMetadata( - String catalogName, String dbName, String mvName, Set<SourceTable> sourceTables, String validTxnList) { + String catalogName, String dbName, String mvName, Set<SourceTable> sourceTables, + MaterializationSnapshot snapshot) { this.creationMetadata = new CreationMetadata(catalogName, dbName, mvName, toFullTableNames(sourceTables)); - this.creationMetadata.setValidTxnList(validTxnList); + this.creationMetadata.setValidTxnList(snapshot.asJsonString()); Review Comment: I don't recommend changing it because of backward compatibility reasons. My original idea was to introduce a new field to store the snapshotIds however that requires hms backend db schema change and thrift api change which I would like to avoid. -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org