Skip to content

Create/Write Disposition support #2181

@pvillard31

Description

@pvillard31

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigquerystorageIssues related to the googleapis/java-bigquerystorage API.type: questionRequest for information or clarification. Not an issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions