Google bigquery 使用apachebeamjava删除大查询表

Google bigquery 使用apachebeamjava删除大查询表,google-bigquery,apache-beam,apache-beam-io,beam-sql,Google Bigquery,Apache Beam,Apache Beam Io,Beam Sql,是否可以使用ApacheBeam和Java删除bigQuery中可用的表 p.apply("Delete Table name", BigQueryIO.readTableRows().fromQuery("DELETE FROM Table_name where condition")); 我用BQAPI解决了这个问题 BigQuery BigQuery=BigQueryOptions.newBuilder.SetCredentialsCredentials.SetProjectdProje

是否可以使用ApacheBeam和Java删除bigQuery中可用的表

p.apply("Delete Table name", BigQueryIO.readTableRows().fromQuery("DELETE FROM Table_name where condition"));

我用BQAPI解决了这个问题

BigQuery BigQuery=BigQueryOptions.newBuilder.SetCredentialsCredentials.SetProjectdProjectName.build.getService; QueryJobConfiguration queryConfig=QueryJobConfiguration.newBuilderQuery.setUseLegacySqlfalse.build; JobId JobId=JobId.ofuid.randomuid.toString;
Job queryJob=bigquery.createJobInfo.newBuilderqueryConfig.setJobIdjobId.build

您的用例是什么?因为可能一个WRITE_TRUNCATE配置就可以做到这一点?根据用例的不同,您可能还会发现TTL表很有用:而且BeamSQL还不支持DELETE DML。欢迎大家就这个话题发表意见。谢谢大家的回复。我用BQAPI解决了这个问题。