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:[email protected]] Sent: Friday, May 6, 2016 8:29 AM To: [email protected] 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
