You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Raajay <ra...@gmail.com> on 2015/09/02 18:46:28 UTC

Hive - Serializing Query Plans

Hi,

>From the documents and code I realize that after Semantic Analysis,
QueryPlan.java can be serialized to disk using Thrift (toBinaryString())
method.

Now if want to execute the serialized query plan (say, on Tez) what should
I do ? By de-serializing the string, I can get back the api.Query object.
For execution, I need the QueryPlan.java object.

How to go from api.Query (Thrift Generated) to QueryPlan.java ?

Thanks
Raajay