| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a1f2903 commit f8d91a4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -154,6 +154,11 @@ def main(cloud_storage_path, project_id, dataset_id, table_id, | |||
| 154 | 154 | help='compress resultset with gzip', | |
| 155 | 155 | action='store_true', | |
| 156 | 156 | default=False) | |
| 157 | + parser.add_argument( | ||
| 158 | + '-f', '--format', | ||
| 159 | + help='output file format', | ||
| 160 | + choices=['CSV', 'NEWLINE_DELIMITED_JSON', 'AVRO'], | ||
| 161 | + default='CSV') | ||
| 157 | 162 | ||
| 158 | 163 | args = parser.parse_args() | |
| 159 | 164 | ||
@@ -164,5 +169,6 @@ def main(cloud_storage_path, project_id, dataset_id, table_id, | |||
| 164 | 169 | args.table_id, | |
| 165 | 170 | args.num_retries, | |
| 166 | 171 | args.poll_interval, | |
| 172 | + export_format=args.format, | ||
| 167 | 173 | compression="GZIP" if args.gzip else "NONE") | |
| 168 | 174 | # [END main] | |
| Back | FazBrowse Home | New Git URL |
0 commit comments