You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No parameter available to specify a jobId to Table.upload_from_file() #3574
There is no way to send a jobId to the upload_from_file function.
My motivation is that I've had issues with uploading the same file twice, duplicating data in the target table. A suggested solution was to specify my own jobId as a hash of the file contents. That way, duplicate uploads would be rejected as having the same jobId. Without modifying the library, there is no ability to do this.
Activity
tseaver commentedon Jul 1, 2017
This should be pretty straightforward:
Table.upload_from_fileto take an optionaljob_nameproperty and pass it through to_configure_job_metadata, along with the table'sproject._configure_job_metadatato set the top-leveljobReferenceIFF thejob_nameis not None.