I'm using the python BigQuery client (https://github.com/tylertreat/BigQuery-Python) to upload data from google cloud storage to a table. I want to overwrite the data so I need to set the writeDisposition to WRITE_TRUNCATE. Where should I import the WRITE_TRUNCATE from?
job = client.import_data_from_uris( gs_file_path,
'dataset_name',
'table_name',
schema,
source_format=JOB_SOURCE_FORMAT_CSV,
writeDisposition=WRITE_TRUNCATE,
field_delimiter='\t')
Here is the current error - NameError: name 'WRITE_TRUNCATE' is not defined.
Also, I would be interested to know importing of other similar name constants.