【发布时间】:2019-07-07 02:02:51
【问题描述】:
我目前正在使用Big-query Operator see here。我需要显式发送用户生成的JobId 参数。
我知道这个操作符默认创建它自己生成的 JobId,但是我有兴趣覆盖这个行为,不幸的是这个操作符不接受 JobId 作为参数。
我尝试通过api_resource_configs 传递这样一个参数并收到以下消息(注意我的 JobId 参数被忽略了):
[2019-02-12 14:01:09,402] {base_task_runner.py:98} INFO - Subtask: /usr/local/lib/airflow/airflow/models.py:2159: PendingDeprecationWarning: Invalid arguments were passed to BigQueryOperator. Support for passing such arguments will be dropped in Airflow 2.0. Invalid arguments were:
[2019-02-12 14:01:09,403] {base_task_runner.py:98} INFO - Subtask: *args: ()
[2019-02-12 14:01:09,403] {base_task_runner.py:98} INFO - Subtask: **kwargs: {'api_resource_configs': {'jobReference': {'jobId': 'goodfornothing'}}}
[2019-02-12 14:01:09,403] {base_task_runner.py:98} INFO - Subtask: category=PendingDeprecationWarninghere any version of this operator that gets that argument? can i some how modify the operator to accept this argument?
提前致谢!!!!
【问题讨论】:
-
您使用的是哪个版本的 Airflow?从 V1.10.2 开始引入 api_resource_configs。
-
@RyanTheCoder 谢谢,我使用的是 10.1 版(云作曲家还不支持 10.2)