You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Kanna Karanam <ka...@microsoft.com> on 2012/07/30 20:08:14 UTC

Review Request: HIVE_3320 : Handle “CRLF” line endings to avoid the extra spacing in generated test outputs in Windows. (Utilities.Java :: readColumn)

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/6215/
-----------------------------------------------------------

Review request for hive, Carl Steinbach, Edward  Capriolo, and Ashutosh Chauhan.


Description
-------

Existing functionality in Hive is looking for the “LF” character to extract the lines from generated output before writing to the streaming object. Whereas in Windows, the line endings are “CRLF” characters so it is leaving the “CR” character before writing each line to the streaming object. This CR is introducing the extra empty lines in the generated test output and causing several test cases to fail on Windows.

Attached the generated output for one of the unit test failures with extra space. (bucket1.q)


This addresses bug HIVE-3320.
    https://issues.apache.org/jira/browse/HIVE-3320


Diffs
-----

  trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java 1367185 

Diff: https://reviews.apache.org/r/6215/diff/


Testing
-------


Thanks,

Kanna Karanam