[ 
https://issues.apache.org/jira/browse/HIVE-30156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HIVE-30156:
----------------------------------
    Labels: pull-request-available  (was: )

> Fix data corruption when using multi-byte line.delim with text format tables
> ----------------------------------------------------------------------------
>
>                 Key: HIVE-30156
>                 URL: https://issues.apache.org/jira/browse/HIVE-30156
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Butao Zhang
>            Priority: Major
>              Labels: pull-request-available
>
> •
> 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)

Reply via email to