Search in sources :

Example 6 with NullType

use of mondrian.olap.type.NullType in project mondrian by pentaho.

the class SqlConstraintUtilsTest method makeUnsupportedExpressionForCalculatedMember.

private Exp makeUnsupportedExpressionForCalculatedMember() {
    Exp nullFunDefExpr = new ResolvedFunCall(new NullFunDef(), new Exp[] {}, new NullType());
    Assert.assertEquals(false, SqlConstraintUtils.isSupportedExpressionForCalculatedMember(nullFunDefExpr));
    return nullFunDefExpr;
}
Also used : NullFunDef(mondrian.olap.fun.CrossJoinTest.NullFunDef) ResolvedFunCall(mondrian.mdx.ResolvedFunCall) NullType(mondrian.olap.type.NullType) Exp(mondrian.olap.Exp)

Aggregations

NullType (mondrian.olap.type.NullType)6 Exp (mondrian.olap.Exp)3 ResolvedFunCall (mondrian.mdx.ResolvedFunCall)2 NullFunDef (mondrian.olap.fun.CrossJoinTest.NullFunDef)2 DummyExp (mondrian.calc.DummyExp)1 MemberExpr (mondrian.mdx.MemberExpr)1 FunDef (mondrian.olap.FunDef)1 Member (mondrian.olap.Member)1 AggregateFunDef (mondrian.olap.fun.AggregateFunDef)1 ParenthesesFunDef (mondrian.olap.fun.ParenthesesFunDef)1 TestMember (mondrian.olap.fun.TestMember)1 DecimalType (mondrian.olap.type.DecimalType)1 TupleType (mondrian.olap.type.TupleType)1 Type (mondrian.olap.type.Type)1 RolapMember (mondrian.rolap.RolapMember)1