Created
November 9, 2023 00:24
-
-
Save Arqentum/01f6542c546db881b765e34778f42909 to your computer and use it in GitHub Desktop.
#BigQuery get table DDL as json schema
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
# Activate console to run "bq" commands: | |
# https://console.cloud.google.com/bigquery?cloudshell=true | |
# bq show --format=prettyjson bigquery-public-data:samples.wikipedia | jq '.schema.fields' | |
bq show --format=prettyjson <project>:<bucket>.<table> | jq '.schema.fields' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment