You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafodion.apache.org by Eric Owhadi <er...@esgyn.com> on 2016/05/06 15:28:41 UTC

binding phase of compile debugging?

Hi Trafodioneers,

Would lik eto debug a “long” binding phase issue on compiler.

Not familiar with that part f the code I would appreciate a hint on what
function starts the binding phase so I can follow the code from there?

Thanks in advance for the help

Eric

RE: binding phase of compile debugging?

Posted by Dave Birdsall <da...@esgyn.com>.
Hi,

The phases of compilation are driven by CmpMain::compile
(sqlcomp/CmpMain.cpp).

A good place to start in the binder is RelRoot::bindNode
(optimizer/BindRelExpr.cpp).

One pitfall is that we sometimes have a zillion under-the-covers CONTROL
statements being compiled ahead of the statement you're interested in. If
you put a breakpoint at RelRoot::bindNode, and do a "bt 3", you'll see the
SQL text as a parameter to CmpMain::compile. So if it's not the statement
you are interested in, you can simply continue.

Dave

-----Original Message-----
From: Eric Owhadi [mailto:eric.owhadi@esgyn.com]
Sent: Friday, May 6, 2016 8:29 AM
To: dev@trafodion.incubator.apache.org
Subject: binding phase of compile debugging?

Hi Trafodioneers,

Would lik eto debug a “long” binding phase issue on compiler.

Not familiar with that part f the code I would appreciate a hint on what
function starts the binding phase so I can follow the code from there?

Thanks in advance for the help

Eric