【问题标题】:Google Dataflow: Cannot read and write in different locations BigQuery - PythonGoogle Dataflow:无法在不同位置读写 BigQuery - Python
【发布时间】:2018-11-19 16:59:58
【问题描述】:

根据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'
    
  • UsedryRun:

但他们都没有解决问题。

额外:

如果你使用:

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

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

【问题讨论】:

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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-10-17
      • 2019-09-28
      • 2020-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多