Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IMPALA-11332: Fix trailing whitespace for CSV output
The current CSV output is stripping trailing whitespaces from the last line of CSV output. This rstrip() was intended to remove an extra newline, but it is matching other white space. This is a problem for a SQL query like: select 'Trailing whitespace '; This changes the rstrip() to rstrip('\n') to avoid removing the other white space. Testing: - Current shell tests pass - Added a shell test that verifies trailing whitespace is not being stripped. Change-Id: I69d032ca2f581587b0938d0878fdf402fee0d57e Reviewed-on: http://gerrit.cloudera.org:8080/18580 Reviewed-by: Quanlong Huang <huangquanlong@gmail.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
- Loading branch information