New with BigQuery and new with Python.
Using the example in
http://code.google.com/intl/nl-NL/apis/bigquery/docs/developers_guide.html#csvformat
and adjust form my own purpose.
Captured the newresource (see below)
Please explain what is wrong?
--xxx
Content-Type: application/json; charset=UTF-8
{
"configuration": {
"load": {
"schema": {
"fields": [
{"name":"Code", "type":"STRING"},
{"name":"Jaar", "type":"STRING"},
{"name":"Maand", "type":"STRING"},
{"name":"AantalGevondenAct", "type":"STRING"},
{"name":"AantalRequestGBZ", "type":"STRING"},
{"name":"BerichtgrootteRequest", "type":"STRING"},
{"name":"BerichtgrootteResponse", "type":"STRING"},
{"name":"DuurRoundtrip", "type":"STRING"},
{"name":"DuurZIM", "type":"STRING"},
{"name":"GBZTijd", "type":"INTEGER"},
{"name":"Interactie", "type":"STRING"},
{"name":"Locatie", "type":"STRING"},
]
},
"destinationTable": {
"projectId": "Test",
"datasetId": "Binnenkomen",
"tableId": "HansImportFirst"
}
"createDisposition": "CREATE_IF_NEEDED",
"writeDisposition": "WRITE_APPEND"
}
}
}
--xxx
Content-Type: application/octet-stream
OK,
2011,11,0,1,7837,854,12.601,0.093,12,REPC_IN990003NL,Waarneembericht
OK,2011,11,1,0,4473,845,0.166,0.166,0,MFMT_IN002101,AanmeldenGegevens
OK,
2011,11,0,0,2734,2241,0.097,0.097,0,QUPC_IN990001NL,WaarneemberichtBatch
OK,
2011,11,2,2,3112,155010,6.673,0.409,6,QURX_IN990011NL,VerstrekkingsqueryBatch
OK,
2011,11,0,0,2730,2241,8.113,8.113,0,QUPC_IN990001NL,WaarneemberichtBatch
OK,
2011,11,0,0,3108,2241,5.832,5.832,0,QURX_IN990011NL,VerstrekkingsqueryBatch
OK,
2011,11,0,0,2878,2241,1.155,1.155,0,QUPC_IN990001NL,WaarneemberichtBatch
OK,
2011,11,0,0,3256,2241,7.955,7.955,0,QURX_IN990011NL,VerstrekkingsqueryBatch
OK,
2011,11,0,0,2844,2241,0.444,0.444,0,QUPC_IN990001NL,WaarneemberichtBatch
OK,
2011,11,1,1,3222,138192,6.602,0.959,5,QURX_IN990011NL,VerstrekkingsqueryBatch
{'status': '400', 'content-length': '171', 'expires': 'Fri, 01 Jan
1990 00:00:00
GMT', 'server': 'HTTP Upload Server Built on Jan 9 2012 15:37:21
(1326152241)',
'pragma': 'no-cache', 'cache-control': 'no-cache, no-store, must-
revalidate', '
date': 'Fri, 13 Jan 2012 10:12:53 GMT', 'content-type': 'application/
json'}
{
"error": {
"errors": [
{
"domain": "global",
"reason": "parseError",
"message": "Parse Error"
}
],
"code": 400,
"message": "Parse Error"
}
}
--
CSC • This is a PRIVATE message. If you are not the intended recipient,
please delete without copying and kindly advise us by e-mail of the mistake
in delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose • CSC Computer Sciences BV • Registered Office:
Orteliuslaan 1004, 3528 BD Utrecht, The Netherlands • Registered in The
Netherlands No: 33239071