@Override
  public boolean equals(Object obj) {
    return obj instanceof RelOptHiveTable
        && this.rowType.equals(((RelOptHiveTable) obj).getRowType())
        && this.getHiveTableMD().equals(((RelOptHiveTable) obj).getHiveTableMD());
  }
Note: DOES NOT CHECK txn stats.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/RelOptHiveTable.java