Openbravo Issue Tracking System - Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0028025 | Modules | Analytics | public | 2014-10-30 10:52 | 2021-11-04 14:11 |
Reporter | mtaal | ||||
Assigned To | AugustoMauch | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Regression date | |||||
Regression introduced by commit | |||||
Regression level | |||||
Review Assigned To | |||||
Support ticket | |||||
OBNetwork customer | |||||
Regression introduced in release | |||||
Summary | 0028025: Log warning: The level [organization].[organizationLevel] makes use of the 'parentColumn' attribute, but a parent member for key | ||||
Description | - happens when using closure tables, which we use for our records which have an ad_tree hierarchical structure Complete log warning: The level [organization].[organizationLevel] makes use of the 'parentColumn' attribute, but a parent member for key B843C30461EA4501935CB1D125C9C25A is missing. This can be due to the usage of the NativizeSet MDX function with a list of members form a parent-child hierarchy that doesn't include all parent members in its definition. Using NativizeSet with a parent-child hierarchy requires the parent members to be included in the set, or the hierarchy cannot be properly built natively. | ||||
Steps To Reproduce | This is caused by the fact that Mondrian joins the organization table with the c_orderline table (which is the fact table in this case) to get the organization members. The c_orderline table only has records for the leaf organizations and not for the parents. Therefore Mondrian only finds the leaf organizations and not the parent organizations. Note the resulting data seems okay. This is an example of the query used to read members of a hierarchy, see the join with c_orderline: select "alias1_222"."em_obanaly_treeparentid" as "c0", "alias1_222"."ad_org_id" as "c1", "alias1_222"."em_obanaly_treeordinal" as "c2" from "ad_org" as "alias1_222", (select * from c_orderline alias1_220 where alias1_220.ad_org_id in ('E443A31992CB4635AFCAEABE7183CE85','0','DC206C91AA6A4897B44DA897936E0EC3','7BABA5FF80494CAFA54DEBD22EC46F01','BAE22373FEBE4CCCA24517E23F0C8A48','19404EAD144C49A0AF37D54377CF452D','B843C30461EA4501935CB1D125C9C25A','2E60544D37534C0B89E765FE29BC0B43')) as "alias1_221" where (alias1_222.ad_org_id in ('E443A31992CB4635AFCAEABE7183CE85','0','DC206C91AA6A4897B44DA897936E0EC3','7BABA5FF80494CAFA54DEBD22EC46F01','BAE22373FEBE4CCCA24517E23F0C8A48','19404EAD144C49A0AF37D54377CF452D','B843C30461EA4501935CB1D125C9C25A','2E60544D37534C0B89E765FE29BC0B43')) and "alias1_221"."ad_org_id" = "alias1_222"."ad_org_id" group by "alias1_222"."em_obanaly_treeparentid", "alias1_222"."ad_org_id", "alias1_222"."em_obanaly_treeordinal" order by "alias1_222"."em_obanaly_treeparentid" ASC NULLS FIRST, "alias1_222"."em_obanaly_treeordinal" ASC NULLS LAST] | ||||
Proposed Solution | Possibly change the internals of the Mondrian by implementing/overriding the MemberReader. Related Mondrian issues: http://jira.pentaho.com/browse/MONDRIAN-1511 [^] http://jira.pentaho.com/browse/MONDRIAN-1328 [^] Related posts on the internet: http://stackoverflow.com/questions/20412942/mondrian-parent-child-hierarchy-not-working [^] http://lists.pentaho.org/pipermail/mondrian/2012-December/004233.html [^] | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2014-10-30 10:52 | mtaal | New Issue | |||
2014-10-30 10:52 | mtaal | Assigned To | => AugustoMauch | ||
2014-10-30 11:07 | ngarcia | Issue Monitored: ngarcia | |||
2014-11-01 15:08 | hgbot | Checkin | |||
2014-11-01 15:08 | hgbot | Note Added: 0071322 | |||
2014-11-01 15:11 | mtaal | Note Added: 0071327 | |||
2021-11-04 14:11 | mtaal | Note Added: 0132850 | |||
2021-11-04 14:11 | mtaal | Status | new => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|