Skip to content

Cannot get field attributes  #247

@Trones21

Description

@Trones21

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions