Cannot get field attributes
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 38/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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)
- Vorherrschende Sprache
- Python
- Sterne
- 363
- Forks
- 183
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus tableau/document-api-python
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 20/100
tableau/document-api-python#270 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
tableau/document-api-python#260 ·
-
docs
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 55/100
tableau/document-api-python#258 ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 30/100
tableau/document-api-python#251 · 2 Kommentare ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 20/100
tableau/document-api-python#250 · 2 Kommentare ·
Alle Issues in tableau/document-api-python
Ähnliche Issues
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
canonical/paas-charm#368 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
tech debt
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
StevenBlack/hosts#3256 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
qualcomm/qai-appbuilder#275 ·