Cannot get field attributes
まだ誰も着手していません。
評価
調査の方向性
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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tableau/document-api-python のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 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 1週間以上 初心者へのやさしさ 30/100
tableau/document-api-python#251 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
tableau/document-api-python#250 · コメント 2 件 ·
tableau/document-api-python の issue をすべて見る
似ている issue
-
link-check link-check:sphinx-theme
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
OpenHands/extensions#626 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
CSCfi/sd-search-api#39 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100