Cannot get field attributes
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Reproduce the problem with the shown Datasource.from_file('myDS.tdsx') example and inspect how the datasource's fields are returned. Confirm the expected behavior by checking whether each field should expose attributes such as name rather than only an id string; done means the example can access field attributes without AttributeError.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I have a tdsx of a published datasource (which is live to a virtual connection (which is extracts only) to AWS Athena).
I am attempting to use Datasource.Fields attributes but can't because instead of a full Field object I only get a string which is the id.
This will print the id:
ds = Datasource.from_file('myDS.tdsx')
for f in newDS.fields:
print(f)
This throws an error:
ds = Datasource.from_file('myDS.tdsx')
for f in newDS.fields:
print(f.name)
AttributeError: 'str' object has no attribute 'name'
The same error occurs with all attributes (but of course the attribute changes to whatever I specify)
- Ngôn ngữ chính
- Python
- Star
- 363
- Fork
- 183
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của tableau/document-api-python
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
tableau/document-api-python#270 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
tableau/document-api-python#260 ·
-
docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
tableau/document-api-python#258 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
tableau/document-api-python#251 · 2 bình luận ·
-
Alternative for Document Api Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
tableau/document-api-python#250 · 2 bình luận ·
Tất cả issue của tableau/document-api-python
Issue tương tự
-
essnmx good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
[Feature] 奇物选择添加优先级 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
syfoud/Simulated_Scepter#174 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Giskard-AI/giskard-oss#2840 · 1 bình luận ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Đang mởarea: repo bug perceived difficulty: 2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
yeti-platform/yeti#1380 ·