Method, system, and program for specifying multidimensional calculations for a relational OLAP engine
First Claim
Patent Images
1. A computer-implemented method for specifying on-line analytical processing multidimensional calculations, comprising:
- accessing, using a computer including a processor, measures that include symmetric and asymmetric measures, wherein each of the symmetric measures have a single aggregation, and wherein each of the asymmetric measures have multiple aggregations, wherein a measure is defined by one or more structured query language expressions and wherein the one or more structured query language expressions are used as input to an aggregation of the measure;
selecting each of the symmetric and asymmetric measures one at a time; and
for the selected one of the symmetric and asymmetric measures,determining whether the selected measure is compatible with previously selected measures, wherein compatible measures have a same specification of aggregation order for dimensions that the measures reference;
in response to determining that the selected measure is compatible, selecting another of the symmetric and asymmetric measures; and
in response to determining that the selected measure is not compatible,determining whether one or more measures of the symmetric and asymmetric measures can be rewritten so that the selected measure is compatible with the previously selected measures;
in response to determining that the one or more measures of the symmetric and asymmetric measures can be rewritten, rewriting the one or more measures of the symmetric and asymmetric measures; and
in response to determining that the one or more measures of the symmetric and asymmetric measures cannot be rewritten,generating a first structured query language statement for the symmetric measures;
generating a second structured query language statement for the asymmetric measures; and
combining the first structured query language statement and the second structured query language statement for the symmetric and asymmetric measures into a single structured query language statement.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided is a system, method, and program for specifying multidimensional calculations. Selection of a subset of a cube model metadata object that is generated from a facts metadata object and one or more dimension metadata objects is received. The facts metadata object references one or more measure metadata objects. A statement is generated for retrieving multidimensional information using metadata in the cube model metadata object and the measure metadata objects, wherein each of the measure metadata objects specifies one or more aggregations.
189 Citations
39 Claims
-
1. A computer-implemented method for specifying on-line analytical processing multidimensional calculations, comprising:
-
accessing, using a computer including a processor, measures that include symmetric and asymmetric measures, wherein each of the symmetric measures have a single aggregation, and wherein each of the asymmetric measures have multiple aggregations, wherein a measure is defined by one or more structured query language expressions and wherein the one or more structured query language expressions are used as input to an aggregation of the measure; selecting each of the symmetric and asymmetric measures one at a time; and
for the selected one of the symmetric and asymmetric measures,determining whether the selected measure is compatible with previously selected measures, wherein compatible measures have a same specification of aggregation order for dimensions that the measures reference; in response to determining that the selected measure is compatible, selecting another of the symmetric and asymmetric measures; and in response to determining that the selected measure is not compatible, determining whether one or more measures of the symmetric and asymmetric measures can be rewritten so that the selected measure is compatible with the previously selected measures; in response to determining that the one or more measures of the symmetric and asymmetric measures can be rewritten, rewriting the one or more measures of the symmetric and asymmetric measures; and in response to determining that the one or more measures of the symmetric and asymmetric measures cannot be rewritten, generating a first structured query language statement for the symmetric measures; generating a second structured query language statement for the asymmetric measures; and combining the first structured query language statement and the second structured query language statement for the symmetric and asymmetric measures into a single structured query language statement. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A computer system for specifying on-line analytical processing multidimensional calculations, comprising:
-
a processor; memory connected to the processor; and hardware logic implementing code and connected to the processor, that, when executed by the processor, performs; accessing measures that include symmetric and asymmetric measures, wherein each of the symmetric measures have a single aggregation, and wherein each of the asymmetric measures have multiple aggregations, wherein a measure is defined by one or more structured query language expressions and wherein the structured query language expressions are used as input to an aggregation of the measure; selecting each of the symmetric and asymmetric measures one at a time; and for the selected one of the symmetric and asymmetric measures, determining whether the selected measure is compatible with previously selected measures, wherein compatible measures have a same specification of aggregation order for dimensions that the measures reference; in response to determining that the selected measure is compatible, selecting another of the symmetric and asymmetric measures; and in response to determining that the selected measure is not compatible, determining whether one or more measures of the symmetric and asymmetric measures can be rewritten so that the selected measure is compatible with the previously selected measures; in response to determining that the one or more measures of the symmetric and asymmetric measures can be rewritten, rewriting the one or more measures of the symmetric and asymmetric measures; and in response to determining that the one or more measures of the symmetric and asymmetric measures cannot be rewritten, generating a first structured query language statement for the symmetric measures; generating a second structured query language statement for the asymmetric measures; and combining the first structured query language statement and the second structured query language statement for the symmetric and asymmetric measures into a single structured query language statement. - View Dependent Claims (15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26)
-
-
27. An article of manufacture embodied as a computer readable storage medium including a program for specifying on-line analytical processing multidimensional calculations, wherein the program, when executed by a processor of a computer, causes operations to be performed, the operations comprising:
-
accessing measures that include symmetric and asymmetric measures, wherein each of the symmetric measures have a single aggregation, and wherein each of the asymmetric measures have multiple aggregations, wherein a measure is defined by one or more structured query language expressions and wherein the structured query language expressions are used as input to an aggregation of the measure; selecting each of the symmetric and asymmetric measures one at a time; and for the selected one of the symmetric and asymmetric measures, determining whether the selected measure is compatible with previously selected measures, wherein compatible measures have a same specification of aggregation order for dimensions that the measures reference; in response to determining that the selected measure is compatible, selecting another of the symmetric and asymmetric measures; and in response to determining that the selected measure is not compatible, determining whether one or more measures of the symmetric and asymmetric measures can be rewritten so that the selected measure is compatible with the previously selected measures; in response to determining that the one or more measures of the symmetric and asymmetric measures can be rewritten, rewriting the one or more measures of the symmetric and asymmetric measures; and in response to determining that the one or more measures of the symmetric and asymmetric measures cannot be rewritten, generating a first structured query language statement for the symmetric measures; generating a second structured query language statement for the asymmetric measures; and combining the first structured query language statement and the second structured query language statement for the symmetric and asymmetric measures into a single structured query language statement. - View Dependent Claims (28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39)
-
Specification