Is there a library in Python that can parse a HiveQL database and return an abstract syntax tree?

Is there a library in Python that can parse a HiveQL database and return an abstract syntax tree? Actually, I need to know how many output fields there are in HiveQL and how they are grouped.

I can do this with regular expressions; however, I think it is difficult and it is easy to crash when HiveQL is too complex.

+3


source to share





All Articles