Skip to Content
Author's profile photo Lars Breddemann

Missing operations in PlanViz? Not for me! (or you)

based on revision 61 of SAP HANA and SAP HANA Studio

Dear web-diary….

Recently I looked into the execution of a simple information model and discussed it with some fellow CSA guys.

While I was delighted to see how well PlanViz reports all the internal stuff, my colleagues complained that they couldn’t see the information I was talking about. They had to resort to unsupported, undocumented and generally evil tools and techniques to find the same information (yep, HDB xxxxxx 🙂 ).

So what was going on?

The SQL under examination was a simple SELECT like this:

SELECT

“FIELDA”, SUM(“COUNT”)

FROM “_SYS_BIC”.”<schema_name>/CE_FUNCTION_AGGREGATION_CV”

GROUP BY “FIELDA”

The referenced calculation view is a scripted calc. view that does nothing but a simple projection from a base table.

So far so good.

This is what my colleagues saw:

planViz-simple.png

Easy to see: the time is spend in the ceAggregationPop!

But, wait a minute… where do we access the base table?

There’s something missing here.

However, when I executed the same query and displayed the visual plan I didn’t miss any information.

It was all right there:

planViz-more.png

So, for my enhanced expert mode-enabled SAP HANA Studio, PlanViz obviously had a lot more to tell.

All good, except:

I don’t have a SAP HANA Studio that is any different from the one everybody else has.

Also, when checking the generated XML text (simply open the .plv file in your favorite text editor) the additional information was always there.

We had been on the brim to open a support message, when I went through the whole thing again and found that it must be a feature/behavior on display level. Something in the PlanViz UI must decide to show or hide the information.

As I didn’t find any option to select the display style in the PlanViz perspective I reviewed the Settings menu and got lucky:

planViz-settings.png

Starting with SAP HANA Studio revision 60 there is a new settings category for PlanViz.

In the Parsing settings screen it’s possible to switch on or off the display of sub-execution-plan-pops (POP = plan operator).

Unfortunately the option is labelled just “Remove the children of CeSqlPop Node“, but apparently it works also on CeAggregation nodes.

By un-selecting this hide option (who doesn’t like double negatives to add information?) and re-executing the PlanViz for the statement the additional information are now displayed nice and well for my colleagues, too.

There you go! Now you know! 🙂

Cheers,

Lars

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hi Lars,

      Thank you for your sharing this feature , In my memory, it has already implemented from revision 60.

      Jerry

      Author's profile photo Lars Breddemann
      Lars Breddemann
      Blog Post Author

      Hi Jerry,

      you're right. 🙂

      And I've written just that: "...

      Starting with SAP HANA Studio revision 60 there is a new settings category for PlanViz.."

      The title line in my blogs simply shows the revision that I have actually used to produce whatever I describe in my blogs.

      - Lars

      Author's profile photo Former Member
      Former Member
      Hi Lars,  Got it, Thank you for your explanation and sharing, very nice.  Jerry