[
https://issues.apache.org/jira/browse/BEAM-12986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17474817#comment-17474817
]
Beam JIRA Bot commented on BEAM-12986:
--------------------------------------
This issue is P2 but has been unassigned without any comment for 60 days so it
has been labeled "stale-P2". If this issue is still affecting you, we care!
Please comment and remove the label. Otherwise, in 14 days the issue will be
moved to P3.
Please see https://beam.apache.org/contribute/jira-priorities/ for a detailed
explanation of what these priorities mean.
> WriteTables leaves behind temporary tables on job failure
> ---------------------------------------------------------
>
> Key: BEAM-12986
> URL: https://issues.apache.org/jira/browse/BEAM-12986
> Project: Beam
> Issue Type: Improvement
> Components: extensions-java-gcp, io-java-gcp
> Affects Versions: 2.29.0
> Reporter: Jan
> Priority: P2
> Labels: stale-P2
>
> I'm running a job that writes to a BigQuery table using
> `BigQueryIO.writeTableRows().to(
> new SerializableFunction<ValueInSingleWindow<TableRow>, TableDestination>)`.
>
> I'm noticing that when my job fails, it leaves behind temporary tables
> (`beam_bq_job_LOAD_*`) in the destination dataset. These tables are created
> by load jobs started here:
>
> [https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/WriteTables.java#L273-L284)|https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/WriteTables.java#L273-L284),]
>
> I'd like to specify a temporary dataset for these load job result tables, but
> I don't see a way to specify one using the Java SDK. It seems like the load
> job destination is inferred by changing the table id of the final destination:
>
> [https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/WriteTables.java#L255]
>
> which makes me think that the configuration I want to set doesn't exist. Is
> there a workaround to avoid having these tables be left around when the job
> fails? Could the option be added?
--
This message was sent by Atlassian Jira
(v8.20.1#820001)