[
https://issues.apache.org/jira/browse/HIVE-30155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18126679#comment-18126679
]
Butao Zhang commented on HIVE-30155:
------------------------------------
[~thomas.rebele] Thank you for the reminder! It must have been a network issue
that caused me to create the ticket repeatedly. :)
> Fix data corruption when using multi-byte line.delim with text format tables
> ----------------------------------------------------------------------------
>
> Key: HIVE-30155
> URL: https://issues.apache.org/jira/browse/HIVE-30155
> Project: Hive
> Issue Type: Bug
> Reporter: Butao Zhang
> Priority: Major
>
> •
> Problem: HiveIgnoreKeyTextOutputFormat truncates multi-byte line.delim to its
> first byte via charAt(0), and TextInputFormat ignores line.delim entirely
> (splits on \n only), causing record misalignment and data loss for tables
> with multi-byte line delimiters such as \002\n.
> •
> Fix: Write full multi-byte delimiter bytes in
> HiveIgnoreKeyTextOutputFormat.getHiveRecordWriter(); propagate line.delim to
> textinputformat.record.delimiter in HiveInputFormat.getRecordReader() so
> Hadoop's LineRecordReader splits on the complete delimiter sequence.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)