assertQuerySqlOrNot(
context,
mdx,
new SqlPattern[] {
new SqlPattern(
Dialect.DatabaseProduct.MYSQL,
sqlMysqlTupleQuery,
sqlMysqlTupleQuery.length())
},
false, false, true);
assertQuerySqlOrNot(
context,
mdx,
new SqlPattern[] {
new SqlPattern(
Dialect.DatabaseProduct.MYSQL,
sqlMysqlSegmentQuery,
sqlMysqlSegmentQuery.length())
},
false, false, true);
// Because we have caused a many-to-many relation between the agg table
// and the dim table, we expect retarded numbers here.
context.assertQueryReturns(
mdx,
"Axis #0:\n"
+ "{}\n"
+ "Axis #1:\n"
+ "{[Measures].[Unit Sales]}\n"
+ "Axis #2:\n"
+ "{[Time].[1997], [Store].[USA]}\n"
+ "{[Time].[1998], [Store].[USA]}\n"
+ "Row #0: 8,119,905\n"
+ "Row #1: 8,119,905\n");
// Make sure that queries on lower levels don't trigger a
// false positive with the agg matcher.
assertQuerySqlOrNot(
context,
mdxTooLowForAgg,
new SqlPattern[] {
new SqlPattern(
Dialect.DatabaseProduct.MYSQL,
sqlMysqlTooLowTupleQuery,
sqlMysqlTooLowTupleQuery.length())
},
false, false, true);
assertQuerySqlOrNot(
context,
mdxTooLowForAgg,
new SqlPattern[] {
new SqlPattern(
Dialect.DatabaseProduct.MYSQL,
sqlMysqlTooLowSegmentQuery,
sqlMysqlTooLowSegmentQuery.length())
},
false, false, true);