DBT Cloud Python模型部署报错求助:本地DBT Core运行正常
dbt Cloud Python模型部署报错排查求助
本地dbt Core环境中Python模型可正常运行,但部署到dbt Cloud时出现以下错误:
09:22:19 78 of 83 START python table model bi_core.bt_f_mail_data__demo ................. [RUN] E0831 09:22:20.512051123 400 hpack_parser.cc:992] Error parsing 'content-type' metadata: invalid value 09:22:20 Unhandled error while executing target/run/dbt_bi_officeservice/models/bi_core/sats/fullrefresh/bt_f_mail_data__demo.py None Stream removed 09:22:20 78 of 83 ERROR creating python table model bi_core.bt_f_mail_data__demo ........ [ERROR in 0.56s]
Python模型代码如下:
def model(dbt, session): dbt.config( materialized = "table", tags= ["python"], submission_method="serverless", #packages = ["numpy==1.23.1", "scikit-learn"] ) sql_model = dbt.ref('bt_f_mail_data') df = sql_model.to_pandas_on_spark() return df
烦请帮忙排查,是否有遗漏的配置或步骤?
内容的提问来源于stack exchange,提问作者dagi_de
相关产品推荐
相关产品推荐

