private static String getTableName(Pair<String, String> dbTablePair) {
    String dbName = dbTablePair.getLeft() == null
        ? SessionState.get().getCurrentDatabase() : dbTablePair.getLeft();
    return dbName + "." + dbTablePair.getRight();
  }
Get the table name from a dbname/tablename pair. If the dbname is
null, use the SessionState to provide the dbname.
ql/src/java/org/apache/hadoop/hive/ql/parse/CacheTableHelper.java