title: Is there any library in Python that can parse a HiveQL database and return the Abstract Syntax Tree?
body: <p>Is there any library in Python that can parse a HiveQL database and return the Abstract Syntax Tree?  In fact, I need to know how many output fields there are in the HiveQL, and how they are grouped. </p>
  
  <p>I can do it with regular expressions; however, I think it's tricky, and easily fails when the HiveQL is too complicated.</p>