hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugene Koifman <>
Subject Driver.restoreSession(QueryState)
Date Sat, 18 Jul 2015 00:43:51 GMT
does anyone know the purpose of this?

What happens is that if you have an instance of Driver and call for several queries,
compile() will do

conf.setVar(HiveConf.ConfVars.HIVEQUERYSTRING, queryStr);

but then it will call restoreSession() which will

reset HIVEQUERYSTRING with whatever is in SessionState, which is the 1st query of the session.

so by the time it gets to Driver.execute()

String queryStr = HiveConf.getVar(conf, HiveConf.ConfVars.HIVEQUERYSTRING);

is no longer the currently executing query, so the log info is off...



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message