Description
A new HiveConf is created per query in getAst method in HiveQl.scala
def getAst(sql: String): ASTNode =
{ /* * Context has to be passed in hive0.13.1. * Otherwise, there will be Null pointer exception, * when retrieving properties form HiveConf. */ val hContext = new Context(new HiveConf()) val node = ParseUtils.findRootNonNullToken((new ParseDriver).parse(sql, hContext)) hContext.clear() node }Creating hiveConf adds a minimum of 90ms delay per query. So moving its creation in Object such that it gets created once.