I am trying to load data to Google bigquery using bq load
from a named pipe.
Console Window1:
$ mkfifo /usr/pipe1
$ cat /dev1/item.dat > /usr/pipe1
Console Window2:
$ bq load --source_format=CSV projectid:dataset.itemtbl /usr/pipe1 field1:integer,field2:integer
Got the following error:
BigQuery error in load operation: Source path is not a file: /usr/pipe1
The BigQuery client bq.py does not support named pipes. It explicitly requires files:
https://code.google.com/p/google-bigquery-tools/source/browse/bq/bigquery_client.py?r=30df4638ff2ddb01d3f495af5c131ed3c2cfbd04#617
Allowing named pipes is a good feature suggestion. You can request it here:
https://code.google.com/p/google-bigquery/issues/list
It looks like you could tweak your copy of bigquery_client.py pretty easily to make this work as well. Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With