Formula Aggregation not pushed down to HANA DB

Hi SAP Experts,
We are creating a query in Query Designer. The query contains a formula with exception aggregate on material. See attachment 1 for details.
When I execute and explain the query in RSRT, it runs for more than 1 min and the explain also says it has not been pushed down to HANA DB
In RSRT query properties, we've tried each 'Operation in BWA/HANA' parameters, but the result is same.
We are on BW7.4 SP7. HANA DB version is 1.00.70.00.386119
According to SAP document, formula exception aggregate should be pushed down to HANA DB.
Can any SAP expert advise if there's any specific setting you need to make to enable this? Thanks.
Regards,
Aaron

Also would want to know if there are issues with the latest rev. SP7 w.r.t alerts and hdbstatisticsserver service under Landscape?
I have observed the hdbstatisticsserver (and daemon.ini) doesnt come up on its own after db instance is restarted.
FYI: I have HANA Instance on Linux VM (sandbox). 

Similar Messages

  • In ODSI 10gR3 fn:string-length() not pushing down to db (SR: 7714015.993)

    Under ALDSP 2.5, the following XQuery...
    where string-length($medacf) = 0 or $medacf = $acf/column_name
    ...used to generate this SQL:
    where ((? = 0) OR (? = t1."COLUMN_NAME"))
    However, under ODSI 10gR3, the where clause is missing. Here's the query plan:
    <?xml version="1.0"?>
    <FLWOR>
    <return>
    <elementConstructor name="UserGroup" tip="{ld:PhysicalLayer/UserProfile/UserGroup}UserGroup">
    <elementConstructor field="(0)" name="UserID" from="$f7815">
    </elementConstructor>
    <elementConstructor field="(1)" name="GroupID" from="$f7815">
    </elementConstructor>
    </elementConstructor>
    </return>
    <where sqlstop="Unable to generate SQL for XQuery expression: Cannot generate SQL for the function {http://www.bea.com/xquery/xquery-operators}integer-equal with parameters (Parameter,INTEGER), (Constant,INTEGER). There is no equivalent SQL for this function in general or with these particular parameter kinds/types. ">
    <operator ns="op" name="boolean-or" tip="{http://www.w3.org/2004/07/xpath-operators}boolean-or">
    <EQ sqlstop="Cannot generate SQL for the function {http://www.bea.com/xquery/xquery-operators}integer-equal with parameters (Parameter,INTEGER), (Constant,INTEGER). There is no equivalent SQL for this function in general or with these particular parameter kinds/types. " tip="{http://www.bea.com/xquery/xquery-operators}integer-equal">
    <operator ns="fn" name="string-length" tip="{http://www.w3.org/2004/07/xpath-functions}string-length">
    <variable name="__fparam0" kind="EXTERNAL">
    </variable>
    </operator>
    <constant>
    <![CDATA[[integer 0]]]>
    </constant>
    </EQ>
    <EQ tip="{http://www.bea.com/xquery/xquery-operators}string-equal">
    <variable name="__fparam0" kind="EXTERNAL">
    </variable>
    <variable name="(2)" from="$f7815" kind="extracted">
    </variable>
    </EQ>
    </operator>
    </where>
    <for name="$f7815">
    <source ns="fn-bea" name="UsrProfDataSource" sqlwarning="Generated SQL query does not have a WHERE clause. This may cause the query to take longer to finish and use excessive memory resources." kind="relational" tip="UsrProfDataSource">
    <![CDATA[SELECT UPPER(t1."USER_ID") AS c1, t1."GRP_ID" AS c2, t1."USER_ID" AS c3
    FROM "USRPROF"."USER_GRP" t1]]>
    </source>
    </for>
    </FLWOR>

    We have found that in ODSI 10gR3, the code pattern below is not pushed down if $logicalExpression is an expression that compares two atomic values and one of the values is a constant (used to work in ALDSP 2.5):
    where $logicalExpression or $table/column = $input
    Sample code that is not pushed down as expected:
    where fn:string-length($accountNumber) _<= 0_ or $account/ACCT_NUM = $accountNumber
    where fn:empty($accountNumber) or $accountNumber _= ''_ or $account/ACCT_NUM = $accountNumber
    where fn:empty($clientId) or $clientId _= 0_ or $account/CLIENT_ID = $clientId
    where fn:empty($effectiveDate) or $effectiveDate _= xs:date('0001-01-01')_ or $account/ACCT_EFF_DT = $effectiveDate
    We have also found that a workaround is to tweak the code and replace $logicalExpression with something that can be pushed down and functionally equivalent (using fn:not, fn-bea:fence, fn:exactly-one, etc.).
    Code that works:
    where fn:not(fn:string-length($accountNumber) > 0) or $account/ACCT_NUM = $accountNumber
    where fn-bea:fence(fn:string-length($accountNumber) <= 0) or $account/ACCT_NUM = $accountNumber
    where fn:exactly-one(fn:string-length($accountNumber) <= 0) or $account/ACCT_NUM = $accountNumber
    After examining the query plans, it appears to me (please correct me if any of these is not true):
    - Comparators for atomic types ({http://www.bea.com/xquery/xquery-operators} integer-less-than-or-equal, string-equal, date-equal, etc.) are not pushed down if they are used to compare anything with a constant
    - An "or" operation ({http://www.w3.org/2004/07/xpath-operators} boolean-or) is not pushed down if any of its operands cannot be pushed down
    - fn:not, fn-bea:fence, and fn:exactly-one can be pushed down even if their operand cannot be pushed down
    So the question is, why comparators are not pushed down when constants are involved? Is this a bug?
    Thanks!
    -r.

  • Where clause one query not being pushed down

    I am having a problem where I cannot get a certain "optional" parameter to be pushed down to a query. The parameter gets applied in memory after the result set is returned but not pushed down to the DB. The function is as follows:
    declare function getFoo($key as xs:string, $optinalInput as xs:string*) as element(b:bar)*
    for $foo in f:getFoo()
    where $key = $foo/key
    where not(exists($optinalInput)) or $foo/optional = $optinalInput<- does not get pushed down to the query
    return $foo
    If I make optinalInput an xs:string instead of xs:string * and the optional parameter will get pushed to the query. The problem is for this optional parameter I could get anywhere from 0-50 in the sequence. Seems like when the parameter is a sequence it doesn't get applied to the query. Is there any way around this?

    Mike,
    I understand the difference between * and ? and I was one of the people working on the "string-length not getting pushed" problem so I am very familiar with it. I tried you solution that you mentioned below and it still did not push the where clause to the query. I know I could achieve this with an ad-hoc query but I wanted to do a pure xquery implementation of this component because of the benefits it could have when interacting with other components in our ODSI project...such as SQL joining and potentially pushing additional where clause down from components that call this component. The only way I did get this to kind of work is to do this:
    return
    for $o in $optinalInput
    for $foo in f:getFoo()
    where $key = $foo/key
    where $o = $foo/optional
    return
    $foo
    for $count in 1
    where not(exists($optinalInput))
    for $foo in f:getFoo()
    where $key = $foo/key
    return
    $foo
    By putting the optional parameter into a FOR statement above the table call it guarantees that at least one will exists and that's why the optional parameter gets pushed properly to the DB with a parameterized query. The problem with this is that even though a parameterized query gets pushed it will call the SQL statement multiple times!...not good.
    Another solution that was suggested to me would be to create the number of sequences for each item in the sequence and treat each item as it's own. For example if you know that the schema limits the sequence from 0..50 then you could make 50 items and 50 where clauses....probably not an optimal solution either but it would achieve properly pushing the where clause tot he DB.
    For now I am satisfied with this optional parameter not being pushed to the DB because the performance was still good but it would be nice if there was a maintainable pure xquery solution to this problem.
    Thanks for the help it's always appreciated!
    Mike

  • Predicate push down in 10.2.0.3 but not in 11.1.0.7

    In the SQL and PL/SQL forum, there was an interesting question on why a predicate isn't pushed down in an 11.1.0.7 database while 10.2.0.3 did push the predicate, here: Same query works OK on 10.2.0.3 and not OK on 11.1.0.7-please help
    The last post contains 10053 trace output. Maybe any of the performance experts in this forum has an explanation?
    Regards,
    Rob.

    SQL> ALTER TABLE LOGIN ADD (
      2  CONSTRAINT FK_LOGIN_MPI
      3  FOREIGN KEY (MPID)
      4  REFERENCES PERSON_ID (MPID));
    REFERENCES PERSON_ID (MPID))
    ERROR at line 4:
    ORA-02270: no matching unique or primary key for this column-list
    SQL> Select
      2  rn,
      3  mpid,
      4  first,
      5  middle,
      6  last,
      7  account_status,
      8  username,
      9  last_login,
    10  date_added,
    11  degree,
    12  ssn
    13  from
    14  (
    15  Select
    16  rownum as rn,
    17  mpid,
    18  first,
    19  middle,
    20  last,
    21  account_status,
    22  username,
    23  last_login,
    24  date_added,
    25  degree,
    26  ssn
    27  from
    28  (
    29  SELECT distinct
    30  p.mpid as mpid,
    31  UPPER(name_first) as first,
    32  UPPER(name_middle_initial) as middle,
    33  UPPER(name_last) as last,
    34  l.account_status,
    35  username,
    36  TO_CHAR(last_login, 'DD-Mon-YYYY') as last_login,
    37  TO_CHAR(date_added, 'DD-Mon-YYYY') as date_Added,
    38  degree,
    39  ssn
    40  FROM
    41  PERSON_ID p,
    42  login l
    43  WHERE
    44  p.mpid=l.mpid AND UPPER(p.name_last) LIKE '%SMITH%'
    45  ORDER BY
    46  name_last ASC
    47  )
    48  )
    49  where
    50  rn >= 1 and rn <= 20;
    name_last ASC
    ERROR at line 46:
    ORA-01791: not a SELECTed expression
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - 64bi
    PL/SQL Release 10.1.0.5.0 - Production
    CORE    10.1.0.5.0      Production
    TNS for Solaris: Version 10.1.0.5.0 - Production
    NLSRTL Version 10.1.0.5.0 - Productionbon, je n'ai pas de 10.1.0.4 windows, mais je doute que ça fasse vraiment la différence
    donne moi l'output dans sqlplus

  • Selection formula sporadically does not push to database.

    On CR 2008, SP3 - Oracle 10 database using native connection, report called from VB.NET:
    We have a process that iteratively loads an .RPT, prints to file and inserts file into database.   Report is fairly complex, 15 subs, lots of groups, etc.   When we run this report on a somewhat large database (source tables range from 1M to 6M rows), it will process just fine for several iterations (10 to 30), but then it will run and NOT push selection criteria to the database via the SQL Query.  We're watching the queries in the database as it runs, and see that every so often it fails to send the where clauses.  With 5M rows, this causes a significant delay as it pulls all the rows in and applies selection criteria locally.
    We're very experience CR developers (partners).  I'm pretty sure we haven't missed anything.  The main report and all subs have been reviewed to make sure that "Use Indexes Or Server For Speed" is selected, and that no selection formulas include native CR functions that would prevent the selection formula from being pushed to the server.  When reviewed in design mode, SQL Queries for main and all subs show with WHERE clauses.
    Any thoughts for anything else we can review?
    Does anyone know exactly what criteria CR uses to determine whether to push the selection formula to the server (other than what I mention above)?
    Thanks, Bill
    Edited by: wlpearce on Jan 12, 2011 4:42 PM

    Hi Bill,
    Need more info, what version of Oracle client and Server are they using? Windows or WEB app?
    Are you closing and disposing of the report document each time? This should disconnect the DB driver and free up the connection. It could be a Client issue but need more info.
    I've never seen or heard this happening before so not sure what or why. If CR has the WHERE clause in the original report then there is no reason why it would drop it... Unless the registry key can't be read due to system resources, not sure how your app works so not sure what may affect it.
    Be sure to get Millie to note the patch level and DB Server/Client version being used and as much info as you have. Also the code you use to set database connection and attach a report that it fails on so I can see the option used in the RPT file also.
    Thanks again
    Don

  • Query Tables Does Not Fill Down Formulas When Refreshed

    I have used external data queries for several years, connecting to a variety of data sources, but most frequently to SQL server 2005 using MS Query and ODBC. Anyway, in Excel 2007, when I refresh my queries and the data range adds new
    rows to the query table, the formluas do not fill down past the previous extent of the data range. These are not external queries converted from a previous version of Excel; I built them in Excel 2007, and the issue persists across multiple workbooks.
    To answer the inevitble suggestions:
    1) The formulas are definitely in the query tables, not adjacent.
    2) "Extend data range formats and formulas" is enabled in the advanced tab of Excel options.
    I've found threads on other sites where users had similar problems, but have not seen a satisfactory solution or even a good response to their inquiries. Any ideas?
    P. Dolan
    Stat Analyst, TN Dept of Safety

    I have the same issue with excel 2010.  To answer Ryan's last question,  Excel does seem to consider all the added rows as begin part of the table.   On the pre 2007 queries, there was an option under 'External data properties'
    to specify whether you wanted the formulas to copy down to the new rows. When this option was selected, it worked without fail.  Under 2007 and 2010 this option no longer appears, but most of the time the formulas do copy down properly, but eventually
    something happens to cause this to stop occuring.  The only fix I have found is to recreatet the whole query again.  It then works for awhile and then stops working at some point. I wish I could isolate what causes it to stop, but I haven't been
    able to figure it out.
    Same with me and Excel 2010.  The help refers to the option, but my dialog box does not have it.  (Another option that has disappeared is the ability to get column headers derived from the returned query.)
    Excerpt from help:
    On the Data tab, in the Connections group, click
    Properties.
    In the External Data Range Properties dialog box, select the
    Fill down formulas in columns adjacent to data check box.  

  • Remote desktop 8.0.14 (and prior) full screen RDweb session, screen pushed down by Mac Menu bar, mouse pointer on wrong position

    Hi
    On Mac OS X 10.10 Yosemite, there is a clear bug on the Microsoft Remote desktop app when
    a) remoting into a Windows server that is set to display full screen
    b) when you are logging in using a RDweb server aka RDS 2012.
    After logging in to the remote server, the full screen representation of the server desktop has the following issues:
    - The Mac Launchpad is still visible over the Windows desktop, making that part of the Windows desktop impossible to reach.
    - The published screen is pushed down about 15 pixels. It is pushed down by the Mac's menu that also remains visible.
    When I directly remote into the same server using traditional direct RDP (Not via the RDweb, gateway setup) the screen positions correctly. 
    I guess: Somehow the Remote desktop app  (8.0.14) does not seem to get the message from the server that this is a full screen session? Is there some information that the connection Broker or Gateway is not passing allong to
    the client? 
    I have replicated this many times. It is the same whether I connect to a 2012 server or to a 2008 server.
    Bart

    Hi,
    For a try you can use URI scheme for the specified desktop screen or full screen and check the result. You can refer the following article for information.
    Remote Desktop Client URI Scheme Support
    https://technet.microsoft.com/en-us/library/dn690096.aspx
    Apart if you have RD Gateway setup then you can try the option for RD Gateway to uncheck “Bypass RD Gateway for Local address” and verify result.
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • I have configured my android to connect to .me / cloud email. It works. But is does not do automatic email delivery. It seems to do fetch, not push. The settings are for imap. Can anybody tell me how to get push?

    I have configured my android to connect to .me / cloud email. It works. But is does not do automatic email delivery. It seems to do fetch, not push. The settings are for imap. Can anybody tell me how to get push?

    As Roger said, iCloud does not support external POP accounts.
    However, you can configure your Max to directly receive your Yahoo! email by following these instructions:
    http://hints.macworld.com/article.php?story=20110208153256491
    Note that this works (for me) without a Yahoo Plus! account - and make sure that you scroll down to the comment at the end of the article which has all of the correct settings in one place.
    Cheers,
    Rodney

  • Itunes library will not close down all the way

    My iTunes library will not close down all the way.  When I close the library I am unable to log back in or turn my computer off because itunes is still running although I x'd it out.

    You're right, you shouldn't have to do that.
    Well, you didn't say whether you've tried uninstalling & reinstalling itunes. Make sure it's installed with an admin user account. Then go into the WIndows Event Viewer and see if there are any error messages about any of the itunes processes in the installation package. That could give us a clue of what's going wrong.
    Another thing that could be causing the problem is the "apple push" part of itunes, APSDaemon.exe. Read wiclee's post here about it.
    https://discussions.apple.com/thread/3734882?start=0&tstart=0

  • Div's being pushed down in Safari

    Hi guys,
    I've built a website for a client. For some unknown reason the footer content gets pushed down on the friends page in Safari and IE - all of the other pages are fine though.
    Here's a link to the site
    Can anyone see why this could be happening - in FF everything is fine though.
    Thank you!
    SM

    On Win 7, Safari, IE9 and Firefox, all looks the same. I am not seeing anything different.
    Jim

  • TOC tab pushing down master slide background

    Why is this happening? It only occurs on three new slides and it pushes down the master slide (background only, not content)

    I am using Captivate 7. Here are two screen shots; one that is displayed correctly and one that pushes the master slide down, but leaves the content in place.

  • I PAD NOT PUSHING ENTERED CALENDAR DATA......BUT IS FETCHING

    We are trying to sync all 5 products with Mobile ME......Desktop, laptop, iphone, ipod touch and ipad.....the ical works GREAT to push and fetch EXCEPT for the ipad!!! It is Fetching ALL the data entered with all the devices but NOT pushing the data if we enter it in the ipad.....all is updated and turn on.....is there a problem???? I cant for the life of me figure it out......the mobile ME is great for all these devices but really want to PUSH the info from iCal if we enter on the ipad!!!
    Any help would be greatly appreciated.......thx

    Fear not.... You are not doing anything wrong. The problem lies within the iOS for iPad, unfortunately. The problem is after a certain amount of time, your iPad goes into sleep mode. Check your settings in your Autolock. (Settings, General, Autolock). When your iPad goes into sleep mode, it shuts down your wifi and data (if you have the 3G version).
    Because I have an Exchange Server account, I can't change my Autolock settings to "Never". If you don't have Exchange Server, you may have this option. Theoretically, it should lessen your battery life, but I can't test it.
    So, unless Apple changes the iOS to work exactly the same way as the iPhone OR if you can change your Autolock setting to NEVER, we are out of luck.
    As it is now, when you slide to unlock your iPad, and go into calendar or mail, it updates. If you set it aside for a period of time, and come back, the only way to update your info is to unslide the Autolock and go back into Mail or Calendar.
    So in short, unless the Autolock settings works for you, we all have to wait until Apple fixes this issue.
    Hope that helps.
    -- Paul in Maine

  • Projector not showing down state of buttons

    Why would it be that my buttons work in Director with the
    multi-state button behavior in the library but when I publish the
    movie and open it in a projector the buttons can't pushed down? The
    over state works. Now I don't have these buttons doing anything
    yet. They are controls for audio - play, pause, stop. If it works
    when I play the movie in director shouldn't it work when the movie
    is published?
    Also, if I have an mp3 with a slider to go back and forth in
    the music why would I need both a stop button and a pause button?
    Is it because the stop button normally would, in effect, "rewind"
    the music to the beggining? And why would I use a |<< or
    >>| button?
    Frustrated! Any clues to my unseen problem are greatly
    appreciated!!

    If the buttons work in authoring but not in a projector, then
    its most
    likely that the down state member for the button can't be
    found. This
    may be because you have a member name problem: two or more
    members with
    the same name.
    The concept of pause and stop are left over from analogue
    tape players.
    I only use stop and play for any controls that I create. Some
    people
    differentiate the two by what happens after that command is
    given. For
    pause, the play command given after will continue to play the
    audio or
    video at the point of the pause. For stop, the play commmand
    given after
    will cause the audio or video to play from the beginning of
    the file.
    I believe that the pause button should be set out in the barn
    next to
    the anvil and the blotter. You can use the crank handle from
    your car to
    hold it down. It that won't hold it, stuff it under the top
    cover of the
    fax machine out there.
    The fast play forward, |<<, and reverse, |>>,
    buttons are used to play
    the file at a faster than normal speed either forward or
    backward.
    Rob
    Rob Dillon
    Adobe Community Expert
    http://www.ddg-designs.com
    412-243-9119
    http://www.macromedia.com/software/trial/

  • Looking for a algorithm called push down atonima??

    I am trying to get an example of a search algorithm called a
    push down atomina
    I think that is the name but not sure.
    thanks,
    steve

    Think you'll be lucky to find anything in the forum on push down automata. Do a search on google, perhaps with the keyword "parser" or "grammer checker" thrown in. There may well be whole books devoted to it!

  • How to package ActiveX controls for printing to push down to clients

    We have installed Crystal Server 2008 in an environment where the client machines are "locked down" ( they do not have local admin rights on their machines ). We want to create a package that will be pushed down to the client machine, containing the components needed to print using the ActiveX control. How can we build this package?

    See my discussion on the following thread:
    How deploy printcontrol.cab to all clients?
    Ludek

Maybe you are looking for