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

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

Python website log in: BIG-IP can not find session information in the request -