Files
mc/cmd
Klaus Post 23aab5b458 mc sql: Use compression parameter (#2996)
The compression parameter is not actually used, but always guessed from the file extension.

Only guess the compression type if it is not explicitly set.

Uploading a file called `out.csv.geezipd`:

Before:
```
λ mc sql -e="SELECT * from s3object LIMIT 1" --compression=GZIP --csv-input "rd=\n,fh=USE,fd=;" local/test/out.csv.geezipd
�""���k↔��Xs��W.v�      ��)��{2#��,r���:�|D▲�.��f♫��→�i�p�2l�♫��ʭ���Q��v▲�5ر�c
```
(content actually not ungzipped)

After:
```
λ mc sql -e="SELECT * from s3object LIMIT 1" --compression=GZIP --csv-input "rd=\n,fh=USE,fd=;" local/test/out.csv.geezipd
"281,1285,159625,159627,2637,20000827.0117590018,1239029,1663,-6.7535419,1533,0.53597438,8"
```

We leave validation of the compression value to the server.
2019-12-11 09:24:45 -08:00
..
2019-08-13 14:11:27 -07:00
2019-08-13 14:11:27 -07:00
2019-10-12 00:07:10 +05:30
2019-06-27 14:47:08 +05:30
2019-10-12 00:07:10 +05:30
2019-10-12 00:07:10 +05:30
2019-11-11 11:36:04 -08:00
2019-06-03 11:22:31 -07:00