Created
October 16, 2019 10:09
-
-
Save MatthewDaniels/e582158ff85599d0945819f9204312dd to your computer and use it in GitHub Desktop.
Downloads a BQ Table's defined schema and places it into a JSON file. Note: Remove the "> github-commits-schema.json" to show it on screen.
This file contains hidden or 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
#!/bin/bash | |
bq show --format=prettyjson bigquery-public-data:github_repos.commits | jq '.schema.fields' > github-commits-schema.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment