Cannot get field attributes
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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)
- 主要语言
- Python
- 星标
- 363
- 派生
- 183
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tableau/document-api-python 的其他 Issue
-
难度 5/5 一周以上 新手友好度 20/100
tableau/document-api-python#270 ·
-
难度 4/5 3-5 天 新手友好度 25/100
tableau/document-api-python#260 ·
-
docs
难度 2/5 1-3 小时 新手友好度 55/100
tableau/document-api-python#258 ·
-
难度 5/5 一周以上 新手友好度 30/100
tableau/document-api-python#251 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 20/100
tableau/document-api-python#250 · 2 条评论 ·
查看 tableau/document-api-python 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
canonical/paas-charm#368 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
tech debt
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 1/5 1 小时以内 新手友好度 90/100
StevenBlack/hosts#3256 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
qualcomm/qai-appbuilder#275 ·