I am using the Bigquery command line tool to query data from a Bigquery table.
My request instruction is very long.
Is there a way to save a long query in a file and pass the file name to the Bigquery command line tool?
Thanks.
You can use this:
cat query.txt | bq query
Just use cat in labels. If necessary, switch double quotes to single quotes.
cat
bq query "`cat query.txt`"
Source: https://habr.com/ru/post/973198/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/973193/adding-swift-closures-as-values-to-swift-dictionary&usg=ALkJrhifEecQDcXqyVomECMUOC64UNhaFQhttp://seller.samsungapps.com/- Category selection? - samsung-mobileCommunication error: unknown option symbol `X 'in: -Xlinker - iosCdef statement for structure not allowed - cythonEmber Query Params unset Query Parameter - ember.jsWhat makes a rust compiler error: it is impossible to capture a dynamic environment in the fn element, instead use the closing form {{}} instead of "mean" and how to fix it? - syntaxrendering shared assets for the administrator role - c #Does sklearn support a cost matrix? - scikit-learnUsing Hadoop through a SOCKS proxy? - proxyWhat is the best way to distribute JavaScript modules for reuse with dependencies? - javascriptAll Articles