S-C-O-U-T / Pyadomd

A pythonic approach to query SSAS data models.
https://pyadomd.readthedocs.io/en/latest/index.html
Apache License 2.0
25 stars 6 forks source link

type mapping issue for 'System.Guid', 'System.UInt32', 'System.Int16 etc #8

Closed zsombor-egyed-trax closed 3 years ago

zsombor-egyed-trax commented 3 years ago

I got key_error for 'System.Guid', 'System.UInt32', 'System.Int16 etc

please add these lines to here: https://github.com/S-C-O-U-T/Pyadomd/blob/master/pyadomd/_type_code.py#L43

'System.Guid': Type_code(partial(_option_type, str), str.__name__),
'System.UInt32': Type_code(partial(_option_type, int), int.__name__),
'System.Int16': Type_code(partial(_option_type, int), int.__name__),
'System.Int32':  Type_code(partial(_option_type, int), int.__name__),
zsombor-egyed-trax commented 3 years ago

image

S-C-O-U-T commented 3 years ago

Thanks for the PR – looks good.

Which backend did produce these data types? (Power BI, Azure Analysis Service, SSAS Tabular, SSAS multidimensional)

zsombor-egyed-trax commented 3 years ago

Power BI

S-C-O-U-T commented 3 years ago

New package release to PyPi - closing the incedent