[ https://issues.apache.org/jira/browse/HIVE-11112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14606922#comment-14606922 ]
xiaowei wang commented on HIVE-11112: ------------------------------------- I have added a test case in HIVE-11095 ,so I need code review. The test have passed . Thanks! > ISO-8859-1 text output has fragments of previous longer rows appended > --------------------------------------------------------------------- > > Key: HIVE-11112 > URL: https://issues.apache.org/jira/browse/HIVE-11112 > Project: Hive > Issue Type: Bug > Components: Serializers/Deserializers > Affects Versions: 1.2.0 > Reporter: Yongzhi Chen > Assignee: Yongzhi Chen > Fix For: 1.3.0, 2.0.0 > > Attachments: HIVE-11112.1.patch > > > If a LazySimpleSerDe table is created using ISO 8859-1 encoding, query > results for a string column are incorrect for any row that was preceded by a > row containing a longer string. > Example steps to reproduce: > 1. Create a table using ISO 8859-1 encoding: > {code:sql} > CREATE TABLE person_lat1 (name STRING) > ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' WITH > SERDEPROPERTIES ('serialization.encoding'='ISO8859_1'); > {code} > 2. Copy an ISO-8859-1 encoded text file into the appropriate warehouse folder > in HDFS. I'll attach an example file containing the following text: > {noformat} > Müller,Thomas > Jørgensen,Jørgen > Peña,Andrés > Nåm,Fæk > {noformat} > 3. Execute {{SELECT * FROM person_lat1}} > Result - The following output appears: > {noformat} > +-------------------+--+ > | person_lat1.name | > +-------------------+--+ > | Müller,Thomas | > | Jørgensen,Jørgen | > | Peña,Andrésørgen | > | Nåm,Fækdrésørgen | > +-------------------+--+ > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)