Add volume_path to the output for the volume object

Đang mở
#3,220 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu từ entry point databricks volumes list abc_catalog abc_schema và xác định đoạn code xuất hoặc serialize volume object. Kiểm tra cách các field catalog, schema và name hiện có được tạo ra; hoàn thành khi output cũng bao gồm path /Volumes/{catalog}/{schema}/{name} như mong đợi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Go
Star
427
Fork
267
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
233

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của databricks/cli

Tất cả issue của databricks/cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.