【发布时间】:2020-02-12 22:03:40
【问题描述】:
我们可以在 Airflow postgress 参数中传递数组列表吗?
我正在尝试类似的东西
Select hotel_name from hoteldetails where id in ({{ params.hotel_ids }});
在“s3_to_redshift.sql”中。
下面是我的运营商::
s3_to_redshift = PostgresOperator(
task_id='s3_to_redshift',
postgres_conn_id='redshift',
sql='s3_to_redshift.sql',
params={'hotel_ids': [1,2,3]},
dag=dag
)
【问题讨论】:
-
你能解决你的问题吗?如果是,请您更新您的正确回复吗?谢谢