Add volume_path to the output for the volume object

未關閉
#3,220 1 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
45/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
go
領域
cli

研究方向

從 databricks volumes list abc_catalog abc_schema 入口開始,定位 volume 物件輸出或序列化程式碼。檢查現有的 catalog、schema 和 name 欄位如何產生;完成標準是輸出也包含預期的 /Volumes/{catalog}/{schema}/{name} 路徑。

由索引模型根據 Issue 內容生成。

描述

Enhancement No Autoclose Stale
Describe the issue

Add volume_path to the output of the volume object:

{
  "catalog_name": "abc_catalog",
  "schema_name": "abc_schema",
  "name": "abc_volume",
  "volume_path": "/Volumes/abc_catalog/abc_schema/abc_volume"
}

Once this is done, DABs can be changed to use it like this:

parameters: 
  - name: abc_volume_path
     default: ${resources.volumes.abc_volume_defn.volume_path}

Instead of:

default: /Volumes/${resources.volumes.abc_volume_defn.catalog_name}/${resources.volumes.abc_volume_defn.schema_name}/${resources.volumes.abc_volume_defn.name}
Steps to reproduce the behavior

Please list the steps required to reproduce the issue, for example:

  1. Run databricks volumes list abc_catalog abc_schema
  2. Manually build the volume_path from the current output -- tedious.
Expected Behavior

Show the volume_path along with the other volume outputs

Actual Behavior

No volume_path provided, must be manually constructed from parts of the volume object.

With this provided in the output, DABs can then be updated to use something like this:

OS and CLI version

CLI: v0.255.0, any OS

Is this a regression?

No

主要語言
Go
星號
427
分支
267
平均合併
2 天 1 小時
30 天內合併 PR
233

環境準備

  • 提供 Dockerfile 或 Docker Compose 檔案
  • 有 Pull Request 範本
  • 沒有貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

databricks/cli 的其他 Issue

查看 databricks/cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。