Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Cannot get field attributes

Aberta
#247 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
38/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
database

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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)

Linguagem predominante
Python
Estrelas
363
Forks
183
Métricas de merge de PRs
Nenhum PR com merge em 30d

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de tableau/document-api-python

Todas as issues de tableau/document-api-python

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.