Created
February 18, 2020 12:40
-
-
Save n0531m/6c47f6ce17ef95bc2bdd3212007a9647 to your computer and use it in GitHub Desktop.
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
function getBqTempTableByJobid { | |
local JOBID=$1 | |
bq show --format json -j ${JOBID} \ | |
| jq -r '.configuration.query.destinationTable | .projectId +":"+.datasetId+"."+.tableId' | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment