From d8d3a3dec1e6a4c4f29184431f4a4bbd067b6bff Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 7 Jan 2019 03:08:38 -0800 Subject: [PATCH] Remove incorrect OutputSerialization --- cmd/client-s3.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/client-s3.go b/cmd/client-s3.go index 55c6a7c8..5f710b3e 100644 --- a/cmd/client-s3.go +++ b/cmd/client-s3.go @@ -412,8 +412,9 @@ func (c *s3Client) Select(expression string, sse encrypt.ServerSide) (io.ReadClo }, } opts.OutputSerialization = minio.SelectObjectOutputSerialization{ - JSON: &minio.JSONOutputOptions{ + CSV: &minio.CSVOutputOptions{ RecordDelimiter: "\n", + FieldDelimiter: ",", }, } } else if strings.Contains(origContentType, "json") { @@ -424,9 +425,8 @@ func (c *s3Client) Select(expression string, sse encrypt.ServerSide) (io.ReadClo }, } opts.OutputSerialization = minio.SelectObjectOutputSerialization{ - CSV: &minio.CSVOutputOptions{ + JSON: &minio.JSONOutputOptions{ RecordDelimiter: "\n", - FieldDelimiter: ",", }, } }