dbTalk Databases Forums  

Bug in parsing MDX rollup formula

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Bug in parsing MDX rollup formula in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Marco Russo
 
Posts: n/a

Default Bug in parsing MDX rollup formula - 01-08-2005 , 12:48 PM






I have a case in which a rollup MDX formula for the all level of a
dimension doesn't work if I put a ' inside the comment.
It's very easy to reproduce even with a simple constant in the
formula.
Version that doesn't work:

*********** START ****************

-- this ' is a bug
42

*********** END ***************

Version that work:

*********** START ****************

-- this is not a bug
42

*********** END ***************

I spent almost an hour to find the problem.
Is this a real bug or something else? Hope to be fixed in SP4?
Thanks.

Marco Russo

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Bug in parsing MDX rollup formula - 01-08-2005 , 10:33 PM






Hi Marco,

This is a known bug that has been reported and acknowledged in the past
- not sure if it's being fixed in SP4:


http://groups-beta.google.com/group/...rver.olap/msg/
e62a3a6b583b10a0
Quote:
George Spofford Feb 22 2002, 5:41 am show options

The following fails:


select
filter (


[Customers].[State Province].members,
measures.[unit sales] > 300 -- filter's context
) on 0
from sales

The following succeeds:


select
filter (


[Customers].[State Province].members,
measures.[unit sales] > 300 -- filter''s context
) on 0
from sales

I wouldn't think string parsing should be in effect inside a comment!
...
Quote:

http://groups-beta.google.com/group/...rver.olap/msg/
d15e2d54b8333518
Quote:
Sean Boon [MS] Apr 29 2003, 11:50 am show options

Newsgroups: microsoft.public.sqlserver.olap
From: "Sean Boon [MS]" <seanb... (AT) online (DOT) microsoft.com> - Find messages
by this author
Date: Tue, 29 Apr 2003 11:48:20 -0700
Local: Tues, Apr 29 2003 11:48 am
Subject: Re: Comments in MDX / - Sample Application
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse

This is a known bug in the product at this time and it will be
re-evaluated.
Embedded quotes will also cause a failure as well.


Sean


--
Sean Boon
SQL BI Product Unit


**This posting is provided AS IS, with no warranties, and confers no
rights.**
"dxd" <member8... (AT) dbforums (DOT) com> wrote



Quote:
The following is working

Quote:
=======================
Select
filter(
State.allmembers, --abc

measures.[Sales Units]>1)
//instr(1,[State].currentmember.name,"USA") > 0)
on 0 from sales

=========================
But the following is not working

==========================
Select
filter(
State.allmembers, --abcsddf)

measures.[Sales Units]>1)
//instr(1,[State].currentmember.name,"USA") > 0)
on 0 from sales

===================================
What is the difference? because the 2nd comment contains a ")", which
is
treated to close the the filter function, I guess.
I believe this is a bug.

Originally posted by Joerg
SQL 2000 Enterprise, SP3
...


- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Reply With Quote
  #3  
Old   
marco.russo@loader.it
 
Posts: n/a

Default Re: Bug in parsing MDX rollup formula - 01-09-2005 , 03:53 AM




Deepak Puri wrote:
Quote:
Hi Marco,

This is a known bug that has been reported and acknowledged in the
past
- not sure if it's being fixed in SP4:


Thanks Deepak.
I previously searched across the newsgroup but I supposed it was a
custom rollup related bug and I haven't extended the search to the
general problem of MDX comments.
Marco Russo
http://sqljunkies.com/WebLog/sqlbi



Reply With Quote
  #4  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: Bug in parsing MDX rollup formula - 01-10-2005 , 11:08 PM



Quote:
- not sure if it's being fixed in SP4:
This wasn't addressed in SP4. It is fixed in Yukon.

--
==================================================
Mosha Pasumansky - http://www.mosha.com/msolap
Analysis Services blog at http://www.sqljunkies.com/WebLog/mosha
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.