【问题标题】:Apache Beam python code for branching out pipelines用于分支管道的 Apache Beam python 代码
【发布时间】:2020-04-23 21:56:05
【问题描述】:

我正在使用 Dataflow 加载 CSV 文件,其中需要将取决于第一列值的每条记录写入特定的 bigquery 表。

简单解释如下: 输入文件 -

1,X1,Y1
2,X2,Y2
3,X3,Y3

代码逻辑-

If col1 = 1 then write into table1
If col2 = 2 then write into table2
and so on so forth....

出于这个原因,我正在阅读 Apache Beam 文档https://beam.apache.org/documentation/pipelines/design-your-pipeline/ 但这显示了 JAVA 代码。我不懂 JAVA,想用 Python 写。任何人都可以分享 Python 代码的此类文档的链接吗?

【问题讨论】:

    标签: python-3.x apache-beam


    【解决方案1】:

    Beam 编程指南包含 Java 和 Python SDK 的说明。 https://beam.apache.org/documentation/programming-guide/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-12-24
      • 1970-01-01
      • 1970-01-01
      • 2020-06-10
      • 1970-01-01
      • 2019-06-22
      • 1970-01-01
      相关资源
      最近更新 更多