Hi Abhinav,

If you are looking in source you should start looking at the code in 
SemanticAnalyser.java

 *   For actual execution and result handling take a look at the Driver class, 
this method calls up semantic analyser, generates plans and tasks and takes 
care of execution. You can take a look at the code flow from there.
 *   The metadata information is fetched in method getMetadata method in 
SemanticAnalyser. Which inturn calls BaseSemanticAnalysers db to get metadata 
information. The protocol used to talk to metastore is thrift.
 *   And result fetching is done thro fetch operator.  You can take a look at 
the explain extended in the query to see the parameters.

--
Sreekanth




On 1/20/11 11:38 AM, "abhinav narain" <abhinavnarai...@gmail.com> wrote:

Hi,
I have two questions to ask,
1.
How does one have access to metastore of Hive, to retrieve the schema
information from it.
I cant find a file or other such thing in source code.

2.
How does one get the handle of the result that is produced after the query.

If someone can tell about where to look for the answers, that will also help

regards,
Abhinav


--
Sreekanth Ramakrishnan

Reply via email to