Python models access_control_list argument is not working as intended

オープン 初心者向け
#1,003 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 6 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
半日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python
領域
authorization

調査の方向性

dbt/adapters/databricks/api_client.py の 333 行目付近から始め、示されている Python モデル設定で問題を再現します。job_spec の ACL 辞書と additional_job_settings を比較し、期待される grants または access_control_list がタスク設定として扱われるのではなく、作成された job に適用されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

bug
Describe the bug

The access_control_list and python_job_config/grants config options are not working. I did some digging and found the ACLs are being added as a task setting instead of the job itself in the API call.

Steps To Reproduce

Running a python model using the following config

dbt.config(
        materialized='table'
        , python_job_config={'grants': {'run': [{'service_principal_name': 'pamons_test_sp_python_job_config'}]}}
       # OR
        , access_control_list=[{'service_principal_name': 'pamons_test_sp_access_control_list', 'permission_level': 'CAN_MANAGE'}]
        , submission_method='job_cluster'
    )
Expected behavior

Job ACLs specified in the config should be set in the job created by the model

System information

The output of dbt --version:

1.10.1

The operating system you're using:
Mac
The output of python --version:
3.11.11

Additional context

Link to code
The ACL dictionary are in the job_spec var but not in the additional_job_settings var

主要言語
Python
スター
391
フォーク
231
平均マージ
9日 7時間
マージ済み PR(30日)
29

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

databricks/dbt-databricks のほかの issue

databricks/dbt-databricks の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。