public Table getDummyTable() throws SemanticException {
    if (dummyPath == null) {
      dummyPath = createDummyFile();
    }

    Table desc = new Table(DUMMY_DATABASE, DUMMY_TABLE);
    desc.getTTable().getSd().setLocation(dummyPath.toString());
    desc.getTTable().getSd().getSerdeInfo().setSerializationLib(NullStructSerDe.class.getName());
    desc.setInputFormatClass(NullRowsInputFormat.class);
    desc.setOutputFormatClass(HiveIgnoreKeyTextOutputFormat.class);
    return desc;
  }
if the column is a skewed column, use ColumnInfo accordingly
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java