Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create/Write Disposition support #2181

Open
pvillard31 opened this issue Jul 11, 2023 · 0 comments
Open

Create/Write Disposition support #2181

pvillard31 opened this issue Jul 11, 2023 · 0 comments
Labels
api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. type: question Request for information or clarification. Not an issue.

Comments

@pvillard31
Copy link

pvillard31 commented Jul 11, 2023

Hi team,

I'm switching over to the BQ Storage API and I'm trying to figure out if there is way to do the same as with the legacy API for Create/Write Disposition:

    JobInfo.CreateDisposition.CREATE_IF_NEEDED // Configures the job to create the table if it does not exist
    JobInfo.CreateDisposition.CREATE_NEVER // Configures the job to fail with a not-found error if the table does not exist

    JobInfo.WriteDisposition.WRITE_EMPTY // Configures the job to fail with a duplicate error if the table already exists
    JobInfo.WriteDisposition.WRITE_APPEND // Configures the job to append data to the table if it already exists
    JobInfo.WriteDisposition.WRITE_TRUNCATE // Configures the job to overwrite the table data if table already exists

In particular, having the option to have the table automatically created if it does not exist. And the option to truncate any existing data (this is useful when using the new API in a batch mode).

Appreciate any hints on this!

@product-auto-label product-auto-label bot added the api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. label Jul 11, 2023
@Neenu1995 Neenu1995 added the type: question Request for information or clarification. Not an issue. label Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants