Fixing MissingPlusPrefixDeprecation for job_cluster_config in dbt_project.yml causes “Missing required field” errors
メンテナーはふだん 6 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
submission_method: job_cluster を指定した両方の dbt_project.yml 設定を再現し、MissingPlusPrefixDeprecation のパスと Databricks のジョブクラスター作成パスを比較します。plus が前置された job_cluster_config フィールドが adapter を通じてどのように渡されるかを追跡します。完了の条件は、Missing required field errors を発生させずに非推奨警告が解消されることです。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Without + on job_cluster_config fields, dbt emits MissingPlusPrefixDeprecation warning(s).
After adding + to job_cluster_config fields to resolve the warning, Databricks job cluster creation fails with “Missing required field …” errors for all plus-prefixed fields.
Steps To Reproduce
- In
dbt_project.yml, configure Databricks job submission usingsubmission_method: job_clusterand a
job_cluster_configlike:
Version A (produces deprecation warning):
models:
project_name:
+submission_method: job_cluster
+job_cluster_config:
spark_version: "16.4.x-photon-scala2.13"
node_type_id: "md-fleet.xlarge"
autoscale: {"min_workers": 1, "max_workers": 8}
data_security_mode: "USER_ISOLATION"
policy_id: "{{ env_var('DBT_POLICY_ID') }}"
aws_attributes:
availability: "ON_DEMAND"
- Run
dbt run -s model_name. - Observe
MissingPlusPrefixDeprecationwarnings referencingjob_cluster_configfields. - Update
dbt_project.ymlto:
Version B (resolves deprecation warning, triggers runtime error):
models:
project_name:
+submission_method: job_cluster
+job_cluster_config:
+spark_version: "16.4.x-photon-scala2.13"
+node_type_id: "md-fleet.xlarge"
autoscale: {+"min_workers": 1, +"max_workers": 8}
+data_security_mode: "USER_ISOLATION"
+policy_id: "{{ env_var('DBT_POLICY_ID') }}"
aws_attributes:
+availability: "ON_DEMAND"
- Run
dbt run -s model_nameagain. - Observe the Databricks job cluster creation fails with errors like:
- Missing required field 'spark_version'
- Missing required field 'node_type_id'
- Missing required field 'autoscale'
- Missing required field 'data_security_mode'
- etc. (applies to all fields that were plus-prefixed)
Expected behavior
Either:
job_cluster_configfields indbt_project.ymldo not require+prefixes (and do not triggerMissingPlusPrefixDeprecation), or- if
+prefixes are required to satisfy deprecation behavior, the resulting configuration should allow successful Databricks job cluster creation without the "Missing required field..." errors.
Screenshots and log output
- MissingPlusPrefixDeprecation warning screenshot/log excerpt:
- Error output showing “Missing required field …” after plus-prefixing:
System information
The output of dbt --version:
- 主要言語
- Python
- スター
- 391
- フォーク
- 231
- 平均マージ
- 9日 7時間
- マージ済み PR(30日)
- 29
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
databricks/dbt-databricks のほかの issue
-
persist_docs.columns triggers a full-plan probe query on views even when the model has no column docs対応中かも @DelorneN007 が 59 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
databricks/dbt-databricks#1680 · コメント 1 件 ·
メンテナーはふだん 6 日以内に返信
-
bug
難易度 2/5 半日 初心者へのやさしさ 68/100
databricks/dbt-databricks#1003 · コメント 1 件 ·
メンテナーはふだん 6 日以内に返信
-
Emit COMMENT and DEFAULT for function arguments and descriptions in CREATE FUNCTION対応中かも @alvinism が 7 日前に担当しました。 オープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
databricks/dbt-databricks#1764 ·
メンテナーはふだん 6 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 46/100
databricks/dbt-databricks#1762 ·
メンテナーはふだん 6 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
databricks/dbt-databricks#1761 ·
メンテナーはふだん 6 日以内に返信
databricks/dbt-databricks の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
FinanceFlash/unvibecode#699 ·
メンテナーはふだん 1 日以内に返信
-
enhancement Website
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
OWASP/OWASP-Hunting#96 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
micropython/micropython#19942 ·
メンテナーはふだん 1 日以内に返信
-
A rebuild posts "not part of this build" success to the commit's failed `nix-build` gate and effects対応中かも @Padraic-O-Mhuiris が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
`epoch.Integer` raises a raw OverflowError for integers too large to convert to a float対応中かも @arindam77 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pydantic/pydantic-extra-types#479 ·
メンテナーはふだん 1 日以内に返信