-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli/zip: emit SQL table data using JSON by default
Release note (backward-incompatible change): The command `cockroach debug zip` now stores data retrieved from SQL tables in the remote cluster using the JSON format by default. The previous version behavior can be obtained by passing `--format=tsv` explicitely. The JSON data is easier to explore programmatically; and it can also be explored in a web browser using the [JsonDiscovery extension](https://github.com/discoveryjs/browser-extension-json-discovery). Release note (cli change): `cockroach debug zip` now supports the command-line flag `--format` to select the format used to store SQL table data, in the same way as `cockroach sql`. In contrast to `cockroach sql` however, its default value is `json` (resulting in files named `.json`) and the default is not dependent on whether the terminal is interactive.
- Loading branch information
Showing
14 changed files
with
1,133 additions
and
1,111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
zip | ||
---- | ||
[cluster] retrieving SQL data for crdb_internal.cluster_database_privileges... writing output: debug/crdb_internal.cluster_database_privileges.txt... done | ||
[cluster] retrieving SQL data for crdb_internal.table_indexes... writing output: debug/crdb_internal.table_indexes.txt... done | ||
[cluster] retrieving SQL data for system.database_role_settings... writing output: debug/system.database_role_settings.txt... done | ||
[cluster] retrieving SQL data for system.table_statistics... writing output: debug/system.table_statistics.txt... done | ||
[cluster] retrieving SQL data for crdb_internal.cluster_database_privileges... writing output: debug/crdb_internal.cluster_database_privileges.json... done | ||
[cluster] retrieving SQL data for crdb_internal.table_indexes... writing output: debug/crdb_internal.table_indexes.json... done | ||
[cluster] retrieving SQL data for system.database_role_settings... writing output: debug/system.database_role_settings.json... done | ||
[cluster] retrieving SQL data for system.table_statistics... writing output: debug/system.table_statistics.json... done |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters