Database Reference
In-Depth Information
$ python
>>>p roject_id='bigquery-e2e'
>>> gcs_bucket='bigquery-e2e'
>>>f rom gcs_reader import GcsReader
>>> from job_runner import JobRunner
>>> import extract_and_read
>>> extract_and_read.run_extract_job(
JobRunner(project_id=project_id) ,
GcsReader(gcs_bucket=gcs_bucket ,
download_dir='/tmp/bigquery') ,
source_project_id='publicdata' ,
source_dataset_id='samples' ,
source_table_id='shakespeare')
{
"status": {
"state": "PENDING"
},
"kind": "bigquery#job",
"statistics": {
"creationTime": "1395596962435"
},
"jobReference": {
"projectId": "bigquery-e2e",
"jobId": "job_1395596963"
},
"etag": "\"Ny_MVtklP3Cn04wt1Sr9PinHZEI/
-ytBLaKo_odhSBz-AVUT8r4aR7M\"",
"configuration": {
"extract": {
"destinationUri":
"gs://bigquery-e2e/output/
samples.shakespeare_1395596964.json",
"destinationUris": [
"gs://bigquery-e2e/output/
samples.shakespeare_1395596964.json"
],
"sourceTable": {
"projectId": "publicdata",
Search WWH ::




Custom Search