Skip to content

Commit

Permalink
Merge pull request googleapis#2929 from derluke/patch-1
Browse files Browse the repository at this point in the history
change job.write_disposition usage
  • Loading branch information
dhermes authored Jan 11, 2017
2 parents e7b1414 + bc50ae3 commit cf24924
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/bigquery-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Background a query, loading the results into a table:
>>> table = dataset.table(name='person_ages')
>>> job = client.run_async_query('fullname-age-query-job', query)
>>> job.destination = table
>>> job.write_disposition= 'truncate'
>>> job.write_disposition= 'WRITE_TRUNCATE'
>>> job.name
'fullname-age-query-job'
>>> job.job_type
Expand Down Expand Up @@ -325,7 +325,7 @@ the job locally:
... 'load-from-storage-job', table, 'gs://bucket-name/object-prefix*')
>>> job.source_format = 'CSV'
>>> job.skip_leading_rows = 1 # count of skipped header rows
>>> job.write_disposition = 'truncate'
>>> job.write_disposition = 'WRITE_TRUNCATE'
>>> job.name
'load-from-storage-job'
>>> job.job_type
Expand Down Expand Up @@ -383,7 +383,7 @@ located on Google Cloud Storage. First, create the job locally:
... 'gs://bucket-name/export-prefix*.csv')
... job.destination_format = 'CSV'
... job.print_header = True
... job.write_disposition = 'truncate'
... job.write_disposition = 'WRITE_TRUNCATE'
>>> job.name
'extract-person-ages-job'
>>> job.job_type
Expand Down

0 comments on commit cf24924

Please sign in to comment.