Class Checkin_7634


  • public class Checkin_7634
    extends CsvDBTestCase
    Checkin 7634 attempted to correct a problem demonstrated by this junit. The CrossJoinFunDef class has an optimization that kicks in when the combined lists sizes are greater than 1000. I create a property here which, if set, can be used to change that size from 1000 to, in this case, 2. Also, there is a property that disables the use of the optimization altogether and another that permits the use of the old optimization, currently the nonEmptyListOld method in the CrossJoinFunDef class, and the new, checkin 7634, version of the method called nonEmptyList.

    The old optimization only looked at the default measure while the new version looks at all measures appearing in the query. The example Cube and data for the junit is such that there is no data for the default measure. Thus the old optimization fails to produce the correct result.

    Author:
    Richard M. Emberson
    • Constructor Detail

      • Checkin_7634

        public Checkin_7634()
      • Checkin_7634

        public Checkin_7634​(java.lang.String name)
    • Method Detail

      • testCrossJoin

        public void testCrossJoin()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception