Cannot get field attributes
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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)
- Dominant language
- Python
- Stars
- 363
- Forks
- 183
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tableau/document-api-python
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
tableau/document-api-python#270 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
tableau/document-api-python#260 ·
-
docs
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
tableau/document-api-python#258 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
tableau/document-api-python#251 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
tableau/document-api-python#250 · 2 comments ·
All issues in tableau/document-api-python
Similar issues
-
link-check link-check:sphinx-theme
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
OpenHands/extensions#626 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
CSCfi/sd-search-api#39 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100