spotify / spark-bigquery

Google BigQuery support for Spark, SQL, and DataFrames
Apache License 2.0
155 stars 52 forks source link

how to delete data and write the new data using saveAsBigQueryTable #45

Open Ayyappadas1 opened 7 years ago

Ayyappadas1 commented 7 years ago

Hi

Is there any way we can purge the old data from the Bigquery table and write new set of data to Bigquery table?

Thanks Ayyappadas

darylerwin commented 7 years ago

Something like this?

writeDisposition = WriteDisposition.WRITE_TRUNCATE, 
   createDisposition = CreateDisposition.CREATE_IF_NEEDED