EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB484290: Exceptions for when using VLDB Property "Cartesian Join Governing"


Min Zhao

Quality Engineer, Principal • MicroStrategy


This article introduces three valid business cases which require Cartesian Join and are exempted from the "Cartesian Join Governing" VLDB Property.

Description


The VLDB Property, “Cartesian Join Governing," is exempt in the three business cases described below. This means it will execute the Cross Join even though Cartesian Join Governing is set to Cancel Execution.
 

Case 1: Preserve all lookup table elements


When the VLDB Property, Preserve all lookup table elements is set to Preserve lookup tables joined to final pass result table, there might be a Cross Join between two Lookup tables, and is exempted from the Cartesian Join Governing VLDB Property.

ka04W000001IrMPQA0_0EM2R000000flwR.jpeg


The following is an example SQL Statement:

ka04W000001IrMPQA0_0EM2R000000flwW.jpeg

Case 2: Cross join to grand total metrics


The grand total metric is defined as Sum(Cost){}. When the grand total metric and another metric exists on a grid, Cross Join is produced to join to grand total metric and is exempted from the Cartesian Join Governing property.

ka04W000001IrMPQA0_0EM2R000000flwg.jpeg
ka04W000001IrMPQA0_0EM2R000000flwl.jpeg

The following is an example SQL Statement:

ka04W000001IrMPQA0_0EM2R000000flwq.jpeg

 

Case 3: Cross Join due to the VLDB setting Downward Outer Join Option. (This exception case is supported in Strategy 2020 Update 5 and above, Strategy 2021 Update 2 and above)


When the VLDB Property, Downward Outer Join Option, is set to Preserve all the rows for metrics higher than template level (with report filter or without report filter), cross join will be generated between the higher-than-template-level metric pass and the lookup table(s) for the attribute(s) included in the report level dimensionality but not present in the metric's dimensionality, and is exempted from the Cartesian Join Governing VLDB Property.

ka04W000001IrMPQA0_0EM4W0000027iap.jpeg

The following shows the SQL statement for a sample report with metrics M01, M02 at report level and Units_Sold_at_Subcategory at higher than report level, and metric join type for the metrics set to be Outer Join. 

ka04W000001IrMPQA0_0EM4W0000027iit.jpeg
ka04W000001IrMPQA0_0EM4W0000027ile.jpeg
ka04W000001IrMPQA0_0EM4W0000027imW.jpeg

 


Comment

0 comments

Details

Knowledge Article

Published:

May 30, 2020

Last Updated:

July 14, 2021