Open myhau opened 1 month ago
CREATE_IF_NEEDED is already supported for load jobs. It would also be nice to support it for queries that specify the destination table.
CREATE_IF_NEEDED
Example code that uses Java SDK:
QueryJobConfiguration queryConfig = QueryJobConfiguration.newBuilder(query) .setDestinationTable(tableId) .setCreateDisposition(CREATE_IF_NEEDED) .build(); long current = Instant.now().getEpochSecond(); bigQuery.query(queryConfig);
What would you like to be added?
CREATE_IF_NEEDED
is already supported for load jobs. It would also be nice to support it for queries that specify the destination table.Example code that uses Java SDK: