Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 用于分支管道的ApacheBeam python代码_Python 3.x_Apache Beam - Fatal编程技术网

Python 3.x 用于分支管道的ApacheBeam python代码

Python 3.x 用于分支管道的ApacheBeam python代码,python-3.x,apache-beam,Python 3.x,Apache Beam,我使用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.... 出于这个原因,我阅读了apachebeam文档 但这显示了JAVA代码。我不懂JAVA,想用Python编写它。

我使用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....
出于这个原因,我阅读了apachebeam文档
但这显示了JAVA代码。我不懂JAVA,想用Python编写它。任何人都可以分享Python代码文档的链接吗?

Beam编程指南包含Java和Python SDK的说明

Beam编程指南包含Java和Python SDK的说明