public void copyConstraints(final Table tbl) {
    this.tableConstraintsInfo = tbl.tableConstraintsInfo;
    this.isTableConstraintsFetched = tbl.isTableConstraintsFetched;
  }
This shouldn't use get apis because those api call metastore
to fetch constraints.
getMetaData only need to make a reference copy of existing constraints, even if those are not fetched
ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java