Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are multiple units components in the DSD of pivoted multi-measure cubes #755

Closed
nimshi89 opened this issue Mar 8, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nimshi89
Copy link
Contributor

nimshi89 commented Mar 8, 2023

This ticket is related to #703. There has been an error where the unit's component is duplicated in pivoted multi-measure cubes. This causes the problem that we cannot uniquely (and correctly) link the units component to the relevant column.

In dsdtordfmodelhelper.py the modification has been made (by Rob) to avoid the unit column duplication.

   def _get_qb_units_column_specification(
        self, column_name_uri_safe: str
    ) -> List[rdf.qb.AttributeComponentSpecification]:
        if self._units_component_already_defined:
            # Don't define a second units component, the first one will work just fine.
            return []

        self._units_component_already_defined = True

This method ensures that if a units column has already been defined, then another column cannot be recorded.

@robons robons added the bug Something isn't working label Mar 9, 2023
@robons robons changed the title duplication the units component There are multiple units components in the DSD of pivoted multi-measure cubes Mar 9, 2023
@robons robons closed this as completed Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants