+ "{[Measures].[Media]}\n"
+ "Row #0: TV\n");
}
public void testBug1515302() {
TestContext ctx = TestContext.instance().create(
null,
"<Cube name=\"Bug1515302\"> \n"
+ " <Table name=\"sales_fact_1997\"/> \n"
+ " <Dimension name=\"Promotions\" foreignKey=\"promotion_id\"> \n"
+ " <Hierarchy hasAll=\"false\" primaryKey=\"promotion_id\"> \n"
+ " <Table name=\"promotion\"/> \n"
+ " <Level name=\"Promotion Name\" column=\"promotion_name\" uniqueMembers=\"true\"/> \n"
+ " </Hierarchy> \n"
+ " </Dimension> \n"
+ " <Dimension name=\"Customers\" foreignKey=\"customer_id\"> \n"
+ " <Hierarchy hasAll=\"true\" allMemberName=\"All Customers\" primaryKey=\"customer_id\"> \n"
+ " <Table name=\"customer\"/> \n"
+ " <Level name=\"Country\" column=\"country\" uniqueMembers=\"true\"/> \n"
+ " <Level name=\"State Province\" column=\"state_province\" uniqueMembers=\"true\"/> \n"
+ " <Level name=\"City\" column=\"city\" uniqueMembers=\"false\"/> \n"
+ " <Level name=\"Name\" column=\"customer_id\" type=\"Numeric\" uniqueMembers=\"true\"/> \n"
+ " </Hierarchy> \n"
+ " </Dimension> \n"
+ " <Measure name=\"Unit Sales\" column=\"unit_sales\" aggregator=\"sum\"/> \n"
+ "</Cube> \n",
null,
null,
null,
null);
ctx.assertQueryReturns(
"select {[Measures].[Unit Sales]} on columns, "
+ "non empty crossjoin({[Promotions].[Big Promo]}, "
+ "Descendants([Customers].[USA], [City], "
+ "SELF_AND_BEFORE)) on rows "
+ "from [Bug1515302]",