小编Gui*_*sar的帖子

当内部 python 代码失败时,Airflow Docker Operator 返回成功

我是 Docker 世界中的一个相当新的开发人员,此时我真的需要帮助。

我在 docker 容器中有一个 python 脚本。当 python 与sys.exit(-1)docker 容器一起退出时,仍然会成功退出,因此也在气流中标记成功,忽略真正的错误和回溯。

如何退出容器并出现错误?

python containers docker airflow

5
推荐指数
1
解决办法
1084
查看次数

Python bigquery lib错误“pyarrow”没有属性“decimal256”

AttributeError: module 'pyarrow' has no attribute 'decimal256' 似乎是bigquery python包的错误,应该如何处理?

整个堆栈是:

  File "/opt/conda/default/lib/python3.7/site-packages/google/cloud/bigquery/__init__.py", line 35, in <module>
    from google.cloud.bigquery.client import Client
  File "/opt/conda/default/lib/python3.7/site-packages/google/cloud/bigquery/client.py", line 70, in <module>
    from google.cloud.bigquery import _pandas_helpers
  File "/opt/conda/default/lib/python3.7/site-packages/google/cloud/bigquery/_pandas_helpers.py", line 151, in <module>
    pyarrow.decimal256(76, scale=38).id: "BIGNUMERIC",
AttributeError: module 'pyarrow' has no attribute 'decimal256'
Run Code Online (Sandbox Code Playgroud)

python google-bigquery pyspark pyarrow

1
推荐指数
1
解决办法
855
查看次数