use of mondrian.spi.impl.VectorwiseDialect in project mondrian by pentaho.
the class DialectTest method testMondrian2253.
public void testMondrian2253() throws SQLException {
String expected = " 1 ASC";
// "1" is supposed to be a column number
String expr = "1";
JdbcDialectImpl dialect = new VectorwiseDialect(getConnection());
SqlQuery query = new SqlQuery(dialect, true);
query.addOrderBy(expr, null, true, false, dialect.requiresUnionOrderByOrdinal(), true);
assertTrue(query.toString().contains(expected));
}
Aggregations