trafodion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Birdsall <dave.birds...@esgyn.com>
Subject RE: binding phase of compile debugging?
Date Fri, 06 May 2016 17:08:58 GMT
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

Mime
View raw message