@Override
  public boolean heartbeatLockMaterializationRebuild(String dbName, String tableName, long txnId) throws MetaException {
    int result = jdbcResource.execute(
            "UPDATE \"MATERIALIZATION_REBUILD_LOCKS\"" +
                    " SET \"MRL_LAST_HEARTBEAT\" = :lastHeartbeat" +
                    " WHERE \"MRL_TXN_ID\" = :txnId" +
                    " AND \"MRL_DB_NAME\" = :dbName" +
                    " AND \"MRL_TBL_NAME\" = :tblName",
            new MapSqlParameterSource()
                    .addValue("lastHeartbeat", Instant.now().toEpochMilli())
                    .addValue("txnId", txnId)
                    .addValue("dbName", dbName)
                    .addValue("tblName", tableName),
        ParameterizedCommand.AT_LEAST_ONE_ROW);
    return result >= 1;
  }
Get invalidation info for the materialization. Materialization information
contains information about whether there was update/delete/compaction operations on the source
tables used by the materialization since it was created.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java