@Override
  public RegexSerDe createSerde() throws SerializationError {
    try {
      Properties tableProps = table.getMetadata();
      tableProps.setProperty(RegexSerDe.INPUT_REGEX, regex);
      tableProps.setProperty(serdeConstants.LIST_COLUMNS, Joiner.on(",").join(inputColumns));
      tableProps.setProperty(serdeConstants.LIST_COLUMN_TYPES, Joiner.on(":").join(inputTypes));
      final String columnComments = tableProps.getProperty("columns.comments");
      if (columnComments != null) {
        List<String> comments = Lists.newArrayList(Splitter.on('\0').split(columnComments));
        int commentsSize = comments.size();
        for (int i = 0; i < inputColumns.size() - commentsSize; i++) {
          comments.add("");
        }
        tableProps.setProperty("columns.comments", Joiner.on('\0').join(comments));
      }
      RegexSerDe serde = new RegexSerDe();
      serde.initialize(conf, tableProps, null);
      this.serde = serde;
      return serde;
    } catch (SerDeException e) {
      throw new SerializationError("Error initializing serde " + RegexSerDe.class.getName(), e);
    }
  }
Creates RegexSerDe

@throws SerializationError if serde could not be initialized
streaming/src/java/org/apache/hive/streaming/StrictRegexWriter.java