Charles, Not sure what you can do in Hive CLI right now, but consider a new Hive HPL/SQL component that will be included to new Hive versions and that currently you can compile and run separately, see https://github.com/apache/hive/tree/master/hplsql or www.hplsql.org
It supports include files, user defined procedures and functions, exception based exception handling, flow of control statements and so on. It is new, under active development so any feedback is welcome. Dmitry On Fri, Sep 11, 2015 at 8:32 PM, Charles Mean <charles.m...@gmail.com> wrote: > Hello, > > I am working with a huge hive script that I would like to improve its > organisation to a better maintenance in the future. > Looking into this issue, I did not found any kind of include or something > to split my script into some smaller parts. > So, Is there some sort of pattern that is implemented to improve script > structure ? >