Google数据流:无法在不同位置读取和写入BigQuery-Python

时间:2018-11-19 16:59:58

标签: python google-bigquery google-cloud-dataflow apache-beam

根据thisthis,该问题应该得到解决,不是吗?

我在做什么:

| 'Read' >> beam.io.Read(beam.io.BigQuerySource(
                    query='SELECT * FROM XXX.YYY', use_standard_sql=True))

我得到的是

Cannot read and write in different locations: source: EU, destination: US

我尝试过的事情:

  • Specified pipeline_options中的区域:

        pipeline_options.view_as(WorkerOptions).zone = 'europe-west1'
    
  • Use dryRun:

但是他们都没有解决问题。

额外:

如果您使用:

| 'Read' >> beam.io.Read(beam.io.BigQuerySource(
                 table='XXX:YYY.Table'))

您可以毫无问题地得到结果

1 个答案:

答案 0 :(得分:0)

修复了更新google-cloud-bigquery python包