fix unicode support related bugs in s3select (#7877)

This commit is contained in:
Yao Zongyou
2019-07-06 00:43:10 +08:00
committed by Harshavardhana
parent bb871a7c31
commit 037319066f
4 changed files with 43 additions and 9 deletions

View File

@@ -141,9 +141,8 @@ func NewReader(readCloser io.ReadCloser, args *ReaderArgs) (*Reader, error) {
// If LazyQuotes is true, a quote may appear in an unquoted field and a
// non-doubled quote may appear in a quoted field.
csvReader.LazyQuotes = true
// If TrimLeadingSpace is true, leading white space in a field is ignored.
// This is done even if the field delimiter, Comma, is white space.
csvReader.TrimLeadingSpace = true
// We do not trim leading space to keep consistent with s3.
csvReader.TrimLeadingSpace = false
r := &Reader{
args: args,