[Mondrian] parser Error vs. Exception

Paul Stoellberger p.stoellberger at gmail.com
Thu Mar 29 18:54:39 EDT 2012


Yeah I know, I just sometimes use it since it helps with the readability.. to see where a member / set definition starts and ends

i'll check the fix tomorrow, thanks!

-Paul

On Mar 30, 2012, at 12:27 AM, Julian Hyde wrote:

> 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
>>> http://lists.pentaho.org/mailman/listinfo/mondrian
>> 
>> _______________________________________________
>> Mondrian mailing list
>> Mondrian at pentaho.org
>> http://lists.pentaho.org/mailman/listinfo/mondrian
> 
> _______________________________________________
> Mondrian mailing list
> 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/20120330/a2276b36/attachment-0001.html 


More information about the Mondrian mailing list