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-04-16 22:31:54 -07:00
2019-11-25 18:27:01 +05:30
2019-12-04 21:03:34 -08:00
2019-12-04 21:03:34 -08:00
2019-12-07 10:05:32 +05:30
2019-12-06 07:17:35 +05:30
2019-12-04 21:03:34 -08:00
2019-12-07 10:05:32 +05:30
2019-12-04 21:03:34 -08:00
2019-12-04 21:03:34 -08:00
2019-12-04 21:03:34 -08:00
2019-10-15 00:47:09 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-08-05 11:37:07 -07:00
2019-04-16 22:31:54 -07:00
2019-06-03 11:22:31 -07:00
2019-09-28 08:33:28 +05:30
2019-11-05 14:41:52 -08:00
2019-11-05 14:41:52 -08:00
2019-11-05 14:41:52 -08:00
2019-08-28 15:57:25 -07:00
2019-09-22 20:28:17 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-08-13 14:11:27 -07:00
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-04-16 22:31:54 -07:00
2019-09-28 08:33:28 +05:30
2019-09-22 20:28:17 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-08-28 15:57:25 -07:00
2019-09-28 08:33:28 +05:30
2019-04-16 22:31:54 -07:00
2019-10-27 20:55:36 -07:00
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-10-30 09:08:00 +05:30
2019-08-13 14:11:27 -07:00
2019-11-27 09:36:40 -08:00
2019-04-16 22:31:54 -07:00
2019-04-16 22:31:54 -07:00
2019-10-30 00:35:25 -07:00
2019-04-16 22:31:54 -07:00
2019-09-06 17:09:44 -07:00
2019-04-16 22:31:54 -07:00
2019-04-16 22:31:54 -07:00
2019-04-16 22:31:54 -07:00
2019-04-16 22:31:54 -07:00
2019-04-16 22:31:54 -07:00
2019-11-21 22:25:46 -08:00
2019-04-16 22:31:54 -07:00
2019-12-08 16:25:50 -08:00
2019-11-21 22:25:46 -08:00
2019-04-16 22:31:54 -07:00
2019-04-16 22:31:54 -07:00
2019-12-11 09:24:45 -08:00
2019-04-16 22:31:54 -07:00
2019-11-21 22:25:46 -08:00
2019-12-08 16:25:50 -08:00
2019-08-29 16:57:04 -07:00
2019-11-27 09:44:39 -08:00
2019-04-22 21:53:31 +05:30
2019-10-12 00:07:10 +05:30
2019-10-30 00:35:25 -07:00
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-06-27 14:47:08 +05:30
2019-04-16 22:31:54 -07:00
2019-04-16 22:31:54 -07:00
2019-07-10 21:16:45 +01:00
2019-04-16 22:31:54 -07:00
2019-06-03 11:22:31 -07:00
2019-07-10 21:16:45 +01:00
2019-04-16 22:31:54 -07:00
2019-10-12 00:07:10 +05:30
2019-08-29 16:57:04 -07:00
2019-10-30 00:35:25 -07:00
2019-10-30 00:35:25 -07:00
2019-11-21 22:25:46 -08:00
2019-12-08 14:34:52 -08:00
2019-04-16 22:31:54 -07:00
2019-12-08 16:25:50 -08:00
2019-11-21 22:25:46 -08:00
2019-04-16 22:31:54 -07:00
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-04-16 22:31:54 -07:00
2019-09-28 08:33:28 +05:30
2019-06-15 10:12:32 -07:00
2019-10-30 00:35:25 -07:00
2019-12-08 14:34:52 -08:00
2019-07-13 09:07:34 +05:30
2019-04-16 22:31:54 -07:00
2019-04-16 22:31:54 -07:00
2019-10-12 00:07:10 +05:30
2019-09-28 08:33:28 +05:30
2019-04-16 22:31:54 -07:00
2019-11-22 12:39:46 -08:00
2019-04-16 22:31:54 -07:00
2019-10-30 00:35:25 -07:00
2019-12-08 14:34:52 -08:00
2019-11-22 12:39:46 -08:00
2019-11-11 11:36:04 -08:00
2019-08-06 15:41:04 -07:00
2019-12-10 23:00:41 -08:00
2019-12-08 16:25:50 -08:00
2019-04-16 22:31:54 -07:00
2019-09-28 08:33:28 +05:30
2019-06-03 11:22:31 -07:00
2019-04-16 22:31:54 -07:00
2019-11-21 22:25:46 -08:00
2019-04-16 22:31:54 -07:00
2019-04-16 22:31:54 -07:00
2019-04-16 22:31:54 -07:00
2019-04-16 22:31:54 -07:00
2019-04-16 22:31:54 -07:00
2019-11-21 22:25:46 -08:00
2019-11-27 09:44:39 -08:00
2019-12-08 14:34:52 -08:00
2019-11-21 22:25:46 -08:00
2019-04-16 22:31:54 -07:00
2019-10-18 22:52:20 +05:30
2019-09-28 08:33:28 +05:30
2019-09-28 08:33:28 +05:30
2019-04-16 22:31:54 -07:00
2019-04-16 22:31:54 -07:00
2019-06-03 11:22:31 -07:00
2019-09-28 08:33:28 +05:30
2019-10-18 22:52:20 +05:30
2019-10-18 22:52:20 +05:30
2019-04-16 22:31:54 -07:00
2019-11-21 22:25:46 -08:00
2019-09-28 08:33:28 +05:30
2019-04-16 22:31:54 -07:00
2019-09-28 08:33:28 +05:30
2019-06-26 10:51:17 -07:00
2019-04-16 22:31:54 -07:00
2019-07-10 21:16:45 +01:00
2019-12-11 09:24:45 -08:00
2019-07-10 21:16:45 +01:00
2019-10-30 00:35:25 -07:00
2019-12-08 14:34:52 -08:00
2019-11-30 17:19:23 -08:00
2019-06-03 11:22:31 -07:00
2019-11-21 22:25:46 -08:00
2019-04-16 22:31:54 -07:00
2019-12-03 12:10:12 -08:00
2019-04-16 22:31:54 -07:00
2019-06-03 11:22:31 -07:00
2019-10-30 00:35:25 -07:00
2019-12-08 14:34:52 -08:00
2019-04-16 22:31:54 -07:00
2019-09-28 08:33:28 +05:30
2019-12-08 11:35:35 -08:00
2019-12-08 11:35:35 -08:00