Databricks app with Genie access

オープン
#1,073 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
api

調査の方向性

まず、issue にリンクされている Databricks Genie apps example を報告された SDK バージョンで実行し、次に app.py の submit_prompt 周辺と databricks/sdk/service/dashboards.py 内の SDK 呼び出しを調べます。参照されている space と request のフローを確認してから、databricks/sdk/core.py を通じて失敗を追跡します。完了の条件は、example が ResourceDoesNotExist なしで conversation を作成することです。

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

説明

Description
I have created an databricks app with Genie access. When running the example at https://docs.databricks.com/aws/en/dev-tools/databricks-apps/genie it throws following error:

ResourceDoesNotExist: Unable to get space [01f0a7a327cd11978f2951f81a61bfdd]. Caused by Node with resource name Some(datarooms/01f0a7a327cd11978f2951f81a61bfdd) does not exist.
Traceback:
File "/app/python/source_code/.venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
    result = func()
             ^^^^^^
File "/app/python/source_code/.venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 590, in code_to_exec
    exec(code, module.__dict__)
File "/app/python/source_code/app.py", line 322, in <module>
    submit_prompt(prompt, chat_container)
File "/app/python/source_code/app.py", line 150, in submit_prompt
    response = w.genie.start_conversation_and_wait(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/python/source_code/.venv/lib/python3.11/site-packages/databricks/sdk/service/dashboards.py", line 1299, in start_conversation_and_wait
    return self.start_conversation(content=content, space_id=space_id).result(timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/python/source_code/.venv/lib/python3.11/site-packages/databricks/sdk/service/dashboards.py", line 1287, in start_conversation
    op_response = self._api.do('POST',
                  ^^^^^^^^^^^^^^^^^^^^
File "/app/python/source_code/.venv/lib/python3.11/site-packages/databricks/sdk/core.py", line 157, in do
    response = retryable(self._perform)(method,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/python/source_code/.venv/lib/python3.11/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
File "/app/python/source_code/.venv/lib/python3.11/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
File "/app/python/source_code/.venv/lib/python3.11/site-packages/databricks/sdk/core.py", line 247, in _perform
    raise error from None

Reproduction
Code shared in above link.

Expected behavior
Conversation should be created

Is it a regression?
databricks-0.2

Debug Logs
The SDK logs helpful debugging information when debug logging is enabled. Set the log level to debug by adding logging.basicConfig(level=logging.DEBUG) to your program, and include the logs here.

Other Information

  • OS: [e.g. macOS]
  • Version: [e.g. 0.1.0]

Additional context
Add any other context about the problem here.

主要言語
Python
スター
577
フォーク
229
平均マージ
40分
マージ済み PR(30日)
12

環境構築

はじめの一歩

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

databricks/databricks-sdk-py のほかの issue

databricks/databricks-sdk-py の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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