Github user NathanHowell commented on a diff in the pull request:
    --- Diff: 
    @@ -132,39 +128,17 @@ class TextOutputWriter(
         context: TaskAttemptContext)
       extends OutputWriter {
    -  private[this] val buffer = new Text()
    -  private val recordWriter: RecordWriter[NullWritable, Text] = {
    -    new TextOutputFormat[NullWritable, Text]() {
    -      override def getDefaultWorkFile(context: TaskAttemptContext, 
extension: String): Path = {
    -        new Path(path)
    -      }
    -    }.getRecordWriter(context)
    -  }
    +  private val writer = CodecStreams.getOutputStream(context, new 
       override def write(row: Row): Unit = throw new 
UnsupportedOperationException("call writeInternal")
       override protected[sql] def writeInternal(row: InternalRow): Unit = {
         val utf8string = row.getUTF8String(0)
    -    buffer.set(utf8string.getBytes)
    -    recordWriter.write(NullWritable.get(), buffer)
    +    writer.write(utf8string.getBytes)
    --- End diff --
    Done, but I'm not 100% sure about the implementation. Can you have someone 
more familiar with `UTF8String`'s internals double check it?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to