private void setConstraintsAndStorageHandlerInfo(Table table) throws HiveException {
    if (desc.isExtended() || desc.isFormatted()) {
      TableConstraintsInfo tableConstraintsInfo = context.getDb()
          .getTableConstraints(table.getDbName(), table.getTableName(), false, false,
              table.getTTable() != null ? table.getTTable().getId() : -1);
      table.setTableConstraintsInfo(tableConstraintsInfo);
      table.setStorageHandlerInfo(context.getDb().getStorageHandlerInfo(table));
    }
  }
Fix the type name of a column of type decimal w/o precision/scale specified. This makes
the describe table show "decimal(10,0)" instead of "decimal" even if the type stored
in metastore is "decimal", which is possible with previous hive.

@param cols columns that to be fixed as such
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/desc/DescTableOperation.java