BigQuery bq command with asterisk (*) doesn't work in Compute Engine -


i have directory file named file1.txt

and run command:

bq query "select * [publicdata:samples.shakespeare] limit 5"

in local machine works fine in compute engine receive error:

waiting on bqjob_r2aaecf624e10b8c5_0000014d0537316e_1 ... (0s) current status: done
bigquery error in query operation: error processing job 'my-project-id:bqjob_r2aaecf624e10b8c5_0000014d0537316e_1': field 'file1.txt' not found.

if directory empty works fine. i'm guessing asterisk expanding file(s) query don't know why.

apparently bq command located @ /usr/bin/bq has following script:

#!/bin/sh exec /usr/lib/google-cloud-sdk/bin/bq ${@} 

which expands asterisk.

as current workaround i'm calling /usr/lib/google-cloud-sdk/bin/bq directly.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -