yoheimuta / google-bigquery-tools

Automatically exported from code.google.com/p/google-bigquery-tools
0 stars 4 forks source link

Schema files on Windows #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using Windows, load bq tools in shell mode
2. Attempt to load a file (I'm using Google Cloud Storage) into BigQuery with a 
locally specified Schema file
3. The system will fail very quickly with a Bad Request

What is the expected output? What do you see instead?
The schema should be loaded and used.

What version of the product are you using? On what operating system?
BigQuery 2.0.3 on Windows 7

Please provide any additional information below.
The culprit seems to be here: 
http://code.google.com/p/google-bigquery-tools/source/browse/bq/bigquery_client.
py?r=2bc09d8c00539d054091298910286f6329bdfe7f#700

A file path of C:\MySchema.txt will be interpreted as a schema in itself, not 
as a JSON file containing a schema.

Original issue reported on code.google.com by ed.go...@gmail.com on 23 Apr 2012 at 3:14

GoogleCodeExporter commented 8 years ago
This has been fixed and will be pushed along with other changes soon. Thanks 
for the report!

Original comment by mshel...@google.com on 14 Jun 2012 at 6:52