-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
bugSomething isn't workingSomething isn't workingnewThe item has just been created and was not seen by MSTR developer yetThe item has just been created and was not seen by MSTR developer yet
Description
Description
In the PhysicalTable
's class docstring, columns
is listed as an attribute, but this property is not loaded when listing physical tables or initializing a PhysicalTable using its ID.
As a result, accessing the columns attribute results in the following error: AttributeError: 'PhysicalTable' object has no attribute 'columns'
Steps To Reproduce
List physical tables with the list_physical_tables
function, or load a PhysicalTable
directly with its ID.
Code Snippet
Requires a valid Connection object
from mstrio.modeling.schema.table import list_physical_tables, PhysicalTable
# using the listing function
physical_tables = list_physical_tables(connection)
physical_tables[0].columns
# using a valid ID
PhysicalTable(id=PHYSICAL_TABLE_ID, connection=connection).columns
Additional Context
The columns of a physical table are correctly retrieved when listing them indirectly via the logical tables.
from mstrio.modeling.schema.table import LogicalTable
LogicalTable(id=LOGICAL_TABLE_ID, connection=connection).physical_table.columns
thomastygreat, ludovicth, aydumoulin, omnisnash, reneeswickziller and 8 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingnewThe item has just been created and was not seen by MSTR developer yetThe item has just been created and was not seen by MSTR developer yet