[Mondrian] parser Error vs. Exception
Julian Hyde
jhyde at pentaho.com
Thu Mar 29 18:27:58 EDT 2012
By the way, Mondrian doesn't require quotes around expressions. You could write
with member Measures.one as 1 select ...
instead of
with member Measures.one as ' 1 ' select ...
The fix is checked into 3.4 now.
Julian
On Mar 29, 2012, at 1:24 PM, Paul Stoellberger wrote:
Just when i finished writing a test for olap4j.....
Well glad you could reproduce it!
Don't think you want it, but just in case....
public void testParserError() throws Exception {
connection = tester.createConnection();
OlapConnection olapConnection =
tester.getWrapper().unwrap(connection, OlapConnection.class);
final String mdx = "WITH MEMBER Measures.Bogus as ' \n"
+ "SELECT\n"
+ " FROM [Sales]";
try {
OlapStatement olapStatement = olapConnection.createStatement();
olapStatement.executeOlapQuery(mdx);
fail();
} catch (Exception e) {
fail();
} catch (Error e) {
// e.printStackTrace();
}
}
On Mar 29, 2012, at 10:20 PM, Julian Hyde wrote:
On Mar 29, 2012, at 12:47 PM, Julian Hyde wrote:
Can't reproduce this on 3.4. Trying both the Mondrian legacy API and olap4j, and several MDX queries. Please log a bug with the MDX you are using and the full stack you receive.
Cancel that. I managed to reproduce it. Checking fix into 3.4 soon.
Julian
_______________________________________________
Mondrian mailing list
Mondrian at pentaho.org<mailto:Mondrian at pentaho.org>
http://lists.pentaho.org/mailman/listinfo/mondrian
_______________________________________________
Mondrian mailing list
Mondrian at pentaho.org<mailto:Mondrian at pentaho.org>
http://lists.pentaho.org/mailman/listinfo/mondrian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20120329/931c4b2d/attachment.html
More information about the Mondrian
mailing list