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

Queries involving name, guid, classification fail for IFC4 #667

Closed
hlg opened this issue Dec 5, 2017 · 2 comments
Closed

Queries involving name, guid, classification fail for IFC4 #667

hlg opened this issue Dec 5, 2017 · 2 comments

Comments

@hlg
Copy link
Member

hlg commented Dec 5, 2017

When running queries that involve name, guid, or classification on IFC4 models, they fail with the following exception:

Caused by: java.lang.UnsupportedOperationException: null
        at org.bimserver.database.queries.QueryNamesAndTypesStackFrame.getOidOfGuidAlternative(QueryNamesAndTypesStackFrame.java:95)
        at org.bimserver.database.queries.QueryNamesAndTypesStackFrame.<init>(QueryNamesAndTypesStackFrame.java:60)
        at org.bimserver.database.queries.QueryPartStackFrame.process(QueryPartStackFrame.java:124)
        at org.bimserver.database.queries.QueryObjectProvider.next(QueryObjectProvider.java:143)
        ... 33 common frames omitted

This failure is due to the missing singleindex annotation of the queried attributes. These annotations are added to the respective IFC2x3 elements in migrations Step0022.java and Step0027.java. For IFC4 similar annotations would be necessary. Be aware that for IfcClassificationReference the attribute ItemReference was renamed to Identifier in IFC4. This can be accessed for both schemas through its position, see also f6c0182.

@rubendel
Copy link
Member

Thanks for the clear report! Has been fixed in 2e4c74c. There are probably more places where IFC4 support lacks, keep em coming @hlg :)

@hlg
Copy link
Member Author

hlg commented Jan 19, 2018

Tested for name and classification queries as well.

@hlg hlg closed this as completed Jan 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants